{"blog_url":"https://blog.emattsan.org/","blog_title":"\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u7684\u611b\u60c5","height":"190","provider_url":"https://hatena.blog","categories":["C++"],"title":"Pyramid","url":"https://blog.emattsan.org/entry/20070908/1189268888","type":"rich","image_url":null,"author_name":"E_Mattsan","provider_name":"Hatena Blog","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.emattsan.org%2Fentry%2F20070908%2F1189268888\" title=\"Pyramid - \u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u7684\u611b\u60c5\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"id:cxx\u3055\u3093\u306e\u30a8\u30f3\u30c8\u30ea\u7d4c\u7531\u3067\u9762\u767d\u305d\u3046\u306a\u30b5\u30a4\u30c8\u3092\u898b\u3064\u3051\u307e\u3057\u305f\u3002\u308f\u305f\u3057\u3082\u3072\u3068\u3064\u2026\u3002http://ja.doukaku.org/52/ #include <iostream> #include <string> void pyramid(const std::string& src) { const int lineLength = src.size() * 2 - 1; std::string line(lineLength, ' '); for(int i = src.size() - 1; i >= 0; --i) { line[i] = src[i]; std::cout << line\u2026","published":"2007-09-08 01:28:08","author_url":"https://blog.hatena.ne.jp/E_Mattsan/","width":"100%"}