{"provider_url":"https://hatena.blog","published":"2014-04-05 14:01:05","url":"https://y0m0r.hateblo.jp/entry/20140405/1396674065","type":"rich","blog_url":"https://y0m0r.hateblo.jp/","author_name":"yuheiomori0718","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fy0m0r.hateblo.jp%2Fentry%2F20140405%2F1396674065\" title=\"python2\u3067\u30ea\u30b9\u30c8\u3092n\u500b\u305a\u3064\u306e\u30b5\u30d6\u30ea\u30b9\u30c8\u306b\u5206\u5272\u3059\u308b - \u30e1\u30e2\u7f6e\u304d\u5834\" 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,"author_url":"https://blog.hatena.ne.jp/yuheiomori0718/","description":"codeeval\u306esudoku\u3084\u3063\u305f\u3068\u304d\u306b\u8abf\u3079\u305f\u306e\u3067\u30e1\u30e2\u3002 \u7d50\u5c40\u4f7f\u308f\u306a\u304b\u3063\u305f\u3051\u3069\u3002Python2\u3067CodeEval\u306eSUDOKU - brainstorm # coding=utf-8 size = 4 digits = [1, 4, 2, 3, 2, 3, 1, 4, 4, 2, 3, 1, 3, 1, 4, 2] # \u30ea\u30b9\u30c8\u5185\u5305\u8868\u8a18 print [digits[x:x + size] for x in xrange(0, len(digits), size)] # [[1, 4, 2, 3], [2, 3, 1, 4], [4, 2, 3, 1], [3, 1, 4, 2]] # \u30b8\u30a7\u30cd\u30ec\u2026","height":"190","width":"100%","version":"1.0","categories":["python"],"title":"python2\u3067\u30ea\u30b9\u30c8\u3092n\u500b\u305a\u3064\u306e\u30b5\u30d6\u30ea\u30b9\u30c8\u306b\u5206\u5272\u3059\u308b","provider_name":"Hatena Blog","blog_title":"\u30e1\u30e2\u7f6e\u304d\u5834"}