{"description":"swap\u306f\u4e00\u756a\u6700\u521d\u306b\u3059\u308c\u3070\u5168\u90e8\u8a66\u3057\u3066\u3057\u307e\u3048\u3070\u826f\u3044\u3068\u3044\u3046\u306e\u306b\u6c17\u3065\u3051\u3070\u4e00\u767a \u4e00\u56de\u306e\u64cd\u4f5c\u3054\u3068\u306b\u524d1\u3064\u304b\u3001\u5f8c\u308d\uff11\u304b\u3001\u524d\u5f8c\u308d1\u3064\u305a\u3064\u8003\u3048\u306a\u304f\u3066\u3082\u826f\u304f\u306a\u308b #include <cstring> #include <string> using namespace std; class PalindromeFactory { public: string source[50][50]; int cache[50][50][50][50]; int rec(int s1,int s2,int f,int e) { int &r=cache[s1][s2][f][e]; string s=source[s1][s\u2026","published":"2011-03-13 14:51:25","image_url":null,"provider_name":"Hatena Blog","version":"1.0","author_url":"https://blog.hatena.ne.jp/a_kawashiro/","blog_title":"a_kawashiro\u306e\u30d6\u30ed\u30b0","title":"SRM439 div2 hard","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fa-kawashiro.hatenablog.com%2Fentry%2F20110313%2F1299995485\" title=\"SRM439 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>","categories":["topcoder"],"author_name":"a_kawashiro","provider_url":"https://hatena.blog","width":"100%","blog_url":"https://a-kawashiro.hatenablog.com/","height":"190","url":"https://a-kawashiro.hatenablog.com/entry/20110313/1299995485"}