{"blog_url":"https://nishiohirokazu.hatenadiary.org/","author_url":"https://blog.hatena.ne.jp/nishiohirokazu/","height":"190","categories":["TopCoder"],"title":"Single Round Match 413 Div1","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnishiohirokazu.hatenadiary.org%2Fentry%2F20080806%2F1218040175\" title=\"Single Round Match 413 Div1 - \u897f\u5c3e\u6cf0\u548c\u306e\u306f\u3066\u306a\u30c0\u30a4\u30a2\u30ea\u30fc\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"provider_url":"https://hatena.blog","blog_title":"\u897f\u5c3e\u6cf0\u548c\u306e\u306f\u3066\u306a\u30c0\u30a4\u30a2\u30ea\u30fc","width":"100%","published":"2008-08-06 01:29:35","author_name":"nishiohirokazu","description":"\u4eca\u56de\u304b\u3089Div1\u3067\u6226\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u3046\u306f\u3001\u307f\u3093\u306a\u9752\u3068\u304b\u9ec4\u8272\u3068\u304b\u8d64\u3060(\u5f53\u305f\u308a\u524d) \u3053\u3053\u306b\u3044\u308b\u5168\u54e1\u304c\u50d5\u3088\u308a\u30b3\u30fc\u30c9\u306e\u66f8\u3051\u308b\u4eba\u3060\u3068\u601d\u3046\u3068\u306a\u3093\u304b\u3059\u3054\u3044\u306a\u3002500\u70b9\u554f\u984c\u3001\u56de\u7b54\u3057\u305f18\u4eba\u306e\u3046\u306114\u4eba\u304c\u30c1\u30e3\u30ec\u30f3\u30b8\u3055\u308c\u3066\u843d\u3068\u3055\u308c\u3066\u3044\u308b\u3002\u50d5\u3092\u542b\u3080\u3002\u4e00\u898b\u7c21\u5358\u306a\u3088\u3046\u306b\u601d\u3048\u3066\u3001\u898b\u3048\u306b\u304f\u3044\u6240\u306b\u843d\u3068\u3057\u7a74\u304c\u3042\u308b\u306e\u304b\u3002\u3061\u306a\u307f\u306b\u50d5\u306e\u89e3\u7b54\uff1a int P, Q, X, Y; map<long long, long long> cache; long long calc(long long n, int p, int q, int x, int y) { P = p; Q = q; X = x; Y = y; return cal\u2026","type":"rich","provider_name":"Hatena Blog","version":"1.0","url":"https://nishiohirokazu.hatenadiary.org/entry/20080806/1218040175"}