{"description":"\u4ed5\u4e8b\u3067\u306f\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306b\u307b\u3068\u3093\u3069\u30b3\u30fc\u30c9\u3092\u66f8\u304b\u305b\u3066\u3044\u308b\u3051\u3069\u3001\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u529b\u306f\u7dad\u6301\u3057\u305f\u3044\u306e\u3067\u3001AtCoder \u3092\u518d\u958b\u3002 atcoder.jp var NK = Console.ReadLine() .Split(' ') .Select(x => long.Parse(x)) .ToArray(); var N = NK[0]; var K = NK[1]; var A = Console.ReadLine() .Split(' ') .Select(x => long.Parse(x)) .ToArray(); // A[1] \u304b\u3089 A[N] \u305d\u308c\u305e\u308c\u306e\u3001\u5dee\u304c K \u4ee5\u4e0b\u3067\u6700\u5927\u306e\u30da\u30a2\u3092\u6307\u2026","author_url":"https://blog.hatena.ne.jp/griefworker/","url":"https://tnakamura.hatenablog.com/entry/2026/09/02/a13","author_name":"griefworker","width":"100%","type":"rich","categories":["C#",".NET","\u7af6\u6280\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"title":"A13 - Close Pairs","published":"2026-09-02 08:00:00","provider_name":"Hatena Blog","image_url":null,"blog_url":"https://tnakamura.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftnakamura.hatenablog.com%2Fentry%2F2026%2F09%2F02%2Fa13\" title=\"A13 - Close Pairs - present\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","version":"1.0","provider_url":"https://hatena.blog","blog_title":"present"}