{"type":"rich","author_url":"https://blog.hatena.ne.jp/a_kawashiro/","categories":["topcoder"],"author_name":"a_kawashiro","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fa-kawashiro.hatenablog.com%2Fentry%2F20110403%2F1301804825\" title=\"SRM422 div2 hard - a_kawashiro\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"SRM422 div2 hard","height":"190","version":"1.0","width":"100%","provider_url":"https://hatena.blog","url":"https://a-kawashiro.hatenablog.com/entry/20110403/1301804825","provider_name":"Hatena Blog","description":"\u3069\u306e\u4eba\u304c\u98df\u3079\u3089\u308c\u308b\u30b1\u30fc\u30ad\u306b\u3059\u308b\u304b\u3092\u30d3\u30c3\u30c8\u3067\u7ba1\u7406\u3057\u3066\u5168\u63a2\u7d22\u3059\u308b\u3002 #include <algorithm> #include <set> #include <sstream> #include <string> #include <vector> using namespace std; class BirthdayCake { public: set<string> fruit; int s2i(string s) { return (int)distance(fruit.begin(),fruit.find(s)); } int popCount(int n) { int r=0; for(\u2026","published":"2011-04-03 13:27:05","blog_title":"a_kawashiro\u306e\u30d6\u30ed\u30b0","blog_url":"https://a-kawashiro.hatenablog.com/"}