{"width":"100%","description":"\u5206\u304b\u3089\u306a\u304b\u3063\u305f\u3002 \u30d3\u30c3\u30c8\u3092\u4f7f\u3063\u3066\u90e8\u5206\u96c6\u5408\u3092\u6c42\u3081\u308b\u3068\u7d50\u69cb\u901f\u3044\u3089\u3057\u3044\u3002 \u3053\u306eDP\u306e\u8a08\u7b97\u91cf\u306f\u305d\u308c\u305e\u308c\u306e\u30d3\u30c3\u30c8\u306b\u3064\u3044\u3066 (mask:0,sub:0),(mask:1,sub:0),(mask:1,sub:1) \u306e\u5834\u5408\u304c\u3042\u308b\u306e\u30673^n\u306a\u3093\u3060\u3063\u3066\u3002 2^n*2^n\u3057\u304b\u601d\u3044\u3064\u304b\u306a\u304b\u3063\u305f\u3002 #include <vector> using namespace std; int OK[1<<15]; int DP[1<<15]; class InformFriends { public: int maximumGroups(vector<string> _friends) { int n; vector<int>\u2026","url":"https://a-kawashiro.hatenablog.com/entry/20110530/1306762995","blog_title":"a_kawashiro\u306e\u30d6\u30ed\u30b0","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fa-kawashiro.hatenablog.com%2Fentry%2F20110530%2F1306762995\" title=\"SRM388div1 medium - 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>","height":"190","published":"2011-05-30 22:43:15","author_url":"https://blog.hatena.ne.jp/a_kawashiro/","categories":["topcoder"],"blog_url":"https://a-kawashiro.hatenablog.com/","image_url":null,"provider_url":"https://hatena.blog","version":"1.0","provider_name":"Hatena Blog","title":"SRM388div1 medium","author_name":"a_kawashiro"}