{"width":"100%","provider_url":"https://hatena.blog","published":"2011-06-21 21:04:00","categories":["topcoder"],"type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fa-kawashiro.hatenablog.com%2Fentry%2F20110621%2F1308657840\" title=\"SRM370 div1medium - 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>","url":"https://a-kawashiro.hatenablog.com/entry/20110621/1308657840","author_name":"a_kawashiro","version":"1.0","title":"SRM370 div1medium","height":"190","blog_title":"a_kawashiro\u306e\u30d6\u30ed\u30b0","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/a_kawashiro/","blog_url":"https://a-kawashiro.hatenablog.com/","description":"\u901a\u4fe1\u7bc4\u56f2\u3092\uff11\u3065\u3064\u5927\u304d\u304f\u3057\u306a\u304c\u3089\u30e1\u30e2\u5316\u518d\u5e30\u3002 #include <algorithm> #include <vector> using namespace std; class ConnectTheCities { public: int n,dist,range; vector<int> pos; int cache[105][55]; int rec(int bP,int k) { //printf(\"bP=%d k=%d\\n\",bP,k); int &r=cache[bP][k]; if(r!=-1) ; else if(k==n) { if(dist-range<=bP) r=0; el\u2026","image_url":null}