#ifndef ONLINE_JUDGE #define _GLIBCXX_DEBUG #endif #include using namespace std; using ll = long long; //https://boostjp.github.io/tips/multiprec-int.html #define YES cout<<"Yes"<=0; --i) #define all(a) a.begin(),a.end() #define rall(a) a.rbegin(),a.rend() int main() { int N; cin >> N; set> st; rep(i, N) { int a, b; cin >> a >> b; if (st.count({a, b})) { YES; return 0; } st.insert({a, b}); } NO; }