{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmayokoex.hatenablog.com%2Fentry%2F2016%2F06%2F17%2F203543\" title=\"CodeChef Chef and cities - mayoko\u2019s diary\" 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","blog_title":"mayoko\u2019s diary","blog_url":"https://mayokoex.hatenablog.com/","height":"190","title":"CodeChef Chef and cities","categories":["CodeChef"],"width":"100%","image_url":null,"provider_name":"Hatena Blog","description":"\u554f\u984c Contest Page | CodeChef\u6570\u5217 F \u304c\u4e0e\u3048\u3089\u308c\u308b\u3002\u4ee5\u4e0b\u306e\u30af\u30a8\u30ea\u3092\u51e6\u7406\u305b\u3088\u3002 F[p] = f \u3068\u3059\u308b R \u304c\u4e0e\u3048\u3089\u308c\u308b\u306e\u3067, F[0]*F[R]*F[2*R]*...*F[(N-1)/R*R] \u306e\u5024\u306b\u3064\u3044\u3066, 10 \u9032\u6cd5\u306b\u304a\u3051\u308b\u4e00\u756a\u4e0a\u306e\u6570, 10^9+7 \u3067\u5272\u3063\u305f\u3042\u307e\u308a \u3092\u6c42\u3081\u308b \u89e3\u6cd5 \u81ea\u5206\u306e\u89e3\u6cd5\u3060\u3068 100 \u70b9\u53d6\u308d\u3046\u3068\u3057\u305f\u3068\u304d\u306b 5 \u70b9\u5206\u304c\u78ba\u4fdd\u3067\u304d\u306a\u304b\u3063\u305f\u306e\u3067 5 \u70b9\u5206\u306e\u6642\u306f\u5225\u306b\u51e6\u7406\u3057\u3066\u3044\u307e\u3059\u300210 \u9032\u6cd5\u306e\u4e00\u756a\u4e0a\u306e\u6570\u3092\u6c42\u3081\u308b\u3068\u304d\u306f, log \u3092\u53d6\u308b\u306e\u304c\u3088\u304f\u3084\u308b\u3053\u3068\u3067\u3059(\u5927\u5b66\u53d7\u9a13\u3067\u3088\u304f\u51fa\u308b\u30a2\u30ec)\u3002\u30af\u30a8\u30ea\u306e\u51e6\u7406\u306e\u4ed5\u65b9\u3067\u3059\u304c, \u53d6\u308a\u5408\u3048\u305a\u6700\u521d\u306b mult[i] = (R \u2026","author_url":"https://blog.hatena.ne.jp/mayokoex/","published":"2016-06-17 20:35:43","url":"https://mayokoex.hatenablog.com/entry/2016/06/17/203543","author_name":"mayokoex","type":"rich","version":"1.0"}