{"provider_url":"https://hatena.blog","author_name":"drken1215","categories":["\u305d\u306e\u307e\u307e\u899a\u3048\u305f\u3044\u6613\u3057\u3044\u6559\u80b2\u7684\u5178\u578b\u554f\u984c","\u7a2e\u985e\u6570","\u9023\u60f3\u914d\u5217(set\u3084map)","\u6570\u5217","NoviSteps6Q","AtCoder","AtCoder200\u70b9","ABC-B","\u7070\u8272diff","\u914d\u5217","\u6613\u3057\u3044\u914d\u5217\u306e\u554f\u984c","\u8003\u5bdf\uff1a\u30bd\u30fc\u30c8","\u3010\u554f\u984c\u96c6\u3011\u30bd\u30fc\u30c8"],"author_url":"https://blog.hatena.ne.jp/drken1215/","version":"1.0","height":"190","width":"100%","published":"2024-07-05 01:15:38","blog_url":"https://drken1215.hatenablog.com/","provider_name":"Hatena Blog","blog_title":"\u3051\u3093\u3061\u3087\u3093\u306e\u7af6\u30d7\u30ed\u7cbe\u9032\u8a18\u9332","image_url":"https://cdn.user.blog.st-hatena.com/default_entry_og_image/80936665/1687765056723440","url":"https://drken1215.hatenablog.com/entry/2024/07/05/011538","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdrken1215.hatenablog.com%2Fentry%2F2024%2F07%2F05%2F011538\" title=\"AtCoder ABC 240 B - Count Distinct Integers (6Q, \u7070\u8272, 200 \u70b9) - \u3051\u3093\u3061\u3087\u3093\u306e\u7af6\u30d7\u30ed\u7cbe\u9032\u8a18\u9332\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"AtCoder ABC 240 B - Count Distinct Integers (6Q, \u7070\u8272, 200 \u70b9)","description":"\u3044\u308d\u3093\u306a\u65b9\u6cd5\u304c\u8003\u3048\u3089\u308c\u308b\u8d85\u5178\u578b\u554f\u984c \u554f\u984c\u3078\u306e\u30ea\u30f3\u30af \u554f\u984c\u6982\u8981 \u9577\u3055 \u306e\u6574\u6570\u6570\u5217 \u304c\u4e0e\u3048\u3089\u308c\u308b\u3002 \u3053\u306e\u6570\u5217\u306b\u542b\u307e\u308c\u308b\u6574\u6570\u306e\u7a2e\u985e\u6570\u3092\u7b54\u3048\u3088\u3002 \u5236\u7d04 \u89e3\u6cd5 set \u578b\u306e\u77e5\u8b58\u304c\u3042\u308c\u3070\u3001\u305d\u308c\u3092\u7528\u3044\u308b\u306e\u304c\u6700\u3082\u697d\u3060\u3068\u601d\u3046 (\u4ed6\u306e\u65b9\u6cd5\u306f\u516c\u5f0f\u89e3\u8aac\u3092\u53c2\u7167)\u3002C++ \u306e set \u578b\u3092\u7528\u3044\u308b\u3068\u3001 \u5024 \u3092\u96c6\u5408 \u306b\u633f\u5165\u3059\u308b\u51e6\u7406\uff1aS.insert(x) \u96c6\u5408 \u306b\u542b\u307e\u308c\u308b\u6574\u6570\u306e\u500b\u6570\u3092\u6c42\u3081\u308b\u51e6\u7406\uff1aS.size() \u3068\u66f8\u3051\u308b\u3002\u3059\u3067\u306b \u304c \u306b\u542b\u307e\u308c\u3066\u3044\u308b\u3068\u304d\u306f\u3001 \u306f\u5909\u5316\u3057\u306a\u3044\u3002 \u3088\u3063\u3066\u3001\u6b21\u306e\u3088\u3046\u306b\u554f\u984c\u304c\u89e3\u3051\u308b\u3002 \u3092\u9806\u306b\u96c6\u5408 \u3092\u633f\u5165\u3059\u308b \u96c6\u5408 \u306b\u542b\u307e\u308c\u308b\u6574\u6570\u306e\u500b\u6570\u3092\u7b54\u3048\u308b \u30b3\u30fc\u30c9 #include <bits/stdc++.h> u\u2026","type":"rich"}