{"type":"rich","author_url":"https://blog.hatena.ne.jp/sugyan/","title":"Decompose integer into sum of squares\u306e\u4ef6","description":"anarchy golf - Decompose integer into sum of squares anarchy golf \u306e\u51fa\u984c\u30df\u30b9\uff1f - TAKESAKO\u306e\u306f\u3066\u306a\u51fa\u5f35\u6240 \u3069\u3046\u3084\u3089\u9593\u9055\u3063\u3066\u3044\u305f\u3089\u3057\u304f\u3002\u5168\u7136\u6c17\u4ed8\u304b\u305a\u306b\u30b4\u30c1\u30e3\u30b4\u30c1\u30e3\u3068\u66f8\u3044\u305f\u30e4\u30c4\u304c\u901a\u3063\u3066\u3044\u305f\u306e\u3067\u307e\u3063\u305f\u304f\u6c17\u4ed8\u304d\u307e\u305b\u3093\u3067\u3057\u305f orz \u305f\u3076\u3093\u3053\u3093\u306a\u306e\u3092\u66f8\u304d\u307e\u3059\u305f\u3002 use List::Util 'sum';$c[sum map{$_**2}@$_]||=[grep$_,@$_]for map{@a=@$_;map[$_,@a],1..17}map{@a=@$_;map[$_,@a],0..12}map{@a=$_;map[$_,@\u2026","height":"190","version":"1.0","provider_url":"https://hatena.blog","author_name":"sugyan","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemo.sugyan.com%2Fentry%2F20090724%2F1248402912\" title=\"Decompose integer into sum of squares\u306e\u4ef6 - \u3059\u304e\u3083\u30fc\u3093\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2009-07-24 11:35:12","blog_url":"https://memo.sugyan.com/","blog_title":"\u3059\u304e\u3083\u30fc\u3093\u30e1\u30e2","image_url":null,"width":"100%","url":"https://memo.sugyan.com/entry/20090724/1248402912","categories":["Perl","Golf"],"provider_name":"Hatena Blog"}