{"description":"\u6ca1\u30b3\u30fc\u30c9\u96c6\u3002 608. GCD Again\u30b1\u30fc\u30b9\u6570\u304c\u9b31\u9676\u3057\u3044\u3002\u30b1\u30fc\u30b9\u6570\u306e\u7121\u8996\u306f\u3001scanf(\"%d\",gets(&x))\u304c+6B\u3067\u5178\u578b\u3060\u3051\u3069\u3001\u884c\u5185\u306b\u8907\u6570\u5165\u529b\u3042\u3063\u305f\u308a\u3001vprintf\u3068\u7d44\u307f\u5408\u308f\u305b\u308b\u305f\u3081\u306b\"%d\\n\"\u3092\u4f7f\u3046\u3068\u7834\u7dbb\u3059\u308b\u3002\u5909\u6570\u5897\u3084\u3057\u3066printf\u306b\u6761\u4ef6\u3092\u3064\u3051\u308b\u3068+7B\u3002GCD\u306f\u666e\u901a\u306b\u5272\u308a\u7b97\u3057\u3066swap\u304c\u77ed\u3044\u306e\u304b\u306a\u3002\u7d50\u679c\u304c\u30bc\u30ed\u306b\u306a\u3063\u305f\u308a\u3001\u30bc\u30ed\u5272\u306b\u306a\u3063\u305f\u308a\u3001\u30eb\u30fc\u30d7\u7d71\u5408\u3068\u76f8\u6027\u304c\u60aa\u3044\u3002 // AC 112B p;main(N,g,d){for(;~scanf(\"%d\",gets(&N));p=!printf(\"%d\\n\",g))for(g=999;N--;p=g)for(scanf(\"%d\",\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnu4nu.hatenadiary.org%2Fentry%2F20120719\" title=\"\u6700\u8fd1\u306e\u3042\u306a\u3054\u308b - nu4nu@hatena\" 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":"nu4nu","image_url":null,"version":"1.0","title":"\u6700\u8fd1\u306e\u3042\u306a\u3054\u308b","author_url":"https://blog.hatena.ne.jp/nu4nu/","width":"100%","published":"2012-07-19 00:00:00","categories":[],"provider_name":"Hatena Blog","provider_url":"https://hatena.blog","blog_url":"https://nu4nu.hatenadiary.org/","type":"rich","height":"190","blog_title":"nu4nu@hatena","url":"https://nu4nu.hatenadiary.org/entry/20120719"}