{"image_url":"https://chart.apis.google.com/chart?cht=tx&chl=%20%201%20%5Cleq%20N%20%5Cleq%2010%5E%7B5%7D","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fat274.hatenablog.com%2Fentry%2F2020%2F06%2F22%2F213324\" title=\"ABC171 D - Replacing - \u3042\u3063\u3068\u306eTECH LOG\" 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","categories":["\u7af6\u30d7\u30ed"],"description":"\u554f\u984c\u539f\u6587 atcoder.jp \u89e3\u6cd5 \u611a\u76f4\u306b\u3084\u308b\u3068\u5f53\u7136\u9593\u306b\u5408\u308f\u306a\u3044\u3002 \u3042\u3089\u304b\u3058\u3081\u5168\u8981\u7d20\u306e\u548c\u3092\u8a08\u7b97\u3057\u3066\u304a\u3044\u3066\u3001\u5dee\u5206\u66f4\u65b0\u3060\u3051\u3059\u308b\u3088\u3046\u306b\u3084\u308c\u3070\u9593\u306b\u5408\u3046\u3002 \u5dee\u5206\u66f4\u65b0\u306f\u5404\u6570\u306e\u500b\u6570\u3092\u6301\u3063\u3066\u304a\u3051\u3070\u3067\u304d\u308b\u3002 \u5b9f\u88c5 from collections import Counter N = int(input()) A = list(map(int, input().split())) C = Counter(A) Q = int(input()) SUM = sum(A) for q in range(Q): b, c = map(int, input().split()) SUM -= C[b] * b SUM\u2026","published":"2020-06-22 21:33:24","type":"rich","height":"190","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/AT274/","width":"100%","url":"https://at274.hatenablog.com/entry/2020/06/22/213324","blog_url":"https://at274.hatenablog.com/","author_name":"AT274","provider_url":"https://hatena.blog","blog_title":"\u3042\u3063\u3068\u306eTECH LOG","title":"ABC171 D - Replacing"}