{"width":"100%","blog_title":"\u3059\u304e\u3083\u30fc\u3093\u30e1\u30e2","image_url":null,"blog_url":"https://memo.sugyan.com/","title":"Sierpinski triangle\u30ef\u30f3\u30e9\u30a4\u30ca\u30fc \u305d\u306e\uff12","published":"2009-02-28 13:57:22","height":"190","version":"1.0","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/sugyan/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemo.sugyan.com%2Fentry%2F20090228%2F1235797042\" title=\"Sierpinski triangle\u30ef\u30f3\u30e9\u30a4\u30ca\u30fc \u305d\u306e\uff12 - \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>","author_name":"sugyan","url":"https://memo.sugyan.com/entry/20090228/1235797042","provider_url":"https://hatena.blog","type":"rich","categories":["Perl","OneLiner"],"description":"Sierpinski triangle\u30ef\u30f3\u30e9\u30a4\u30ca\u30fc - \u3059\u304e\u3083\u30fc\u3093\u30e1\u30e2\u306e\u7d9a\u304d\u3002 \u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306e\u610f\u5473\u3092\u81ea\u5206\u306a\u308a\u306b\u6c72\u307f\u53d6\u3063\u3066\u66f8\u304d\u63db\u3048\u3066\u307f\u305f\u3002 $ perl -le 'print map { ~$n & $_ ? \".\" : \"#\" } 0..($n = $_ - 1) for 1..2**pop' 6 # ## #.# #### #...# ##..## #.#.#.# ######## #.......# ##......## #.#.....#.# ####....#### #...#...#...# ##..##..##..## #.#.#.#.#.#.#.# ###############\u2026"}