{"author_name":"pknight","categories":["C","algorithm"],"blog_url":"https://pknight.hatenablog.com/","url":"https://pknight.hatenablog.com/entry/20090702/1246517826","provider_name":"Hatena Blog","type":"rich","title":"\u4ea4\u63db\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0","provider_url":"https://hatena.blog","version":"1.0","image_url":null,"width":"100%","height":"190","description":"http://www.geocities.jp/ky_webid/algorithm/001.html\u3042\u308b\u5024A\u3068B\u3092\u4ea4\u63db\u3057\u3088\u3046\u3068\u601d\u3063\u305f\u3089\u4e00\u6642\u5909\u6570\u306b\u4ee3\u5165\u3057\u306a\u3044\u3068\u4ea4\u63db\u3067\u304d\u306a\u3044 work = a; a = b; b = work; \u56e0\u307f\u306bPerl\u3068\u3044\u3046\u8a00\u8a9e\u306e\u5834\u5408\u306f\u4e00\u6642\u5909\u6570\u3092\u7528\u610f\u3057\u306a\u304f\u3066\u3082\u4ee3\u5165\u3067\u304d\u308b\u3002 ($a,$b) = ($b,$a); \u4e00\u6642\u5909\u6570\u3092\u4f7f\u308f\u306a\u3044\u4ea4\u63db \u7d39\u4ecb\u3055\u308c\u3066\u3044\u307e\u3059\u3002 b = a - b; a -= b; b += a; \u306a\u3093\u304b\u51c4\u3044\u3067\u3059\u306d\u3002\u5b9f\u969b\u306b\u5024\u3092\u8a2d\u5b9a\u3057\u3066\u8003\u3048\u3066\u898b\u307e\u3057\u3087\u3046\u304b\u3002 a = 12, b = 4\u3068\u4eee\u5b9a\u3059\u308b b = 12 - 4; b = 8; a = 12 - 8; a = 4\u2026","author_url":"https://blog.hatena.ne.jp/pknight/","blog_title":"(void*)P\u306a\u3044\u3068","published":"2009-07-02 15:57:06","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpknight.hatenablog.com%2Fentry%2F20090702%2F1246517826\" title=\"\u4ea4\u63db\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0 - (void*)P\u306a\u3044\u3068\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}