{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Feinherjar.hatenadiary.org%2Fentry%2F20071014%2Fp1\" title=\"\u30de\u30af\u30ed\u95a2\u6570 - ProsBloom\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","blog_url":"https://einherjar.hatenadiary.org/","version":"1.0","image_url":null,"type":"rich","url":"https://einherjar.hatenadiary.org/entry/20071014/p1","description":"\u305f\u3068\u3048\u3070int\u5909\u6570\u306e\u5024\u3092\u5165\u308c\u66ff\u3048\u308b\u30de\u30af\u30ed\u3092\u8003\u3048\u308b\u3002\u521d\u3081\u306b\u8003\u3048\u308b\u3060\u308d\u3046\u30de\u30af\u30ed\u306f\u3053\u3093\u306a\u611f\u3058\u304b #define SWAP(x, y) int tmp; tmp = x; x = y; y = tmp; \u3057\u304b\u3057\u3001\u3053\u308c\u3060\u3068C89\u6e96\u62e0\u306b\u306a\u3089\u306a\u3044\u3002\u30d6\u30ed\u30c3\u30af\u306e\u9014\u4e2d\u3067\u5909\u6570\u306e\u5ba3\u8a00\u304c\u3067\u304d\u306a\u3044\u5236\u9650\u304c\u3042\u308b\u305f\u3081\u3060\u3002\u3088\u3063\u3066\u6b21\u306e\u6bb5\u968e\u3067\u306f\u3053\u3046\u306a\u308b\u3002 #define SWAP(x, y) {int tmp; tmp = x; x = y; y = tmp; } \u3053\u308c\u3067\u307b\u3068\u3093\u3069\u306e\u5834\u5408OK\u306a\u306e\u3060\u304c\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5834\u5408\u306b\u554f\u984c\u306b\u306a\u308b\u3002 if (x > 0) SWAP(x, y); else printf(\"x\u306f\u6b63\u306e\u6574\u6570\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\")\u2026","author_url":"https://blog.hatena.ne.jp/Einherjar/","title":"\u30de\u30af\u30ed\u95a2\u6570","blog_title":"ProsBloom","categories":["\u30d7\u30ed\u30b0\u30e9\u30e0","C\u8a00\u8a9e"],"provider_url":"https://hatena.blog","author_name":"Einherjar","published":"2007-10-14 00:00:00","width":"100%","height":"190"}