{"author_name":"touyou1121","provider_name":"Hatena Blog","categories":["\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"blog_url":"https://touyoubuntu.hatenablog.com/","width":"100%","description":"FoxMakingDice N\u3068K\u306e\u5927\u5c0f\u95a2\u4fc2\u3067\u5834\u5408\u5206\u3051\u3059\u308b\u3002 \u305d\u306e\u4e0a\u3067\u30013\u3064\u4ee5\u4e0aN\u4ee5\u4e0b\u306e\u6570\u5b57\u4e8c\u3064\u3067\u305d\u306e\u6570\u3092\u4f5c\u308c\u308b\u5834\u5408\u306e\u6570\u3092\u8a08\u7b97\u3057\u3066\u3044\u304f\u3002 class FoxMakingDice { public: long long theCount( int N, int K ) { ll res = 0; if (N < 6) return res; if (N >= K) { for (int i=K; i<=N; i++) { int tmp; if (i%2 == 0) tmp = i/2-1; else tmp = i/2; if (tmp > 2) { res += tmp*(tmp-1)*(t\u2026","title":"Div.1Easy\u4fee\u884c","blog_title":"\u5922\u8ffd\u3044\u4eba","type":"rich","provider_url":"https://hatena.blog","published":"2011-09-06 14:16:35","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftouyoubuntu.hatenablog.com%2Fentry%2F20110906%2F1315286195\" title=\"Div.1Easy\u4fee\u884c - \u5922\u8ffd\u3044\u4eba\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","image_url":null,"url":"https://touyoubuntu.hatenablog.com/entry/20110906/1315286195","author_url":"https://blog.hatena.ne.jp/touyou1121/"}