Entries from 2022-07-25 to 1 day

std::set

atcoder.jp 簡単な問題だけど std::set を初めて使ったのでメモ. #include <bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); set<int> s; for (int i = 0; i < 3; i++) { int x; cin >> x; s.insert(x); } if(s.size() == 2) { cout </int></bits/stdc++.h>…