Advertisement
leminhkt

85

Oct 24th, 2020
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.18 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4.  
  5. long long x;
  6. unordered_map<long long, bool> m;
  7.  
  8.  
  9. int main() {
  10.     for (; cin >> x; m[x] = true)
  11.         if (m[x]) return cout << x, 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement