{"description":"\u554f\u984c: D - GCD\u533a\u9593 \u516c\u5f0f\u89e3\u8aac: \u89e3\u8aac \u30b9\u30e9\u30a4\u30c9 \u554f\u984c\u6982\u8981 \u9577\u3055 $n (\\leq 10^5)$ \u306e\u6570\u5217 $a_1, a_2 \\dots, a_N (1 \\leq a_i \\leq 10^9)$ \u304c\u3042\u308b\u3002\u3053\u306e\u6570\u5217\u306b\u5bfe\u3057\u3066\uff0c\u6b21\u306e\u30af\u30a8\u30ea\u304c $m (\\leq 10^5)$ \u56de\u4e0e\u3048\u3089\u308c\u308b\u3002\u305d\u308c\u305e\u308c\u306e\u30af\u30a8\u30ea\u306e\u7b54\u3048\u3092\u51fa\u529b\u305b\u3088\u3002 \u6700\u5927\u516c\u7d04\u6570\u304c $x$ \u3068\u306a\u308b\u533a\u9593\u306f\u3044\u304f\u3064\u3042\u308b\uff1f \u89e3\u6cd5\u6982\u8981 $a_l, a_{l+1} \\dots, a_{r-1}, a_r$ \u306e\u6700\u5927\u516c\u7d04\u6570\u3092 $\\mathit{gcd}(l, r)$ \u3068\u8868\u3059\u3002 \u533a\u9593\u306e\u6570\u306f\u5168\u90e8\u3067 $n^2-1$ \u500b\u3042\u308b\u306e\u3067\uff0c\u533a\u9593$[s, t]$ \u306e $s$ \u2026","version":"1.0","type":"rich","blog_url":"https://noimin.hatenablog.com/","published":"2020-03-19 18:47:30","url":"https://noimin.hatenablog.com/entry/2020/03/19/184730","image_url":null,"provider_name":"Hatena Blog","blog_title":"Noimin\u306eNoise","categories":["\u7af6\u6280\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 (\u554f\u984c\u89e3\u8aac)"],"width":"100%","author_name":"noimin","provider_url":"https://hatena.blog","height":"190","title":"AtCoder Regular Contest 023 D - GCD\u533a\u9593","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnoimin.hatenablog.com%2Fentry%2F2020%2F03%2F19%2F184730\" title=\"AtCoder Regular Contest 023 D - GCD\u533a\u9593 - Noimin\u306eNoise\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/noimin/"}