# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
260401 | 2020-08-10T08:22:57 Z | 반딧불(#5056) | Airline Route Map (JOI18_airline) | C++14 | 725 ms | 39600 KB |
#include <bits/stdc++.h> #include "Alicelib.h" using namespace std; typedef long long ll; namespace AA{ vector<int> link[1020]; vector<pair<int, int> > edge; int cnt = 1; } using namespace AA; void Alice(int N, int M, int A[], int B[]){ for(int i=0; i<M; i++){ /// original graph link[A[i]].push_back(B[i]); link[B[i]].push_back(A[i]); } for(int i=0; i<N+10; i++){ /// vertex X link[N+11].push_back(i); link[i].push_back(N+11); } for(int d=0; d<10; d++){ /// vertex d0, d1, ..., d9 for(int i=0; i<N; i++){ if(i & (1<<d)) link[i].push_back(N+d), link[N+d].push_back(i); } } for(int i=0; i<10; i++){ link[N+i].push_back(N+10); link[N+10].push_back(N+i); } for(int i=0; i<9; i++){ link[N+i].push_back(N+i+1); link[N+i+1].push_back(N+i); } for(int i=0; i<N+12; i++){ for(auto &j: link[i]){ if(i < j) edge.push_back(make_pair(i, j)); } } InitG(N+12, (int)edge.size()); int cnt = 0; for(auto &x: edge){ MakeG(cnt++, x.first, x.second); } }
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 5 ms | 6912 KB | Output is correct |
2 | Correct | 5 ms | 6912 KB | Output is correct |
3 | Correct | 6 ms | 7168 KB | Output is correct |
4 | Correct | 5 ms | 6912 KB | Output is correct |
5 | Correct | 6 ms | 6912 KB | Output is correct |
6 | Correct | 5 ms | 6912 KB | Output is correct |
7 | Correct | 5 ms | 6912 KB | Output is correct |
8 | Correct | 5 ms | 7168 KB | Output is correct |
9 | Correct | 5 ms | 6912 KB | Output is correct |
10 | Correct | 5 ms | 6912 KB | Output is correct |
11 | Correct | 5 ms | 6912 KB | Output is correct |
12 | Correct | 5 ms | 6912 KB | Output is correct |
13 | Correct | 5 ms | 6912 KB | Output is correct |
14 | Correct | 5 ms | 6912 KB | Output is correct |
15 | Correct | 6 ms | 6872 KB | Output is correct |
16 | Correct | 5 ms | 6912 KB | Output is correct |
17 | Correct | 5 ms | 6912 KB | Output is correct |
18 | Correct | 5 ms | 6912 KB | Output is correct |
19 | Correct | 5 ms | 6912 KB | Output is correct |
20 | Correct | 5 ms | 6912 KB | Output is correct |
21 | Correct | 5 ms | 6912 KB | Output is correct |
22 | Correct | 5 ms | 6912 KB | Output is correct |
23 | Correct | 5 ms | 6912 KB | Output is correct |
24 | Correct | 5 ms | 6912 KB | Output is correct |
25 | Correct | 5 ms | 6912 KB | Output is correct |
26 | Correct | 5 ms | 6912 KB | Output is correct |
27 | Correct | 5 ms | 6912 KB | Output is correct |
28 | Correct | 6 ms | 6912 KB | Output is correct |
29 | Correct | 5 ms | 6912 KB | Output is correct |
30 | Correct | 5 ms | 6912 KB | Output is correct |
31 | Correct | 5 ms | 6912 KB | Output is correct |
32 | Correct | 5 ms | 6912 KB | Output is correct |
33 | Correct | 5 ms | 6912 KB | Output is correct |
34 | Correct | 5 ms | 6912 KB | Output is correct |
35 | Correct | 5 ms | 6912 KB | Output is correct |
36 | Correct | 5 ms | 6912 KB | Output is correct |
37 | Correct | 5 ms | 6912 KB | Output is correct |
38 | Correct | 5 ms | 6912 KB | Output is correct |
39 | Incorrect | 5 ms | 6912 KB | Wrong Answer [11] |
40 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 5 ms | 6912 KB | Output is correct |
2 | Correct | 5 ms | 6912 KB | Output is correct |
3 | Correct | 6 ms | 7168 KB | Output is correct |
4 | Correct | 5 ms | 6912 KB | Output is correct |
5 | Correct | 6 ms | 6912 KB | Output is correct |
6 | Correct | 5 ms | 6912 KB | Output is correct |
7 | Correct | 5 ms | 6912 KB | Output is correct |
8 | Correct | 5 ms | 7168 KB | Output is correct |
9 | Correct | 5 ms | 6912 KB | Output is correct |
10 | Correct | 5 ms | 6912 KB | Output is correct |
11 | Correct | 5 ms | 6912 KB | Output is correct |
12 | Correct | 5 ms | 6912 KB | Output is correct |
13 | Correct | 5 ms | 6912 KB | Output is correct |
14 | Correct | 5 ms | 6912 KB | Output is correct |
15 | Correct | 6 ms | 6872 KB | Output is correct |
16 | Correct | 5 ms | 6912 KB | Output is correct |
17 | Correct | 5 ms | 6912 KB | Output is correct |
18 | Correct | 5 ms | 6912 KB | Output is correct |
19 | Correct | 5 ms | 6912 KB | Output is correct |
20 | Correct | 5 ms | 6912 KB | Output is correct |
21 | Correct | 5 ms | 6912 KB | Output is correct |
22 | Correct | 5 ms | 6912 KB | Output is correct |
23 | Correct | 5 ms | 6912 KB | Output is correct |
24 | Correct | 5 ms | 6912 KB | Output is correct |
25 | Correct | 5 ms | 6912 KB | Output is correct |
26 | Correct | 5 ms | 6912 KB | Output is correct |
27 | Correct | 5 ms | 6912 KB | Output is correct |
28 | Correct | 6 ms | 6912 KB | Output is correct |
29 | Correct | 5 ms | 6912 KB | Output is correct |
30 | Correct | 5 ms | 6912 KB | Output is correct |
31 | Correct | 5 ms | 6912 KB | Output is correct |
32 | Correct | 5 ms | 6912 KB | Output is correct |
33 | Correct | 5 ms | 6912 KB | Output is correct |
34 | Correct | 5 ms | 6912 KB | Output is correct |
35 | Correct | 5 ms | 6912 KB | Output is correct |
36 | Correct | 5 ms | 6912 KB | Output is correct |
37 | Correct | 5 ms | 6912 KB | Output is correct |
38 | Correct | 5 ms | 6912 KB | Output is correct |
39 | Incorrect | 5 ms | 6912 KB | Wrong Answer [11] |
40 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 680 ms | 39392 KB | Output is correct : V - N = 12 |
2 | Correct | 514 ms | 34512 KB | Output is correct : V - N = 12 |
3 | Correct | 210 ms | 19024 KB | Output is correct : V - N = 12 |
4 | Correct | 14 ms | 7680 KB | Output is correct : V - N = 12 |
5 | Correct | 137 ms | 13984 KB | Output is correct : V - N = 12 |
6 | Correct | 473 ms | 32568 KB | Output is correct : V - N = 12 |
7 | Correct | 692 ms | 39368 KB | Output is correct : V - N = 12 |
8 | Correct | 589 ms | 36808 KB | Output is correct : V - N = 12 |
9 | Correct | 305 ms | 22160 KB | Output is correct : V - N = 12 |
10 | Correct | 45 ms | 9296 KB | Output is correct : V - N = 12 |
11 | Correct | 70 ms | 10888 KB | Output is correct : V - N = 12 |
12 | Correct | 359 ms | 25760 KB | Output is correct : V - N = 12 |
13 | Correct | 648 ms | 37888 KB | Output is correct : V - N = 12 |
14 | Correct | 655 ms | 38584 KB | Output is correct : V - N = 12 |
15 | Correct | 418 ms | 31332 KB | Output is correct : V - N = 12 |
16 | Correct | 104 ms | 12120 KB | Output is correct : V - N = 12 |
17 | Correct | 24 ms | 8440 KB | Output is correct : V - N = 12 |
18 | Correct | 264 ms | 20648 KB | Output is correct : V - N = 12 |
19 | Correct | 585 ms | 35776 KB | Output is correct : V - N = 12 |
20 | Correct | 691 ms | 39600 KB | Output is correct : V - N = 12 |
21 | Correct | 182 ms | 17768 KB | Output is correct : V - N = 12 |
22 | Correct | 148 ms | 14448 KB | Output is correct : V - N = 12 |
23 | Correct | 76 ms | 10640 KB | Output is correct : V - N = 12 |
24 | Correct | 9 ms | 7424 KB | Output is correct : V - N = 12 |
25 | Correct | 36 ms | 9176 KB | Output is correct : V - N = 12 |
26 | Correct | 125 ms | 13712 KB | Output is correct : V - N = 12 |
27 | Correct | 177 ms | 15728 KB | Output is correct : V - N = 12 |
28 | Correct | 172 ms | 15384 KB | Output is correct : V - N = 12 |
29 | Correct | 85 ms | 11296 KB | Output is correct : V - N = 12 |
30 | Correct | 15 ms | 7920 KB | Output is correct : V - N = 12 |
31 | Correct | 12 ms | 7424 KB | Output is correct : V - N = 12 |
32 | Correct | 13 ms | 7424 KB | Output is correct : V - N = 12 |
33 | Correct | 15 ms | 7424 KB | Output is correct : V - N = 12 |
34 | Correct | 13 ms | 7424 KB | Output is correct : V - N = 12 |
35 | Correct | 12 ms | 7424 KB | Output is correct : V - N = 12 |
36 | Correct | 725 ms | 39160 KB | Output is correct : V - N = 12 |
37 | Correct | 676 ms | 39144 KB | Output is correct : V - N = 12 |
38 | Correct | 694 ms | 39384 KB | Output is correct : V - N = 12 |
39 | Correct | 711 ms | 39232 KB | Output is correct : V - N = 12 |
40 | Correct | 704 ms | 39128 KB | Output is correct : V - N = 12 |
41 | Correct | 118 ms | 13776 KB | Output is correct : V - N = 12 |
42 | Correct | 104 ms | 12560 KB | Output is correct : V - N = 12 |
43 | Correct | 118 ms | 13488 KB | Output is correct : V - N = 12 |
44 | Correct | 13 ms | 7424 KB | Output is correct : V - N = 12 |
45 | Correct | 84 ms | 10720 KB | Output is correct : V - N = 12 |
46 | Correct | 248 ms | 19880 KB | Output is correct : V - N = 12 |
47 | Correct | 127 ms | 13608 KB | Output is correct : V - N = 12 |
48 | Correct | 314 ms | 22368 KB | Output is correct : V - N = 12 |
49 | Correct | 63 ms | 10416 KB | Output is correct : V - N = 12 |
50 | Correct | 23 ms | 8448 KB | Output is correct : V - N = 12 |
51 | Correct | 558 ms | 34532 KB | Output is correct : V - N = 12 |
52 | Correct | 16 ms | 7680 KB | Output is correct : V - N = 12 |
53 | Correct | 451 ms | 32312 KB | Output is correct : V - N = 12 |
54 | Correct | 609 ms | 36264 KB | Output is correct : V - N = 12 |
55 | Correct | 43 ms | 9200 KB | Output is correct : V - N = 12 |
56 | Correct | 345 ms | 24912 KB | Output is correct : V - N = 12 |
57 | Correct | 705 ms | 37912 KB | Output is correct : V - N = 12 |
58 | Correct | 104 ms | 12000 KB | Output is correct : V - N = 12 |
59 | Correct | 256 ms | 20424 KB | Output is correct : V - N = 12 |
60 | Correct | 662 ms | 38504 KB | Output is correct : V - N = 12 |
61 | Correct | 6 ms | 6912 KB | Output is correct : V - N = 12 |
62 | Correct | 6 ms | 6912 KB | Output is correct : V - N = 12 |
63 | Correct | 5 ms | 6912 KB | Output is correct : V - N = 12 |
64 | Correct | 5 ms | 6912 KB | Output is correct : V - N = 12 |
65 | Correct | 5 ms | 6912 KB | Output is correct : V - N = 12 |
66 | Correct | 7 ms | 6912 KB | Output is correct : V - N = 12 |
67 | Correct | 6 ms | 6912 KB | Output is correct : V - N = 12 |
68 | Correct | 6 ms | 6912 KB | Output is correct : V - N = 12 |
69 | Correct | 5 ms | 6912 KB | Output is correct : V - N = 12 |
70 | Correct | 5 ms | 6912 KB | Output is correct : V - N = 12 |
71 | Correct | 5 ms | 6912 KB | Output is correct : V - N = 12 |
72 | Correct | 6 ms | 6912 KB | Output is correct : V - N = 12 |
73 | Correct | 6 ms | 6912 KB | Output is correct : V - N = 12 |
74 | Correct | 6 ms | 7168 KB | Output is correct : V - N = 12 |
75 | Correct | 7 ms | 6912 KB | Output is correct : V - N = 12 |
76 | Correct | 5 ms | 6912 KB | Output is correct : V - N = 12 |
77 | Correct | 6 ms | 6912 KB | Output is correct : V - N = 12 |
78 | Correct | 6 ms | 6912 KB | Output is correct : V - N = 12 |
79 | Correct | 6 ms | 6912 KB | Output is correct : V - N = 12 |
80 | Correct | 6 ms | 6912 KB | Output is correct : V - N = 12 |
81 | Correct | 5 ms | 6912 KB | Output is correct : V - N = 12 |
82 | Correct | 5 ms | 6912 KB | Output is correct : V - N = 12 |
83 | Correct | 5 ms | 6912 KB | Output is correct : V - N = 12 |
84 | Correct | 5 ms | 6912 KB | Output is correct : V - N = 12 |
85 | Correct | 5 ms | 6912 KB | Output is correct : V - N = 12 |
86 | Correct | 6 ms | 6912 KB | Output is correct : V - N = 12 |
87 | Correct | 6 ms | 6912 KB | Output is correct : V - N = 12 |
88 | Correct | 5 ms | 6912 KB | Output is correct : V - N = 12 |
89 | Correct | 5 ms | 6912 KB | Output is correct : V - N = 12 |
90 | Incorrect | 5 ms | 6912 KB | Wrong Answer [11] |
91 | Halted | 0 ms | 0 KB | - |