# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
209532 | 2020-03-14T12:47:43 Z | model_code | Island (NOI18_island) | C++17 | 84 ms | 2856 KB |
#include <bits/stdc++.h> using namespace std; const int MAXN = 200004; int N, M, cnt[MAXN], fac[MAXN]; int main() { scanf("%d%d", &N, &M); for (int i = 0, u, v; i < N+M-1; ++i) { scanf("%d%d", &u, &v); cnt[u-1]++; cnt[v-1]++; } for (int i = 0; i < N+M; ++i) { for (int k = 2; k < cnt[i]; ++k) { printf("%d 1\n", k); } } }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 5 ms | 256 KB | Output is correct |
2 | Correct | 5 ms | 376 KB | Output is correct |
3 | Correct | 67 ms | 2528 KB | Output is correct |
4 | Correct | 76 ms | 2808 KB | Output is correct |
5 | Correct | 18 ms | 760 KB | Output is correct |
6 | Correct | 83 ms | 2856 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 5 ms | 256 KB | Output is correct |
2 | Correct | 5 ms | 256 KB | Output is correct |
3 | Correct | 4 ms | 256 KB | Output is correct |
4 | Correct | 5 ms | 376 KB | Output is correct |
5 | Correct | 6 ms | 376 KB | Output is correct |
6 | Correct | 5 ms | 376 KB | Output is correct |
7 | Correct | 5 ms | 376 KB | Output is correct |
8 | Correct | 5 ms | 376 KB | Output is correct |
9 | Correct | 5 ms | 256 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 6 ms | 376 KB | Output is correct |
2 | Correct | 5 ms | 256 KB | Output is correct |
3 | Correct | 7 ms | 376 KB | Output is correct |
4 | Correct | 7 ms | 376 KB | Output is correct |
5 | Correct | 6 ms | 380 KB | Output is correct |
6 | Correct | 6 ms | 376 KB | Output is correct |
7 | Correct | 6 ms | 376 KB | Output is correct |
8 | Correct | 5 ms | 256 KB | Output is correct |
9 | Correct | 6 ms | 376 KB | Output is correct |
10 | Correct | 5 ms | 376 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 5 ms | 256 KB | Output is correct |
2 | Correct | 5 ms | 376 KB | Output is correct |
3 | Correct | 67 ms | 2528 KB | Output is correct |
4 | Correct | 76 ms | 2808 KB | Output is correct |
5 | Correct | 18 ms | 760 KB | Output is correct |
6 | Correct | 83 ms | 2856 KB | Output is correct |
7 | Correct | 5 ms | 256 KB | Output is correct |
8 | Correct | 5 ms | 256 KB | Output is correct |
9 | Correct | 4 ms | 256 KB | Output is correct |
10 | Correct | 5 ms | 376 KB | Output is correct |
11 | Correct | 6 ms | 376 KB | Output is correct |
12 | Correct | 5 ms | 376 KB | Output is correct |
13 | Correct | 5 ms | 376 KB | Output is correct |
14 | Correct | 5 ms | 376 KB | Output is correct |
15 | Correct | 5 ms | 256 KB | Output is correct |
16 | Correct | 6 ms | 376 KB | Output is correct |
17 | Correct | 5 ms | 256 KB | Output is correct |
18 | Correct | 7 ms | 376 KB | Output is correct |
19 | Correct | 7 ms | 376 KB | Output is correct |
20 | Correct | 6 ms | 380 KB | Output is correct |
21 | Correct | 6 ms | 376 KB | Output is correct |
22 | Correct | 6 ms | 376 KB | Output is correct |
23 | Correct | 5 ms | 256 KB | Output is correct |
24 | Correct | 6 ms | 376 KB | Output is correct |
25 | Correct | 5 ms | 376 KB | Output is correct |
26 | Correct | 10 ms | 504 KB | Output is correct |
27 | Correct | 84 ms | 2656 KB | Output is correct |
28 | Correct | 74 ms | 2816 KB | Output is correct |
29 | Correct | 47 ms | 1016 KB | Output is correct |
30 | Correct | 71 ms | 2424 KB | Output is correct |
31 | Correct | 23 ms | 632 KB | Output is correct |
32 | Correct | 15 ms | 504 KB | Output is correct |
33 | Correct | 79 ms | 1632 KB | Output is correct |
34 | Correct | 73 ms | 1376 KB | Output is correct |
35 | Correct | 82 ms | 2144 KB | Output is correct |
36 | Correct | 75 ms | 1656 KB | Output is correct |
37 | Correct | 5 ms | 256 KB | Output is correct |