{"provider_url":"https://hatena.blog","provider_name":"Hatena Blog","url":"https://kenkoooo.hatenablog.com/entry/2015/04/24/043117","blog_url":"https://kenkoooo.hatenablog.com/","type":"rich","categories":["\u7af6\u6280\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","SRM"],"height":"190","title":"TopCoder SRM 639 Div1 Easy: AliceGame (\u8caa\u6b32\u6cd5)","description":"\u554f\u984c TopCoder Statistics - Problem Statement \u89e3\u6cd5 \u6b8b\u3063\u3066\u3044\u308b\u6570\u304b\u3089\u5f15\u304f\u3053\u3068\u306e\u51fa\u6765\u308b\u6700\u5927\u306e\u5947\u6570\u3092\u5f15\u304f\u3002\u3053\u308c\u3092\u7e70\u308a\u8fd4\u3059\u3002\u305f\u3060\u3057\u3002\u6b8b\u308a\u306e\u6570\u5b57\u304c2\u306b\u306a\u308b\u3088\u3046\u306a\u30d1\u30bf\u30fc\u30f3\u306f\u907f\u3051\u308b\u3002 \u30b3\u30fc\u30c9 public class AliceGame { public long findMinimumValue(long x, long y) { long sum = x + y; long n = (long) Math.sqrt(sum); if (n * n != sum || x == 2 || y == 2) { return -1; } long ans = 0; /\u2026","width":"100%","author_url":"https://blog.hatena.ne.jp/kenkoooo/","author_name":"kenkoooo","published":"2015-04-24 04:31:17","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkenkoooo.hatenablog.com%2Fentry%2F2015%2F04%2F24%2F043117\" title=\"TopCoder SRM 639 Div1 Easy: AliceGame (\u8caa\u6b32\u6cd5) - \u5b87\u5b99\u30c4\u30a4\u30c3\u30bf\u30e9\u30fcX\u306e\u6182\u9b31\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","image_url":null,"blog_title":"\u5b87\u5b99\u30c4\u30a4\u30c3\u30bf\u30e9\u30fcX\u306e\u6182\u9b31"}