Submission #445190

#TimeUsernameProblemLanguageResultExecution timeMemory
445190Wasif_JamilMatching (COCI20_matching)C++14
5 / 110
1 ms292 KiB
// "Say:He is the Most Merciful,We have believed in him and upon him we have relied" [67:29] #include<bits/stdc++.h> using namespace std; map<pair<int,int>,int>mp; int main() { int n; cin >> n; vector<pair<int,int>>v; for(int i=0; i<n; i++){ int x, y; cin >> x >> y; v.push_back({x, y}); } cout << "DA\n"; for(int i=0; i<n; i++){ for(int j=i+1; j<n; j++){ if(v[i].first == v[j].first){ cout << (i+1) << ' ' << j+1 << '\n'; } } } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...