{"image_url":null,"type":"rich","blog_title":"sekiyo\u2019s diary","published":"2004-05-19 00:00:00","author_url":"https://blog.hatena.ne.jp/sekiyo/","height":"190","description":"1 \u4ee5\u4e0a max \u672a\u6e80\u306e n \u306e\u500d\u6570\u306e\u548c\u3092\u8a08\u7b97\u3059\u308b \u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u305b\u3088\u3002 \u307e\u305a\u306f\u57fa\u672c\u306b\u623b\u3063\u3066 for\u6587\u306e { \u4e2d\u30ab\u30c3\u30b3 } \u306e\u306a\u304b\u3067 \u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u3068\u540c\u3058\u3088\u3046\u306b \u5909\u6570 x \u306b 1 \u3092\u52a0\u3048\u3066\u3044\u304f\u306b\u306f \u5897\u5206\u51e6\u7406\u306b\u4f7f\u3063\u305f \u304f\u308a\u8fd4\u3057\u5909\u6570 i \u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3002 x = x + i \u307e\u305f\u306f x += i \u5909\u6570\u306f \u3064\u304e\u306e 5\u3064 n : \u3082\u3068\u306e\u6570 max : \u6700\u5927\u306e\u6570 i : \u304f\u308a\u304b\u3048\u3059\u56de\u6570 \u2190 \u3053\u308c\u306f max / n \u306b\u306a\u308b x : n \u306b\u304b\u3051\u308b\u6570 y : n \u306e\u500d\u6570 n \u3068 max \u306f\u5909\u6570\u3060\u304c\u3001\u5f0f\u306e\u4e2d\u3067\u306f\u5909\u5316\u3057\u306a\u3044\u306e\u3067\u3001\u4eee\u308a\u306b max = 100 n = 2 \u3068\u56fa\u5b9a\u3057\u3066\u8003\u3048\u3066\u307f\u308b\u3068 /* kotei *\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsekiyo.hatenablog.com%2Fentry%2F20040519%2Fp1\" title=\"\u306f\u3058\u3081\u3066\u306e C - sekiyo\u2019s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://sekiyo.hatenablog.com/","width":"100%","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","version":"1.0","title":"\u306f\u3058\u3081\u3066\u306e C","categories":["lang"],"author_name":"sekiyo","url":"https://sekiyo.hatenablog.com/entry/20040519/p1"}