{"blog_title":"\u30d0\u30a4\u30c8\u306e\u7af6\u30d7\u30ed\u30e1\u30e2","url":"https://baitop.hatenadiary.jp/entry/2023/07/11/030032","provider_name":"Hatena Blog","title":"AtCoder Beginner Contest 307 G - Approximate Equalization","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaitop.hatenadiary.jp%2Fentry%2F2023%2F07%2F11%2F030032\" title=\"AtCoder Beginner Contest 307 G - Approximate Equalization - \u30d0\u30a4\u30c8\u306e\u7af6\u30d7\u30ed\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2023-07-11 03:00:32","categories":["\u4e0d\u5909\u91cf","ARC_\u8db3\u3057\u7b97\u30b2\u30fc","\u6700\u5c0f\u624b\u6570"],"provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/baitop/","image_url":null,"blog_url":"https://baitop.hatenadiary.jp/","height":"190","description":"G - Approximate Equalization \u30e1\u30e2 \u5dee\u5206\u3060\u3051\u304c\u91cd\u8981\u306a\u306e\u3067\u3001\u5404Ai\u306b\u3064\u3044\u3066 Ai -= min(A)\u3068\u3057\u3066\u3044\u3044 \u3059\u308b\u3068\u4efb\u610f\u306e\u5024\u304c0\u4ee5\u4e0a\u306e\u6574\u6570\u306b\u306a\u308b\u3002 \u307e\u305f\u3001\u3053\u306e\u64cd\u4f5c\u306b\u304a\u3044\u3066\u5408\u8a08\u306f\u4e0d\u5909\u3067\u3042\u308b\u305f\u3081 \u6700\u7d42\u7684\u306a\u3059\u3079\u3066\u306e\u5408\u8a08\u306fsa := sigma(A)\u306b\u306a\u308b \u6700\u7d42\u7684\u306a\u6570\u5217\u3068\u3057\u3066\u3042\u3089\u308f\u308c\u308b\u7269\u3092\u8003\u3048\u308b sa\u304cN\u3067\u5272\u308a\u5207\u308c\u308b\u3068\u304d\u306f\u3059\u3079\u3066\u306e\u8981\u7d20\u306fsa / N\u306b\u306a\u308a \u305d\u308c\u4ee5\u5916\u306e\u5834\u5408\u3001sa/N(\u5207\u308a\u6368\u3066)\u3068 sa/N(\u5207\u308a\u4e0a\u3052)\u306b\u306a\u308b \u5207\u308a\u6368\u3066\u306e\u5c0f\u3055\u3044\u6570\u304c\u6700\u7d42\u7684\u306b\u6570\u5217\u306b\u542b\u307e\u308c\u308b\u500b\u6570\u3092a \u5207\u308a\u4e0a\u3052\u306e\u5927\u304d\u3044\u6570\u304c\u6700\u7d42\u7684\u306b\u6570\u5217\u306b\u542b\u307e\u308c\u308b\u500b\u6570\u3092b\u3068\u3057\u305f\u3068\u304d\u306b b = sa % N\u3067\u3001a = n -\u2026","author_name":"baitop","type":"rich","version":"1.0"}