{"published":"2019-06-10 21:41:19","blog_title":"\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093","height":"190","title":"Sum Equals Xor [AtCoder Beginner Contest 129 E]","url":"https://blog.hamayanhamayan.com/entry/2019/06/10/214119","author_url":"https://blog.hatena.ne.jp/hamayanhamayan/","provider_name":"Hatena Blog","width":"100%","type":"rich","blog_url":"https://blog.hamayanhamayan.com/","description":"https://atcoder.jp/contests/abc129/tasks/abc129_e \u524d\u63d0\u77e5\u8b58 \u6841DP \u89e3\u8aac https://atcoder.jp/contests/abc129/submissions/5869998a + b = a xor b \u3053\u308c\u3092\u8aad\u307f\u66ff\u3048\u308b\u3068\u3001a & b = 0\u3068\u306a\u308b\u3002 \u3064\u307e\u308a\u3001 a + b \u2266 L \u304b\u3064 a & b = 0\u3092\u6e80\u305f\u3059a,b\u306e\u7d44\u3092\u6570\u3048\u308c\u3070\u3044\u3044\u3002 L\u306e\u5236\u7d04\u3092\u898b\u308b\u3068\u3001\u6841\u6bce\u306b\u6c7a\u5b9a\u3057\u3066\u3044\u304d\u305d\u3046\u306a\u611f\u3058\u304c\u3059\u308b\u3002 \u3057\u304b\u3082mod10^9+7\u306a\u306e\u3067\u3001\u6841DP\u304b\u306a\u3068\u306a\u308b\u3002 dp[dgt][isLess] := \u4e0a\u4f4ddgt\u6841\u307e\u3067\u78ba\u5b9a\u3057\u3066\u3044\u3066\u3001 \u4eca\u5f8c\u3069\u3046a,b\u3092\u4f5c\u3063\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2019%2F06%2F10%2F214119\" title=\"Sum Equals Xor [AtCoder Beginner Contest 129 E] - \u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","version":"1.0","author_name":"hamayanhamayan","image_url":null,"categories":["\u7af6\u6280\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"]}