{"version":"1.0","author_url":"https://blog.hatena.ne.jp/lan496/","published":"2015-09-12 02:08:45","categories":[],"author_name":"lan496","url":"https://lan496.hatenadiary.jp/entry/2015/09/12/020845","width":"100%","image_url":null,"title":"SRM 667 Div1 Easy Order Of Operations","provider_url":"https://hatena.blog","type":"rich","blog_title":"lan496\u306e\u65e5\u8a18","description":"\u3069\u306e\u30e1\u30e2\u30ea\u3092\u4f7f\u7528\u3057\u305f\u304b\u3092bit\u3067\u7ba1\u7406\u3059\u308b\u3002 n\u500b\u306e\u6307\u793a\u3092\u5b8c\u4e86\u3059\u308b\u305f\u3081\u306b\u306f\u3001goal := s[0] | s[1] | ... | s[n-1] \u3067bit\u306e\u7acb\u3063\u3066\u3044\u308b\u30e1\u30e2\u30ea\u3092\u5c11\u306a\u304f\u3068\u3082\u4e00\u56de\u306f\u4f7f\u308f\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3002 \u9006\u306b\u3001goal\u3067\u7acb\u3063\u3066\u3044\u308bbit\u306b\u5bfe\u5fdc\u3059\u308b\u30e1\u30e2\u30ea\u3092\u5168\u3066\u5b9f\u884c\u3057\u305f\u306a\u3089\u3070\u5168\u3066\u306e\u6307\u793a\u306f\u6642\u95930\u3067\u5b9f\u884c\u3067\u304d\u308b\u3002\u3088\u3063\u3066\u3001\u3069\u306e\u30e1\u30e2\u30ea\u3092\u4f7f\u7528\u3057\u305f\u304b\u3060\u3051\u3092\u60c5\u5831\u3068\u3057\u3066\u3082\u3063\u3066bitDP\u3092\u3059\u308c\u3070\u3088\u3044\u3002dp[S] := (S\u306b\u5bfe\u5fdc\u3059\u308b\u30e1\u30e2\u30ea\u3092\u5b9f\u884c\u3059\u308b\u306e\u306b\u304b\u304b\u308b\u6642\u9593\u306e\u7dcf\u548c) #include <bits/stdc++.h> using namespace std; typedef long long ll; #d\u2026","blog_url":"https://lan496.hatenadiary.jp/","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Flan496.hatenadiary.jp%2Fentry%2F2015%2F09%2F12%2F020845\" title=\"SRM 667 Div1 Easy Order Of Operations - lan496\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog"}