#include <bits/stdc++.h>
using namespace std;
vector<int> adj[100010];
int main(){
int n;
cin >> n;
for (int i = 0; i < n; i++){
int x,y;
cin >> x >> y;
adj[x].push_back(i+1);
}
cout << "DA\n";
for (int i = 0; i < 100010; i++){ if (adj[i].size()) cout << adj[i][0] << " " << adj[i][1] << "\n";}
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
6 ms |
2688 KB |
Output is correct |
2 |
Correct |
8 ms |
2688 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
6 ms |
2688 KB |
Output is correct |
2 |
Correct |
8 ms |
2688 KB |
Output is correct |
3 |
Correct |
6 ms |
2688 KB |
Output is correct |
4 |
Correct |
7 ms |
2688 KB |
Output is correct |
5 |
Incorrect |
7 ms |
2688 KB |
Integer parameter [name=b] equals to 0, violates the range [1, 20] |
6 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
6 ms |
2688 KB |
Output is correct |
2 |
Correct |
8 ms |
2688 KB |
Output is correct |
3 |
Correct |
6 ms |
2688 KB |
Output is correct |
4 |
Correct |
7 ms |
2688 KB |
Output is correct |
5 |
Incorrect |
7 ms |
2688 KB |
Integer parameter [name=b] equals to 0, violates the range [1, 20] |
6 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
6 ms |
2688 KB |
Output is correct |
2 |
Correct |
8 ms |
2688 KB |
Output is correct |
3 |
Correct |
6 ms |
2688 KB |
Output is correct |
4 |
Correct |
7 ms |
2688 KB |
Output is correct |
5 |
Incorrect |
7 ms |
2688 KB |
Integer parameter [name=b] equals to 0, violates the range [1, 20] |
6 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
6 ms |
2688 KB |
Output is correct |
2 |
Correct |
8 ms |
2688 KB |
Output is correct |
3 |
Correct |
6 ms |
2688 KB |
Output is correct |
4 |
Correct |
7 ms |
2688 KB |
Output is correct |
5 |
Incorrect |
7 ms |
2688 KB |
Integer parameter [name=b] equals to 0, violates the range [1, 20] |
6 |
Halted |
0 ms |
0 KB |
- |