Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- long long x;
- unordered_map<long long, bool> m;
- int main() {
- for (; cin >> x; m[x] = true)
- if (m[x]) return cout << x, 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement