답안 #445190

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
445190 2021-07-16T19:54:10 Z Wasif_Jamil Matching (COCI20_matching) C++14
5 / 110
1 ms 292 KB
// "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;	
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 0 ms 204 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 0 ms 204 KB Output is correct
3 Correct 0 ms 292 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Incorrect 1 ms 268 KB Unexpected end of file - int32 expected
6 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 0 ms 204 KB Output is correct
3 Correct 0 ms 292 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Incorrect 1 ms 268 KB Unexpected end of file - int32 expected
6 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 0 ms 204 KB Output is correct
3 Correct 0 ms 292 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Incorrect 1 ms 268 KB Unexpected end of file - int32 expected
6 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 0 ms 204 KB Output is correct
3 Correct 0 ms 292 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Incorrect 1 ms 268 KB Unexpected end of file - int32 expected
6 Halted 0 ms 0 KB -