{"author_url":"https://blog.hatena.ne.jp/moistx/","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Flogfiles.hatenablog.com%2Fentry%2F20140416%2F1397666752\" title=\"UVa11371 Number Theory for Newbies - Logfiles\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"UVa11371 Number Theory for Newbies","author_name":"moistx","image_url":null,"url":"https://logfiles.hatenablog.com/entry/20140416/1397666752","categories":["UVa"],"height":"190","blog_url":"https://logfiles.hatenablog.com/","width":"100%","version":"1.0","blog_title":"Logfiles","description":"\u554f\u984c http://uva.onlinejudge.org/external/113/11371.html\u6982\u8981 \u5165\u529b\u306e\u6570\u5b57 N \u3092\u4e26\u3073\u66ff\u3048\u305f\u6570\u5b57 a, b \u304c\u3042\u308b\u3002a - b \u304c 9 \u306e\u500d\u6570\u306b\u306a\u308a\u3001\u304b\u3064 a - b \u304c\u6700\u5927\u306b\u306a\u308b\u3088\u3046\u306a a, b \u3092\u6c42\u3081\u3088\u3002\u305f\u3060\u3057\u3001a, b \u306fleading 0 \u3068\u306a\u308b\u3088\u3046\u306a\u6570\u5b57\u3067\u3042\u3063\u3066\u306f\u306a\u3089\u306a\u3044\u3002\u89e3\u6cd5 a \u306f\u6570\u5b57\u5217\u306e\u964d\u9806\u30bd\u30fc\u30c8\u3001b \u306f\u6607\u9806\u30bd\u30fc\u30c8\u3057\u305f\u3082\u306e\u3068\u3059\u308b\u3002(i) b \u304cleading 0 \u3067\u306a\u3044\u3068\u304d\u3001a-b \u304c\u305d\u306e\u307e\u307e 9 \u306e\u500d\u6570\u3068\u306a\u308b\u3002(ii) b \u304c leading 0 \u306e\u3068\u304d\u30010 \u3067\u306a\u3044\u6700\u5c0f\u306e\u5024\u3092\u5148\u982d\u306e 0 \u3068swap() \u3059\u308b\u3002 9 \u306e\u500d\u6570\u306e\u6700\u5927\u304c\u2026","published":"2014-04-16 01:45:52","type":"rich"}