{"height":"190","title":"Electric Station \u56de\u6587\u554f\u984c\uff08The Longest Palindromic\uff09","published":"2017-12-27 00:29:20","url":"https://mako-shark.hatenadiary.jp/entry/2017/12/27/002920","type":"rich","blog_title":"python; checkio\u65e5\u8a18","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmako-shark.hatenadiary.jp%2Fentry%2F2017%2F12%2F27%2F002920\" title=\"Electric Station \u56de\u6587\u554f\u984c\uff08The Longest Palindromic\uff09 - python; checkio\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"provider_url":"https://hatena.blog","author_name":"mako_shark","provider_name":"Hatena Blog","blog_url":"https://mako-shark.hatenadiary.jp/","categories":[],"description":"\u4eca\u56de\u306f\u4e0e\u3048\u3089\u308c\u305f\u30c6\u30ad\u30b9\u30c8\u5185\u3067\u3082\u3063\u3068\u3082\u9577\u3044\u56de\u6587\u3092\u63a2\u3057\u307e\u3059\u3002 \u524d\u304b\u3089\u4e00\u6587\u5b57\u305a\u3064\u5224\u5b9a \u540c\u3058\u6587\u5b57\u3067\u5207\u308c\u308b\u3068\u3053\u308d\u3092\u63a2\u3057 \u53cd\u8ee2\u3057\u3066\u3082\u4e00\u81f4\u3059\u308b\u304b\u3092\u8abf\u3079\u308b \u3068\u3044\u3046\u65b9\u5411\u6027\u3067\u3084\u308a\u307e\u3057\u305f\u3002 def longest_palindromic(test): ntest = [(i,test[i]) for i in range(len(test))] # enumerate comb=[] for i in range(len(test)-1): comb.extend([(test[i:(x+1)],x-i+1) for (x, y) in ntest[i+1:] \\ if (y == test[i] and test\u2026","author_url":"https://blog.hatena.ne.jp/mako_shark/","version":"1.0"}