# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
568239 | 2022-05-25T02:53:41 Z | hibiki | 벽 칠하기 (APIO20_paint) | C++11 | 1500 ms | 14076 KB |
#include "paint.h" #include<bits/stdc++.h> using namespace std; #define pb push_back #define f first #define s second int n,m,k; int dp[100100]; deque<int> dq; vector<int> v[100100]; map<int,int> train; int minimumInstructions( int N, int M, int K, vector<int> C, vector<int> A, vector<vector<int>> B) { n = N, m = M, k = K; for(int i = 0; i < m; i++) for(int j = 0; j < A[i]; j++) v[B[i][j]].pb(i); dp[n] = 0; dq.pb(n); for(int i = n - 1; i >= 0; i--) { bool fi = false; map<int,int> temp = train; // for(auto val:temp) // printf("%d %d\n",val.f,val.s); // printf("---\n"); train.clear(); while(dq.size() && dq.back() > i + m)dq.pop_back(); if(dq.empty())return -1; for(int j = 0; j < v[C[i]].size(); j++) { int cur = v[C[i]][j]; if(temp[(cur + 1) % m]) train[cur] = temp[(cur + 1) % m] + 1; else train[cur] = 1; if(train[cur] >= m) fi = true; } if(fi) { dp[i] = dp[dq.back()] + 1; dq.push_front(i); } } if(dp[0] == 0) return -1; return dp[0]; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 2644 KB | Output is correct |
2 | Correct | 2 ms | 2644 KB | Output is correct |
3 | Correct | 2 ms | 2644 KB | Output is correct |
4 | Correct | 2 ms | 2660 KB | Output is correct |
5 | Correct | 2 ms | 2644 KB | Output is correct |
6 | Correct | 2 ms | 2660 KB | Output is correct |
7 | Correct | 2 ms | 2660 KB | Output is correct |
8 | Correct | 2 ms | 2668 KB | Output is correct |
9 | Correct | 2 ms | 2644 KB | Output is correct |
10 | Correct | 2 ms | 2644 KB | Output is correct |
11 | Correct | 2 ms | 2644 KB | Output is correct |
12 | Correct | 2 ms | 2644 KB | Output is correct |
13 | Correct | 2 ms | 2644 KB | Output is correct |
14 | Correct | 3 ms | 2644 KB | Output is correct |
15 | Correct | 2 ms | 2664 KB | Output is correct |
16 | Correct | 3 ms | 2644 KB | Output is correct |
17 | Correct | 2 ms | 2656 KB | Output is correct |
18 | Correct | 2 ms | 2644 KB | Output is correct |
19 | Correct | 2 ms | 2668 KB | Output is correct |
20 | Correct | 2 ms | 2644 KB | Output is correct |
21 | Correct | 2 ms | 2644 KB | Output is correct |
22 | Correct | 29 ms | 7164 KB | Output is correct |
23 | Correct | 18 ms | 7064 KB | Output is correct |
24 | Correct | 18 ms | 7032 KB | Output is correct |
25 | Correct | 5 ms | 2928 KB | Output is correct |
26 | Correct | 4 ms | 2904 KB | Output is correct |
27 | Correct | 3 ms | 2800 KB | Output is correct |
28 | Correct | 4 ms | 2800 KB | Output is correct |
29 | Correct | 3 ms | 2772 KB | Output is correct |
30 | Correct | 3 ms | 2772 KB | Output is correct |
31 | Correct | 10 ms | 4052 KB | Output is correct |
32 | Correct | 12 ms | 3940 KB | Output is correct |
33 | Correct | 17 ms | 3996 KB | Output is correct |
34 | Correct | 11 ms | 3996 KB | Output is correct |
35 | Correct | 16 ms | 3996 KB | Output is correct |
36 | Correct | 10 ms | 4052 KB | Output is correct |
37 | Correct | 20 ms | 7548 KB | Output is correct |
38 | Correct | 20 ms | 7532 KB | Output is correct |
39 | Correct | 20 ms | 7556 KB | Output is correct |
40 | Correct | 16 ms | 3812 KB | Output is correct |
41 | Correct | 9 ms | 3440 KB | Output is correct |
42 | Correct | 10 ms | 3568 KB | Output is correct |
43 | Correct | 8 ms | 3284 KB | Output is correct |
44 | Correct | 7 ms | 3128 KB | Output is correct |
45 | Correct | 10 ms | 3636 KB | Output is correct |
46 | Correct | 47 ms | 13096 KB | Output is correct |
47 | Correct | 28 ms | 8492 KB | Output is correct |
48 | Correct | 31 ms | 10984 KB | Output is correct |
49 | Correct | 38 ms | 11216 KB | Output is correct |
50 | Correct | 47 ms | 10928 KB | Output is correct |
51 | Correct | 32 ms | 8568 KB | Output is correct |
52 | Correct | 16 ms | 3924 KB | Output is correct |
53 | Correct | 15 ms | 4024 KB | Output is correct |
54 | Correct | 9 ms | 3540 KB | Output is correct |
55 | Correct | 9 ms | 3560 KB | Output is correct |
56 | Correct | 9 ms | 3540 KB | Output is correct |
57 | Correct | 9 ms | 3540 KB | Output is correct |
58 | Correct | 55 ms | 13984 KB | Output is correct |
59 | Correct | 59 ms | 14044 KB | Output is correct |
60 | Correct | 54 ms | 13960 KB | Output is correct |
61 | Correct | 52 ms | 14028 KB | Output is correct |
62 | Correct | 51 ms | 14076 KB | Output is correct |
63 | Correct | 58 ms | 14032 KB | Output is correct |
64 | Correct | 56 ms | 12876 KB | Output is correct |
65 | Correct | 47 ms | 12780 KB | Output is correct |
66 | Correct | 46 ms | 12888 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 2644 KB | Output is correct |
2 | Correct | 2 ms | 2644 KB | Output is correct |
3 | Correct | 2 ms | 2644 KB | Output is correct |
4 | Correct | 2 ms | 2660 KB | Output is correct |
5 | Correct | 2 ms | 2644 KB | Output is correct |
6 | Correct | 2 ms | 2660 KB | Output is correct |
7 | Correct | 2 ms | 2660 KB | Output is correct |
8 | Correct | 2 ms | 2668 KB | Output is correct |
9 | Correct | 2 ms | 2644 KB | Output is correct |
10 | Correct | 2 ms | 2644 KB | Output is correct |
11 | Correct | 2 ms | 2644 KB | Output is correct |
12 | Correct | 2 ms | 2644 KB | Output is correct |
13 | Correct | 2 ms | 2644 KB | Output is correct |
14 | Correct | 3 ms | 2644 KB | Output is correct |
15 | Correct | 2 ms | 2664 KB | Output is correct |
16 | Correct | 3 ms | 2644 KB | Output is correct |
17 | Correct | 2 ms | 2656 KB | Output is correct |
18 | Correct | 2 ms | 2644 KB | Output is correct |
19 | Correct | 2 ms | 2668 KB | Output is correct |
20 | Correct | 2 ms | 2644 KB | Output is correct |
21 | Correct | 2 ms | 2644 KB | Output is correct |
22 | Correct | 2 ms | 2644 KB | Output is correct |
23 | Correct | 2 ms | 2644 KB | Output is correct |
24 | Correct | 2 ms | 2664 KB | Output is correct |
25 | Correct | 2 ms | 2644 KB | Output is correct |
26 | Correct | 2 ms | 2660 KB | Output is correct |
27 | Correct | 2 ms | 2624 KB | Output is correct |
28 | Correct | 3 ms | 2664 KB | Output is correct |
29 | Correct | 2 ms | 2772 KB | Output is correct |
30 | Correct | 2 ms | 2660 KB | Output is correct |
31 | Correct | 2 ms | 2664 KB | Output is correct |
32 | Correct | 2 ms | 2644 KB | Output is correct |
33 | Correct | 2 ms | 2668 KB | Output is correct |
34 | Correct | 2 ms | 2664 KB | Output is correct |
35 | Correct | 2 ms | 2660 KB | Output is correct |
36 | Correct | 2 ms | 2644 KB | Output is correct |
37 | Correct | 2 ms | 2660 KB | Output is correct |
38 | Correct | 2 ms | 2644 KB | Output is correct |
39 | Correct | 3 ms | 2676 KB | Output is correct |
40 | Correct | 2 ms | 2664 KB | Output is correct |
41 | Correct | 2 ms | 2644 KB | Output is correct |
42 | Correct | 2 ms | 2644 KB | Output is correct |
43 | Correct | 2 ms | 2644 KB | Output is correct |
44 | Correct | 2 ms | 2772 KB | Output is correct |
45 | Correct | 3 ms | 2664 KB | Output is correct |
46 | Correct | 2 ms | 2660 KB | Output is correct |
47 | Correct | 2 ms | 2660 KB | Output is correct |
48 | Correct | 2 ms | 2656 KB | Output is correct |
49 | Correct | 2 ms | 2644 KB | Output is correct |
50 | Correct | 2 ms | 2664 KB | Output is correct |
51 | Correct | 2 ms | 2644 KB | Output is correct |
52 | Correct | 2 ms | 2644 KB | Output is correct |
53 | Correct | 3 ms | 2660 KB | Output is correct |
54 | Correct | 2 ms | 2644 KB | Output is correct |
55 | Correct | 2 ms | 2660 KB | Output is correct |
56 | Correct | 3 ms | 2644 KB | Output is correct |
57 | Correct | 2 ms | 2644 KB | Output is correct |
58 | Correct | 3 ms | 2668 KB | Output is correct |
59 | Correct | 3 ms | 2644 KB | Output is correct |
60 | Correct | 2 ms | 2644 KB | Output is correct |
61 | Correct | 2 ms | 2644 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 2644 KB | Output is correct |
2 | Correct | 2 ms | 2644 KB | Output is correct |
3 | Correct | 1 ms | 2644 KB | Output is correct |
4 | Correct | 2 ms | 2644 KB | Output is correct |
5 | Correct | 2 ms | 2644 KB | Output is correct |
6 | Correct | 2 ms | 2660 KB | Output is correct |
7 | Correct | 2 ms | 2644 KB | Output is correct |
8 | Correct | 2 ms | 2660 KB | Output is correct |
9 | Correct | 2 ms | 2660 KB | Output is correct |
10 | Correct | 2 ms | 2668 KB | Output is correct |
11 | Correct | 2 ms | 2644 KB | Output is correct |
12 | Correct | 2 ms | 2644 KB | Output is correct |
13 | Correct | 2 ms | 2644 KB | Output is correct |
14 | Correct | 2 ms | 2644 KB | Output is correct |
15 | Correct | 2 ms | 2644 KB | Output is correct |
16 | Correct | 3 ms | 2644 KB | Output is correct |
17 | Correct | 2 ms | 2664 KB | Output is correct |
18 | Correct | 3 ms | 2644 KB | Output is correct |
19 | Correct | 2 ms | 2656 KB | Output is correct |
20 | Correct | 2 ms | 2644 KB | Output is correct |
21 | Correct | 2 ms | 2668 KB | Output is correct |
22 | Correct | 2 ms | 2644 KB | Output is correct |
23 | Correct | 2 ms | 2644 KB | Output is correct |
24 | Correct | 29 ms | 7164 KB | Output is correct |
25 | Correct | 18 ms | 7064 KB | Output is correct |
26 | Correct | 18 ms | 7032 KB | Output is correct |
27 | Correct | 2 ms | 2664 KB | Output is correct |
28 | Correct | 2 ms | 2644 KB | Output is correct |
29 | Correct | 2 ms | 2660 KB | Output is correct |
30 | Correct | 2 ms | 2624 KB | Output is correct |
31 | Correct | 3 ms | 2664 KB | Output is correct |
32 | Correct | 2 ms | 2772 KB | Output is correct |
33 | Correct | 2 ms | 2660 KB | Output is correct |
34 | Correct | 2 ms | 2664 KB | Output is correct |
35 | Correct | 2 ms | 2644 KB | Output is correct |
36 | Correct | 2 ms | 2668 KB | Output is correct |
37 | Correct | 2 ms | 2664 KB | Output is correct |
38 | Correct | 2 ms | 2660 KB | Output is correct |
39 | Correct | 2 ms | 2644 KB | Output is correct |
40 | Correct | 2 ms | 2660 KB | Output is correct |
41 | Correct | 2 ms | 2644 KB | Output is correct |
42 | Correct | 3 ms | 2676 KB | Output is correct |
43 | Correct | 2 ms | 2664 KB | Output is correct |
44 | Correct | 2 ms | 2644 KB | Output is correct |
45 | Correct | 2 ms | 2644 KB | Output is correct |
46 | Correct | 2 ms | 2644 KB | Output is correct |
47 | Correct | 2 ms | 2772 KB | Output is correct |
48 | Correct | 3 ms | 2664 KB | Output is correct |
49 | Correct | 2 ms | 2660 KB | Output is correct |
50 | Correct | 2 ms | 2660 KB | Output is correct |
51 | Correct | 2 ms | 2656 KB | Output is correct |
52 | Correct | 2 ms | 2644 KB | Output is correct |
53 | Correct | 2 ms | 2664 KB | Output is correct |
54 | Correct | 2 ms | 2644 KB | Output is correct |
55 | Correct | 2 ms | 2644 KB | Output is correct |
56 | Correct | 3 ms | 2660 KB | Output is correct |
57 | Correct | 2 ms | 2644 KB | Output is correct |
58 | Correct | 2 ms | 2660 KB | Output is correct |
59 | Correct | 3 ms | 2644 KB | Output is correct |
60 | Correct | 2 ms | 2644 KB | Output is correct |
61 | Correct | 3 ms | 2668 KB | Output is correct |
62 | Correct | 3 ms | 2644 KB | Output is correct |
63 | Correct | 2 ms | 2644 KB | Output is correct |
64 | Correct | 2 ms | 2644 KB | Output is correct |
65 | Correct | 9 ms | 2656 KB | Output is correct |
66 | Correct | 4 ms | 2644 KB | Output is correct |
67 | Correct | 10 ms | 2700 KB | Output is correct |
68 | Correct | 6 ms | 2656 KB | Output is correct |
69 | Correct | 9 ms | 2660 KB | Output is correct |
70 | Correct | 4 ms | 2900 KB | Output is correct |
71 | Correct | 6 ms | 2900 KB | Output is correct |
72 | Correct | 6 ms | 2900 KB | Output is correct |
73 | Correct | 3 ms | 2772 KB | Output is correct |
74 | Correct | 5 ms | 2900 KB | Output is correct |
75 | Correct | 4 ms | 2772 KB | Output is correct |
76 | Correct | 21 ms | 5840 KB | Output is correct |
77 | Correct | 19 ms | 6444 KB | Output is correct |
78 | Correct | 24 ms | 6988 KB | Output is correct |
79 | Correct | 17 ms | 2712 KB | Output is correct |
80 | Correct | 17 ms | 2720 KB | Output is correct |
81 | Correct | 17 ms | 2644 KB | Output is correct |
82 | Correct | 17 ms | 2724 KB | Output is correct |
83 | Correct | 24 ms | 2656 KB | Output is correct |
84 | Correct | 6 ms | 2916 KB | Output is correct |
85 | Correct | 7 ms | 2900 KB | Output is correct |
86 | Correct | 6 ms | 2884 KB | Output is correct |
87 | Correct | 7 ms | 2900 KB | Output is correct |
88 | Correct | 5 ms | 2900 KB | Output is correct |
89 | Correct | 5 ms | 2900 KB | Output is correct |
90 | Correct | 24 ms | 7244 KB | Output is correct |
91 | Correct | 27 ms | 7236 KB | Output is correct |
92 | Correct | 26 ms | 7284 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 2644 KB | Output is correct |
2 | Correct | 2 ms | 2644 KB | Output is correct |
3 | Correct | 1 ms | 2644 KB | Output is correct |
4 | Correct | 2 ms | 2644 KB | Output is correct |
5 | Correct | 2 ms | 2644 KB | Output is correct |
6 | Correct | 2 ms | 2660 KB | Output is correct |
7 | Correct | 2 ms | 2644 KB | Output is correct |
8 | Correct | 2 ms | 2660 KB | Output is correct |
9 | Correct | 2 ms | 2660 KB | Output is correct |
10 | Correct | 2 ms | 2668 KB | Output is correct |
11 | Correct | 2 ms | 2644 KB | Output is correct |
12 | Correct | 2 ms | 2644 KB | Output is correct |
13 | Correct | 2 ms | 2644 KB | Output is correct |
14 | Correct | 2 ms | 2644 KB | Output is correct |
15 | Correct | 2 ms | 2644 KB | Output is correct |
16 | Correct | 3 ms | 2644 KB | Output is correct |
17 | Correct | 2 ms | 2664 KB | Output is correct |
18 | Correct | 3 ms | 2644 KB | Output is correct |
19 | Correct | 2 ms | 2656 KB | Output is correct |
20 | Correct | 2 ms | 2644 KB | Output is correct |
21 | Correct | 2 ms | 2668 KB | Output is correct |
22 | Correct | 2 ms | 2644 KB | Output is correct |
23 | Correct | 2 ms | 2644 KB | Output is correct |
24 | Correct | 29 ms | 7164 KB | Output is correct |
25 | Correct | 18 ms | 7064 KB | Output is correct |
26 | Correct | 18 ms | 7032 KB | Output is correct |
27 | Correct | 5 ms | 2928 KB | Output is correct |
28 | Correct | 4 ms | 2904 KB | Output is correct |
29 | Correct | 3 ms | 2800 KB | Output is correct |
30 | Correct | 4 ms | 2800 KB | Output is correct |
31 | Correct | 3 ms | 2772 KB | Output is correct |
32 | Correct | 3 ms | 2772 KB | Output is correct |
33 | Correct | 10 ms | 4052 KB | Output is correct |
34 | Correct | 12 ms | 3940 KB | Output is correct |
35 | Correct | 17 ms | 3996 KB | Output is correct |
36 | Correct | 11 ms | 3996 KB | Output is correct |
37 | Correct | 16 ms | 3996 KB | Output is correct |
38 | Correct | 10 ms | 4052 KB | Output is correct |
39 | Correct | 20 ms | 7548 KB | Output is correct |
40 | Correct | 20 ms | 7532 KB | Output is correct |
41 | Correct | 20 ms | 7556 KB | Output is correct |
42 | Correct | 2 ms | 2664 KB | Output is correct |
43 | Correct | 2 ms | 2644 KB | Output is correct |
44 | Correct | 2 ms | 2660 KB | Output is correct |
45 | Correct | 2 ms | 2624 KB | Output is correct |
46 | Correct | 3 ms | 2664 KB | Output is correct |
47 | Correct | 2 ms | 2772 KB | Output is correct |
48 | Correct | 2 ms | 2660 KB | Output is correct |
49 | Correct | 2 ms | 2664 KB | Output is correct |
50 | Correct | 2 ms | 2644 KB | Output is correct |
51 | Correct | 2 ms | 2668 KB | Output is correct |
52 | Correct | 2 ms | 2664 KB | Output is correct |
53 | Correct | 2 ms | 2660 KB | Output is correct |
54 | Correct | 2 ms | 2644 KB | Output is correct |
55 | Correct | 2 ms | 2660 KB | Output is correct |
56 | Correct | 2 ms | 2644 KB | Output is correct |
57 | Correct | 3 ms | 2676 KB | Output is correct |
58 | Correct | 2 ms | 2664 KB | Output is correct |
59 | Correct | 2 ms | 2644 KB | Output is correct |
60 | Correct | 2 ms | 2644 KB | Output is correct |
61 | Correct | 2 ms | 2644 KB | Output is correct |
62 | Correct | 2 ms | 2772 KB | Output is correct |
63 | Correct | 3 ms | 2664 KB | Output is correct |
64 | Correct | 2 ms | 2660 KB | Output is correct |
65 | Correct | 2 ms | 2660 KB | Output is correct |
66 | Correct | 2 ms | 2656 KB | Output is correct |
67 | Correct | 2 ms | 2644 KB | Output is correct |
68 | Correct | 2 ms | 2664 KB | Output is correct |
69 | Correct | 2 ms | 2644 KB | Output is correct |
70 | Correct | 2 ms | 2644 KB | Output is correct |
71 | Correct | 3 ms | 2660 KB | Output is correct |
72 | Correct | 2 ms | 2644 KB | Output is correct |
73 | Correct | 2 ms | 2660 KB | Output is correct |
74 | Correct | 3 ms | 2644 KB | Output is correct |
75 | Correct | 2 ms | 2644 KB | Output is correct |
76 | Correct | 3 ms | 2668 KB | Output is correct |
77 | Correct | 3 ms | 2644 KB | Output is correct |
78 | Correct | 2 ms | 2644 KB | Output is correct |
79 | Correct | 2 ms | 2644 KB | Output is correct |
80 | Correct | 9 ms | 2656 KB | Output is correct |
81 | Correct | 4 ms | 2644 KB | Output is correct |
82 | Correct | 10 ms | 2700 KB | Output is correct |
83 | Correct | 6 ms | 2656 KB | Output is correct |
84 | Correct | 9 ms | 2660 KB | Output is correct |
85 | Correct | 4 ms | 2900 KB | Output is correct |
86 | Correct | 6 ms | 2900 KB | Output is correct |
87 | Correct | 6 ms | 2900 KB | Output is correct |
88 | Correct | 3 ms | 2772 KB | Output is correct |
89 | Correct | 5 ms | 2900 KB | Output is correct |
90 | Correct | 4 ms | 2772 KB | Output is correct |
91 | Correct | 21 ms | 5840 KB | Output is correct |
92 | Correct | 19 ms | 6444 KB | Output is correct |
93 | Correct | 24 ms | 6988 KB | Output is correct |
94 | Correct | 17 ms | 2712 KB | Output is correct |
95 | Correct | 17 ms | 2720 KB | Output is correct |
96 | Correct | 17 ms | 2644 KB | Output is correct |
97 | Correct | 17 ms | 2724 KB | Output is correct |
98 | Correct | 24 ms | 2656 KB | Output is correct |
99 | Correct | 6 ms | 2916 KB | Output is correct |
100 | Correct | 7 ms | 2900 KB | Output is correct |
101 | Correct | 6 ms | 2884 KB | Output is correct |
102 | Correct | 7 ms | 2900 KB | Output is correct |
103 | Correct | 5 ms | 2900 KB | Output is correct |
104 | Correct | 5 ms | 2900 KB | Output is correct |
105 | Correct | 24 ms | 7244 KB | Output is correct |
106 | Correct | 27 ms | 7236 KB | Output is correct |
107 | Correct | 26 ms | 7284 KB | Output is correct |
108 | Correct | 7 ms | 2900 KB | Output is correct |
109 | Execution timed out | 1578 ms | 3228 KB | Time limit exceeded |
110 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 2644 KB | Output is correct |
2 | Correct | 2 ms | 2644 KB | Output is correct |
3 | Correct | 1 ms | 2644 KB | Output is correct |
4 | Correct | 2 ms | 2644 KB | Output is correct |
5 | Correct | 2 ms | 2644 KB | Output is correct |
6 | Correct | 2 ms | 2660 KB | Output is correct |
7 | Correct | 2 ms | 2644 KB | Output is correct |
8 | Correct | 2 ms | 2660 KB | Output is correct |
9 | Correct | 2 ms | 2660 KB | Output is correct |
10 | Correct | 2 ms | 2668 KB | Output is correct |
11 | Correct | 2 ms | 2644 KB | Output is correct |
12 | Correct | 2 ms | 2644 KB | Output is correct |
13 | Correct | 2 ms | 2644 KB | Output is correct |
14 | Correct | 2 ms | 2644 KB | Output is correct |
15 | Correct | 2 ms | 2644 KB | Output is correct |
16 | Correct | 3 ms | 2644 KB | Output is correct |
17 | Correct | 2 ms | 2664 KB | Output is correct |
18 | Correct | 3 ms | 2644 KB | Output is correct |
19 | Correct | 2 ms | 2656 KB | Output is correct |
20 | Correct | 2 ms | 2644 KB | Output is correct |
21 | Correct | 2 ms | 2668 KB | Output is correct |
22 | Correct | 2 ms | 2644 KB | Output is correct |
23 | Correct | 2 ms | 2644 KB | Output is correct |
24 | Correct | 29 ms | 7164 KB | Output is correct |
25 | Correct | 18 ms | 7064 KB | Output is correct |
26 | Correct | 18 ms | 7032 KB | Output is correct |
27 | Correct | 5 ms | 2928 KB | Output is correct |
28 | Correct | 4 ms | 2904 KB | Output is correct |
29 | Correct | 3 ms | 2800 KB | Output is correct |
30 | Correct | 4 ms | 2800 KB | Output is correct |
31 | Correct | 3 ms | 2772 KB | Output is correct |
32 | Correct | 3 ms | 2772 KB | Output is correct |
33 | Correct | 10 ms | 4052 KB | Output is correct |
34 | Correct | 12 ms | 3940 KB | Output is correct |
35 | Correct | 17 ms | 3996 KB | Output is correct |
36 | Correct | 11 ms | 3996 KB | Output is correct |
37 | Correct | 16 ms | 3996 KB | Output is correct |
38 | Correct | 10 ms | 4052 KB | Output is correct |
39 | Correct | 20 ms | 7548 KB | Output is correct |
40 | Correct | 20 ms | 7532 KB | Output is correct |
41 | Correct | 20 ms | 7556 KB | Output is correct |
42 | Correct | 16 ms | 3812 KB | Output is correct |
43 | Correct | 9 ms | 3440 KB | Output is correct |
44 | Correct | 10 ms | 3568 KB | Output is correct |
45 | Correct | 8 ms | 3284 KB | Output is correct |
46 | Correct | 7 ms | 3128 KB | Output is correct |
47 | Correct | 10 ms | 3636 KB | Output is correct |
48 | Correct | 47 ms | 13096 KB | Output is correct |
49 | Correct | 28 ms | 8492 KB | Output is correct |
50 | Correct | 31 ms | 10984 KB | Output is correct |
51 | Correct | 38 ms | 11216 KB | Output is correct |
52 | Correct | 47 ms | 10928 KB | Output is correct |
53 | Correct | 32 ms | 8568 KB | Output is correct |
54 | Correct | 16 ms | 3924 KB | Output is correct |
55 | Correct | 15 ms | 4024 KB | Output is correct |
56 | Correct | 9 ms | 3540 KB | Output is correct |
57 | Correct | 9 ms | 3560 KB | Output is correct |
58 | Correct | 9 ms | 3540 KB | Output is correct |
59 | Correct | 9 ms | 3540 KB | Output is correct |
60 | Correct | 55 ms | 13984 KB | Output is correct |
61 | Correct | 59 ms | 14044 KB | Output is correct |
62 | Correct | 54 ms | 13960 KB | Output is correct |
63 | Correct | 52 ms | 14028 KB | Output is correct |
64 | Correct | 51 ms | 14076 KB | Output is correct |
65 | Correct | 58 ms | 14032 KB | Output is correct |
66 | Correct | 56 ms | 12876 KB | Output is correct |
67 | Correct | 47 ms | 12780 KB | Output is correct |
68 | Correct | 46 ms | 12888 KB | Output is correct |
69 | Correct | 2 ms | 2664 KB | Output is correct |
70 | Correct | 2 ms | 2644 KB | Output is correct |
71 | Correct | 2 ms | 2660 KB | Output is correct |
72 | Correct | 2 ms | 2624 KB | Output is correct |
73 | Correct | 3 ms | 2664 KB | Output is correct |
74 | Correct | 2 ms | 2772 KB | Output is correct |
75 | Correct | 2 ms | 2660 KB | Output is correct |
76 | Correct | 2 ms | 2664 KB | Output is correct |
77 | Correct | 2 ms | 2644 KB | Output is correct |
78 | Correct | 2 ms | 2668 KB | Output is correct |
79 | Correct | 2 ms | 2664 KB | Output is correct |
80 | Correct | 2 ms | 2660 KB | Output is correct |
81 | Correct | 2 ms | 2644 KB | Output is correct |
82 | Correct | 2 ms | 2660 KB | Output is correct |
83 | Correct | 2 ms | 2644 KB | Output is correct |
84 | Correct | 3 ms | 2676 KB | Output is correct |
85 | Correct | 2 ms | 2664 KB | Output is correct |
86 | Correct | 2 ms | 2644 KB | Output is correct |
87 | Correct | 2 ms | 2644 KB | Output is correct |
88 | Correct | 2 ms | 2644 KB | Output is correct |
89 | Correct | 2 ms | 2772 KB | Output is correct |
90 | Correct | 3 ms | 2664 KB | Output is correct |
91 | Correct | 2 ms | 2660 KB | Output is correct |
92 | Correct | 2 ms | 2660 KB | Output is correct |
93 | Correct | 2 ms | 2656 KB | Output is correct |
94 | Correct | 2 ms | 2644 KB | Output is correct |
95 | Correct | 2 ms | 2664 KB | Output is correct |
96 | Correct | 2 ms | 2644 KB | Output is correct |
97 | Correct | 2 ms | 2644 KB | Output is correct |
98 | Correct | 3 ms | 2660 KB | Output is correct |
99 | Correct | 2 ms | 2644 KB | Output is correct |
100 | Correct | 2 ms | 2660 KB | Output is correct |
101 | Correct | 3 ms | 2644 KB | Output is correct |
102 | Correct | 2 ms | 2644 KB | Output is correct |
103 | Correct | 3 ms | 2668 KB | Output is correct |
104 | Correct | 3 ms | 2644 KB | Output is correct |
105 | Correct | 2 ms | 2644 KB | Output is correct |
106 | Correct | 2 ms | 2644 KB | Output is correct |
107 | Correct | 9 ms | 2656 KB | Output is correct |
108 | Correct | 4 ms | 2644 KB | Output is correct |
109 | Correct | 10 ms | 2700 KB | Output is correct |
110 | Correct | 6 ms | 2656 KB | Output is correct |
111 | Correct | 9 ms | 2660 KB | Output is correct |
112 | Correct | 4 ms | 2900 KB | Output is correct |
113 | Correct | 6 ms | 2900 KB | Output is correct |
114 | Correct | 6 ms | 2900 KB | Output is correct |
115 | Correct | 3 ms | 2772 KB | Output is correct |
116 | Correct | 5 ms | 2900 KB | Output is correct |
117 | Correct | 4 ms | 2772 KB | Output is correct |
118 | Correct | 21 ms | 5840 KB | Output is correct |
119 | Correct | 19 ms | 6444 KB | Output is correct |
120 | Correct | 24 ms | 6988 KB | Output is correct |
121 | Correct | 17 ms | 2712 KB | Output is correct |
122 | Correct | 17 ms | 2720 KB | Output is correct |
123 | Correct | 17 ms | 2644 KB | Output is correct |
124 | Correct | 17 ms | 2724 KB | Output is correct |
125 | Correct | 24 ms | 2656 KB | Output is correct |
126 | Correct | 6 ms | 2916 KB | Output is correct |
127 | Correct | 7 ms | 2900 KB | Output is correct |
128 | Correct | 6 ms | 2884 KB | Output is correct |
129 | Correct | 7 ms | 2900 KB | Output is correct |
130 | Correct | 5 ms | 2900 KB | Output is correct |
131 | Correct | 5 ms | 2900 KB | Output is correct |
132 | Correct | 24 ms | 7244 KB | Output is correct |
133 | Correct | 27 ms | 7236 KB | Output is correct |
134 | Correct | 26 ms | 7284 KB | Output is correct |
135 | Correct | 7 ms | 2900 KB | Output is correct |
136 | Execution timed out | 1578 ms | 3228 KB | Time limit exceeded |
137 | Halted | 0 ms | 0 KB | - |