{"provider_name":"Hatena Blog","published":"2011-05-01 19:26:55","author_name":"a_kawashiro","image_url":null,"categories":["topcoder"],"blog_url":"https://a-kawashiro.hatenablog.com/","blog_title":"a_kawashiro\u306e\u30d6\u30ed\u30b0","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fa-kawashiro.hatenablog.com%2Fentry%2F20110501%2F1304245615\" title=\"SRM395 div1 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>","author_url":"https://blog.hatena.ne.jp/a_kawashiro/","type":"rich","height":"190","url":"https://a-kawashiro.hatenablog.com/entry/20110501/1304245615","title":"SRM395 div1 medium","version":"1.0","width":"100%","description":"\u4e00\u756a\u9ad8\u3044\u30d3\u30eb\u304b\u3089\u5165\u308c\u3066\u3044\u304f\u3002 \u4e00\u756a\u5de6\u306b\u5165\u308c\u308b\u3068\u5de6\u304b\u3089\u898b\u3048\u308b\u30d3\u30eb\u304c\u4e00\u3064\u5897\u3048\u308b\u3002 \u4e00\u756a\u53f3\u306b\u5165\u308c\u308b\u3068\u53f3\u304b\u3089\u898b\u3048\u308b\u30d3\u30eb\u304c\u4e00\u3064\u5897\u3048\u308b\u3002 \u305d\u308c\u4ee5\u5916\u306e\u5834\u6240\u306b\u5165\u308c\u3066\u3082\u898b\u3048\u308b\u30d3\u30eb\u306f\u5897\u3048\u306a\u3044\u3002 #include <cstdio> #include <cstring> using namespace std; typedef long long LL; LL cache[100+10][100+10][100+10]; class Skyscrapers { public: int N; LL rec(int left,int right,int pos) { if(0<=left && 0<=right) { L\u2026"}