{"width":"100%","type":"rich","blog_url":"https://yoshichi9.hatenablog.com/","description":"\u554f\u984c\u6982\u8981 Problem - B - Codeforces\u6570\u5217a\u304c\u6e21\u3055\u308c\u308b\u3002 1\u2264i,j\u2264n\u3068\u3057\u305f\u3068\u304d\u3001 k*|i\u2212j|\u2264min(ai,aj)\u3092\u6e80\u305f\u3059k\u3092\u7b54\u3048\u3088 \u89e3\u6cd5 k = ai / max(i, n- i)\u3092\u5168\u3066\u8a66\u305b\u3070\u3088\u3044\u3002\u4f8b\u3048\u3070\u3001N\u30929\u3068\u3057\u305f\u3068\u304d |i-j|\u306e\u6700\u5927\u5024\u306f\u6570\u5217ai\u304b\u3089 0 1 2 3 4 5 6 7 8 (\u8981\u7d20)\u3068\u4e26\u3079\u305f\u3068\u304d 8 7 6 5 4 5 6 7 8 (\u5404\u8981\u7d20\u306e|i-j|\u306e\u6700\u5927) \u3068\u306a\u308b\u3002 ai\u306f\u3001\u305d\u306e\u90fd\u5ea6\u3001|i-j|\u306e\u6700\u5927\u5024\u3067\u5272\u308b\u305f\u3081 ai\u304c\u6700\u5c0f\u3060\u308d\u3046\u304c\u306a\u304b\u308d\u3046\u304c\u5168\u3066\u8a66\u3059\u305f\u3081\u6c17\u306b\u3057\u306a\u304f\u3066\u3088\u3044\u3002 #include<bits/stdc++.h> using names\u2026","url":"https://yoshichi9.hatenablog.com/entry/2019/05/14/000531","title":"Codeforces Round #559 (Div. 2) - B. Expansion coefficient of the array","height":"190","published":"2019-05-14 00:05:31","author_url":"https://blog.hatena.ne.jp/Yoshichi/","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyoshichi9.hatenablog.com%2Fentry%2F2019%2F05%2F14%2F000531\" title=\"Codeforces Round #559 (Div. 2) - B. Expansion coefficient of the array - Yoshichi\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","author_name":"Yoshichi","image_url":null,"blog_title":"Yoshichi\u306e\u65e5\u8a18","version":"1.0","categories":["Codeforces"]}