This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
// "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 time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |