# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1129275 | jackofall718 | Island (NOI18_island) | C++20 | 360 ms | 2760 KiB |
#include <iostream>
using namespace std;
int cnt[200001], N, M, u;
int main(){
cin >> N >> M;
for(int i = 0; i < 2 * (N + M - 1); i++){
cin >> u;
if(cnt[u] > 0) cout << cnt[u] << " 1" << endl;
cnt[u]++;
}
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... |