{"provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/bouzuya/","type":"rich","published":"2020-02-10 21:12:20","height":"190","image_url":null,"width":"100%","version":"1.0","categories":[],"blog_url":"https://bouzuya.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbouzuya.hatenablog.com%2Fentry%2F2020%2F02%2F10%2F211220\" title=\"bouzuya/node-hatena-bookmark-api 3.0.0 \u3092\u3064\u304f\u3063\u305f - bouzuya.hatenablog.com\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"bouzuya/node-hatena-bookmark-api 3.0.0 \u3092\u3064\u304f\u3063\u305f","author_name":"bouzuya","description":"\u671d\u30fb\u663c\u3002 ABC154 \u306e\u5fa9\u7fd2\u3002 A, B, C \u3068 D \u306e\u9014\u4e2d\u3002 HashSet \u306e\u69cb\u7bc9\u306b collect \u304c\u4f7f\u3048\u308b\u3093\u3060\u306a\u3042\u3002 https://atcoder.jp/contests/abc154/submissions/10017902 use proconio::input; use std::collections::HashSet; fn main() { input! { n: usize, av: [usize; n] }; // av: Vec<usize> let set: HashSet<usize> = av.into_iter().collect(); let ans \u2026","url":"https://bouzuya.hatenablog.com/entry/2020/02/10/211220","blog_title":"bouzuya.hatenablog.com","provider_url":"https://hatena.blog"}