{"width":"100%","image_url":null,"provider_name":"Hatena Blog","categories":["C++","TopCoder"],"author_url":"https://blog.hatena.ne.jp/tanakaBox/","height":"190","url":"https://boxnos.hatenablog.com/entry/20080526/1211752077","type":"rich","version":"1.0","blog_url":"https://boxnos.hatenablog.com/","title":" SRM 146 DIV2 Level One - \u30e4\u30c3\u30c4\u30a3\u30fc","published":"2008-05-26 06:47:57","author_name":"tanakaBox","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fboxnos.hatenablog.com%2Fentry%2F20080526%2F1211752077\" title=\" SRM 146 DIV2 Level One - \u30e4\u30c3\u30c4\u30a3\u30fc - \u30dc\u30af\u30ce\u30b9\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"\u30dc\u30af\u30ce\u30b9","description":"TopCoder\u306e\u904e\u53bb\u554f\u3092\u89e3\u3044\u3066\u3044\u304f\u3088\u3002 \u30e4\u30c3\u30c4\u30a3\u30fc\u306e\u7c21\u5358\u30d0\u30fc\u30b8\u30e7\u30f3\u3002\u30b5\u30a4\u30b3\u30ed5\u500b\u632f\u3063\u3066\u51fa\u305f\u76ee\u304c{4, 2, 2, 5, 4}\u3060\u3063\u305f\u3089\u30012\u304c2\u500b\u30674\u30dd\u30a4\u30f3\u30c8\u30014\u304c2\u500b\u30678\u30dd\u30a4\u30f3\u30c8\u30015\u304c1\u500b\u30675\u30dd\u30a4\u30f3\u30c8\u30024\u304c2\u500b\u30678\u30dd\u30a4\u30f3\u30c8\u304c\u4e00\u756a\u9ad8\u3044\u5f97\u70b9\u306a\u306e\u3067\u30018\u30dd\u30a4\u30f3\u30c8\u3092\u51fa\u529b\u3059\u308b\u3002 max_element\u3092\u4f7f\u3063\u3066\u307f\u305f\u7248\u3002 #include <vector> #include <algorithm> using namespace std; class Yahtzee { public : static int maxPoints(vector<int> toss) { vector<int> collects\u2026"}