{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2020%2F03%2F21%2F205712\" title=\"\u6570\u5217\u30b2\u30fc\u30e0 [Kyoto University Programming Contest 2020 Spring 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>","type":"rich","author_url":"https://blog.hatena.ne.jp/hamayanhamayan/","description":"https://onlinejudge.u-aizu.ac.jp/beta/room.html#KUPC2020Spring/problems/E \u524d\u63d0\u77e5\u8b58 grundy\u6570 \u89e3\u8aac \u30b2\u30fc\u30e0\u554f\u984c\u306f\u5b9f\u9a13\u305b\u3088\u3068\u53e4\u4e8b\u8a18\u306b\u66f8\u3044\u3066\u3042\u308b\u306e\u3067\u3084\u308b\u3002 \u6b63\u78ba\u306b\u306f\u52dd\u3061\u8ca0\u3051\u3060\u3051\u5206\u304b\u308c\u3070\u3044\u3044\u306e\u3067\u3001grundy\u6570\u304c0\u306b\u306a\u308b\u898f\u5247\u6027\u3092\u63a2\u3057\u3066\u304f\u308b\u3002 \u3072\u305f\u3059\u3089\u5b9f\u9a13\u3057\u3066\u898b\u3066\u307f\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u30eb\u30fc\u30eb\u304c\u5f97\u3089\u308c\u308b\u3002 N\u304c\u5947\u6570 grundy\u6570\u306f\u914d\u5217A\u306e\u7dcf\u548c%2\u3068\u306a\u308b\u306e\u3067\u3001\u305d\u308c\u3092\u307f\u3066\u3084\u308b N\u304c\u5076\u6570 grundy\u6570\u306e\u8a08\u7b97\u306f\u8907\u96d1\u305d\u3046\u306a\u306e\u3067\u30010\u3068\u306a\u308b\u30eb\u30fc\u30eb\u3060\u3051\u63a2\u3059 \u7dcf\u548c%2=0\u3067\u3042\u308b\u3001\u304b\u3064\u3001\u6700\u5c0f\u306e\u6570\u304c\u5076\u6570\u3067\u3042\u308b \u3053\u308c\u3092\u4f7f\u3063\u3066\u52dd\u3061\u8ca0\u3051\u3092\u7b54\u3048\u3088\u3046\u3002 int\u2026","height":"190","width":"100%","title":"\u6570\u5217\u30b2\u30fc\u30e0 [Kyoto University Programming Contest 2020 Spring E]","provider_url":"https://hatena.blog","image_url":null,"url":"https://blog.hamayanhamayan.com/entry/2020/03/21/205712","categories":["\u7af6\u6280\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"published":"2020-03-21 20:57:12","blog_url":"https://blog.hamayanhamayan.com/","author_name":"hamayanhamayan","provider_name":"Hatena Blog","version":"1.0","blog_title":"\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093"}