답안 #737647

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
737647 2023-05-07T13:10:48 Z Abrar_Al_Samit 벽 칠하기 (APIO20_paint) C++17
51 / 100
276 ms 96164 KB
#include "paint.h"
#include <bits/stdc++.h>
using namespace std;



const int nax = 1e5;
const int snax = 800;


vector<int> col_to_wall[nax], cand[nax];
vector<bitset<snax>>is(nax);
bool good[nax];
bool on[nax];

int minimumInstructions(
    int N, int M, int K, vector<int> C,
    vector<int> A, vector<vector<int>> B) {

    
    for(int i=0; i<N; ++i) {
        col_to_wall[C[i]].push_back(i);
    }

    for(int i=0; i<M; ++i) {
        for(int j=0; j<A[i]; ++j) {
            for(int x : col_to_wall[B[i][j]]) {
                cand[x].push_back(i);
                is[x][i] = 1;
            }
        }
    }

    int prev_succ = -1;
    for(int i=0; i<=N-M; ++i) {
        int cur_succ = -1;
        for(int j : cand[i]) {

            int pre_tag = (j-1+M)%M;
            bool yasss = true;


            if(pre_tag==prev_succ) {
                if(is[i+M-1][pre_tag]) {
                    cur_succ = j;
                    break;
                } else {
                    continue;
                }
            } else if(on[pre_tag]) {
                continue;
            }

            for(int l=1, cr=j+1; l<M; ++l, ++cr) {
                if(cr==M) cr = 0;
                yasss &= is[i+l][cr];
                
                if(!yasss) break;
            }
            if(yasss) {
                cur_succ = j;
                break;
            }
        }
        if(i) {
            for(int x : cand[i-1]) {
                if(x==prev_succ) break;
                on[x] = 0;
            }
        }
        for(int x : cand[i]) {
            if(x==cur_succ) break;
            on[x] = 1;
        }

        prev_succ = cur_succ;
        if(cur_succ!=-1) {
            good[i] = 1;
        }
    }


    if(!good[0]) return -1;
    int last = 0, pending = -1;

    int ans = 1;
    for(int i=1; i<N; ++i) {
        if(good[i]) {
            pending = i;
        }
        if(last+M==i) {
            if(pending==-1) return -1;
            last = pending;
            pending = -1;
            ++ans;
        }
    }
    return ans;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 7 ms 15188 KB Output is correct
2 Correct 7 ms 15188 KB Output is correct
3 Correct 7 ms 15156 KB Output is correct
4 Correct 7 ms 15104 KB Output is correct
5 Correct 8 ms 15188 KB Output is correct
6 Correct 7 ms 15188 KB Output is correct
7 Correct 9 ms 15108 KB Output is correct
8 Correct 8 ms 15188 KB Output is correct
9 Correct 8 ms 15188 KB Output is correct
10 Correct 7 ms 15188 KB Output is correct
11 Correct 7 ms 15168 KB Output is correct
12 Correct 8 ms 15188 KB Output is correct
13 Correct 8 ms 15188 KB Output is correct
14 Correct 7 ms 15240 KB Output is correct
15 Correct 8 ms 15200 KB Output is correct
16 Correct 8 ms 15204 KB Output is correct
17 Correct 8 ms 15188 KB Output is correct
18 Correct 8 ms 15188 KB Output is correct
19 Correct 8 ms 15200 KB Output is correct
20 Correct 7 ms 15204 KB Output is correct
21 Correct 7 ms 15240 KB Output is correct
22 Correct 18 ms 16164 KB Output is correct
23 Correct 17 ms 16216 KB Output is correct
24 Correct 16 ms 16224 KB Output is correct
25 Correct 11 ms 16084 KB Output is correct
26 Correct 11 ms 16084 KB Output is correct
27 Correct 11 ms 16084 KB Output is correct
28 Correct 11 ms 16084 KB Output is correct
29 Correct 11 ms 16084 KB Output is correct
30 Correct 11 ms 16084 KB Output is correct
31 Correct 17 ms 17044 KB Output is correct
32 Correct 17 ms 17108 KB Output is correct
33 Correct 17 ms 17108 KB Output is correct
34 Correct 17 ms 17108 KB Output is correct
35 Correct 19 ms 17012 KB Output is correct
36 Correct 16 ms 17044 KB Output is correct
37 Correct 25 ms 17644 KB Output is correct
38 Correct 24 ms 17616 KB Output is correct
39 Correct 26 ms 17628 KB Output is correct
40 Correct 20 ms 19300 KB Output is correct
41 Correct 17 ms 17744 KB Output is correct
42 Correct 25 ms 19664 KB Output is correct
43 Correct 24 ms 18368 KB Output is correct
44 Correct 21 ms 17876 KB Output is correct
45 Correct 31 ms 19808 KB Output is correct
46 Correct 50 ms 27256 KB Output is correct
47 Correct 34 ms 22164 KB Output is correct
48 Correct 39 ms 24760 KB Output is correct
49 Correct 54 ms 23860 KB Output is correct
50 Correct 51 ms 23944 KB Output is correct
51 Correct 49 ms 22112 KB Output is correct
52 Correct 21 ms 19788 KB Output is correct
53 Correct 24 ms 19788 KB Output is correct
54 Correct 24 ms 19744 KB Output is correct
55 Correct 30 ms 19736 KB Output is correct
56 Correct 30 ms 19796 KB Output is correct
57 Correct 29 ms 19796 KB Output is correct
58 Correct 54 ms 28464 KB Output is correct
59 Runtime error 71 ms 56652 KB Execution killed with signal 11
60 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 7 ms 15188 KB Output is correct
2 Correct 7 ms 15188 KB Output is correct
3 Correct 7 ms 15156 KB Output is correct
4 Correct 7 ms 15104 KB Output is correct
5 Correct 8 ms 15188 KB Output is correct
6 Correct 7 ms 15188 KB Output is correct
7 Correct 9 ms 15108 KB Output is correct
8 Correct 8 ms 15188 KB Output is correct
9 Correct 8 ms 15188 KB Output is correct
10 Correct 7 ms 15188 KB Output is correct
11 Correct 7 ms 15168 KB Output is correct
12 Correct 8 ms 15188 KB Output is correct
13 Correct 8 ms 15188 KB Output is correct
14 Correct 7 ms 15240 KB Output is correct
15 Correct 8 ms 15200 KB Output is correct
16 Correct 8 ms 15204 KB Output is correct
17 Correct 8 ms 15188 KB Output is correct
18 Correct 8 ms 15188 KB Output is correct
19 Correct 8 ms 15200 KB Output is correct
20 Correct 7 ms 15204 KB Output is correct
21 Correct 7 ms 15240 KB Output is correct
22 Correct 8 ms 15188 KB Output is correct
23 Correct 7 ms 15196 KB Output is correct
24 Correct 8 ms 15188 KB Output is correct
25 Correct 7 ms 15092 KB Output is correct
26 Correct 8 ms 15192 KB Output is correct
27 Correct 7 ms 15192 KB Output is correct
28 Correct 8 ms 15188 KB Output is correct
29 Correct 10 ms 15188 KB Output is correct
30 Correct 8 ms 15188 KB Output is correct
31 Correct 7 ms 15188 KB Output is correct
32 Correct 7 ms 15196 KB Output is correct
33 Correct 7 ms 15180 KB Output is correct
34 Correct 10 ms 15188 KB Output is correct
35 Correct 7 ms 15188 KB Output is correct
36 Correct 7 ms 15188 KB Output is correct
37 Correct 7 ms 15188 KB Output is correct
38 Correct 9 ms 15188 KB Output is correct
39 Correct 8 ms 15188 KB Output is correct
40 Correct 7 ms 15188 KB Output is correct
41 Correct 8 ms 15128 KB Output is correct
42 Correct 8 ms 15164 KB Output is correct
43 Correct 7 ms 15188 KB Output is correct
44 Correct 7 ms 15188 KB Output is correct
45 Correct 8 ms 15236 KB Output is correct
46 Correct 8 ms 15188 KB Output is correct
47 Correct 8 ms 15176 KB Output is correct
48 Correct 8 ms 15188 KB Output is correct
49 Correct 9 ms 15244 KB Output is correct
50 Correct 8 ms 15188 KB Output is correct
51 Correct 9 ms 15196 KB Output is correct
52 Correct 8 ms 15244 KB Output is correct
53 Correct 8 ms 15236 KB Output is correct
54 Correct 8 ms 15188 KB Output is correct
55 Correct 8 ms 15188 KB Output is correct
56 Correct 7 ms 15188 KB Output is correct
57 Correct 7 ms 15188 KB Output is correct
58 Correct 8 ms 15220 KB Output is correct
59 Correct 7 ms 15188 KB Output is correct
60 Correct 7 ms 15208 KB Output is correct
61 Correct 8 ms 15208 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 15188 KB Output is correct
2 Correct 7 ms 15196 KB Output is correct
3 Correct 7 ms 15188 KB Output is correct
4 Correct 7 ms 15188 KB Output is correct
5 Correct 7 ms 15156 KB Output is correct
6 Correct 7 ms 15104 KB Output is correct
7 Correct 8 ms 15188 KB Output is correct
8 Correct 7 ms 15188 KB Output is correct
9 Correct 9 ms 15108 KB Output is correct
10 Correct 8 ms 15188 KB Output is correct
11 Correct 8 ms 15188 KB Output is correct
12 Correct 7 ms 15188 KB Output is correct
13 Correct 7 ms 15168 KB Output is correct
14 Correct 8 ms 15188 KB Output is correct
15 Correct 8 ms 15188 KB Output is correct
16 Correct 7 ms 15240 KB Output is correct
17 Correct 8 ms 15200 KB Output is correct
18 Correct 8 ms 15204 KB Output is correct
19 Correct 8 ms 15188 KB Output is correct
20 Correct 8 ms 15188 KB Output is correct
21 Correct 8 ms 15200 KB Output is correct
22 Correct 7 ms 15204 KB Output is correct
23 Correct 7 ms 15240 KB Output is correct
24 Correct 18 ms 16164 KB Output is correct
25 Correct 17 ms 16216 KB Output is correct
26 Correct 16 ms 16224 KB Output is correct
27 Correct 8 ms 15188 KB Output is correct
28 Correct 7 ms 15092 KB Output is correct
29 Correct 8 ms 15192 KB Output is correct
30 Correct 7 ms 15192 KB Output is correct
31 Correct 8 ms 15188 KB Output is correct
32 Correct 10 ms 15188 KB Output is correct
33 Correct 8 ms 15188 KB Output is correct
34 Correct 7 ms 15188 KB Output is correct
35 Correct 7 ms 15196 KB Output is correct
36 Correct 7 ms 15180 KB Output is correct
37 Correct 10 ms 15188 KB Output is correct
38 Correct 7 ms 15188 KB Output is correct
39 Correct 7 ms 15188 KB Output is correct
40 Correct 7 ms 15188 KB Output is correct
41 Correct 9 ms 15188 KB Output is correct
42 Correct 8 ms 15188 KB Output is correct
43 Correct 7 ms 15188 KB Output is correct
44 Correct 8 ms 15128 KB Output is correct
45 Correct 8 ms 15164 KB Output is correct
46 Correct 7 ms 15188 KB Output is correct
47 Correct 7 ms 15188 KB Output is correct
48 Correct 8 ms 15236 KB Output is correct
49 Correct 8 ms 15188 KB Output is correct
50 Correct 8 ms 15176 KB Output is correct
51 Correct 8 ms 15188 KB Output is correct
52 Correct 9 ms 15244 KB Output is correct
53 Correct 8 ms 15188 KB Output is correct
54 Correct 9 ms 15196 KB Output is correct
55 Correct 8 ms 15244 KB Output is correct
56 Correct 8 ms 15236 KB Output is correct
57 Correct 8 ms 15188 KB Output is correct
58 Correct 8 ms 15188 KB Output is correct
59 Correct 7 ms 15188 KB Output is correct
60 Correct 7 ms 15188 KB Output is correct
61 Correct 8 ms 15220 KB Output is correct
62 Correct 7 ms 15188 KB Output is correct
63 Correct 7 ms 15208 KB Output is correct
64 Correct 8 ms 15208 KB Output is correct
65 Correct 8 ms 15484 KB Output is correct
66 Correct 8 ms 15324 KB Output is correct
67 Correct 9 ms 15444 KB Output is correct
68 Correct 8 ms 15464 KB Output is correct
69 Correct 8 ms 15444 KB Output is correct
70 Correct 9 ms 15364 KB Output is correct
71 Correct 9 ms 15444 KB Output is correct
72 Correct 9 ms 15444 KB Output is correct
73 Correct 8 ms 15316 KB Output is correct
74 Correct 9 ms 15336 KB Output is correct
75 Correct 9 ms 15360 KB Output is correct
76 Correct 21 ms 16264 KB Output is correct
77 Correct 18 ms 16444 KB Output is correct
78 Correct 24 ms 16544 KB Output is correct
79 Correct 9 ms 15700 KB Output is correct
80 Correct 10 ms 15700 KB Output is correct
81 Correct 10 ms 15700 KB Output is correct
82 Correct 9 ms 15700 KB Output is correct
83 Correct 10 ms 15700 KB Output is correct
84 Correct 9 ms 15456 KB Output is correct
85 Correct 12 ms 15444 KB Output is correct
86 Correct 9 ms 15444 KB Output is correct
87 Correct 10 ms 15444 KB Output is correct
88 Correct 10 ms 15428 KB Output is correct
89 Correct 9 ms 15464 KB Output is correct
90 Correct 22 ms 16728 KB Output is correct
91 Correct 22 ms 16844 KB Output is correct
92 Correct 22 ms 16788 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 15188 KB Output is correct
2 Correct 7 ms 15196 KB Output is correct
3 Correct 7 ms 15188 KB Output is correct
4 Correct 7 ms 15188 KB Output is correct
5 Correct 7 ms 15156 KB Output is correct
6 Correct 7 ms 15104 KB Output is correct
7 Correct 8 ms 15188 KB Output is correct
8 Correct 7 ms 15188 KB Output is correct
9 Correct 9 ms 15108 KB Output is correct
10 Correct 8 ms 15188 KB Output is correct
11 Correct 8 ms 15188 KB Output is correct
12 Correct 7 ms 15188 KB Output is correct
13 Correct 7 ms 15168 KB Output is correct
14 Correct 8 ms 15188 KB Output is correct
15 Correct 8 ms 15188 KB Output is correct
16 Correct 7 ms 15240 KB Output is correct
17 Correct 8 ms 15200 KB Output is correct
18 Correct 8 ms 15204 KB Output is correct
19 Correct 8 ms 15188 KB Output is correct
20 Correct 8 ms 15188 KB Output is correct
21 Correct 8 ms 15200 KB Output is correct
22 Correct 7 ms 15204 KB Output is correct
23 Correct 7 ms 15240 KB Output is correct
24 Correct 18 ms 16164 KB Output is correct
25 Correct 17 ms 16216 KB Output is correct
26 Correct 16 ms 16224 KB Output is correct
27 Correct 11 ms 16084 KB Output is correct
28 Correct 11 ms 16084 KB Output is correct
29 Correct 11 ms 16084 KB Output is correct
30 Correct 11 ms 16084 KB Output is correct
31 Correct 11 ms 16084 KB Output is correct
32 Correct 11 ms 16084 KB Output is correct
33 Correct 17 ms 17044 KB Output is correct
34 Correct 17 ms 17108 KB Output is correct
35 Correct 17 ms 17108 KB Output is correct
36 Correct 17 ms 17108 KB Output is correct
37 Correct 19 ms 17012 KB Output is correct
38 Correct 16 ms 17044 KB Output is correct
39 Correct 25 ms 17644 KB Output is correct
40 Correct 24 ms 17616 KB Output is correct
41 Correct 26 ms 17628 KB Output is correct
42 Correct 8 ms 15188 KB Output is correct
43 Correct 7 ms 15092 KB Output is correct
44 Correct 8 ms 15192 KB Output is correct
45 Correct 7 ms 15192 KB Output is correct
46 Correct 8 ms 15188 KB Output is correct
47 Correct 10 ms 15188 KB Output is correct
48 Correct 8 ms 15188 KB Output is correct
49 Correct 7 ms 15188 KB Output is correct
50 Correct 7 ms 15196 KB Output is correct
51 Correct 7 ms 15180 KB Output is correct
52 Correct 10 ms 15188 KB Output is correct
53 Correct 7 ms 15188 KB Output is correct
54 Correct 7 ms 15188 KB Output is correct
55 Correct 7 ms 15188 KB Output is correct
56 Correct 9 ms 15188 KB Output is correct
57 Correct 8 ms 15188 KB Output is correct
58 Correct 7 ms 15188 KB Output is correct
59 Correct 8 ms 15128 KB Output is correct
60 Correct 8 ms 15164 KB Output is correct
61 Correct 7 ms 15188 KB Output is correct
62 Correct 7 ms 15188 KB Output is correct
63 Correct 8 ms 15236 KB Output is correct
64 Correct 8 ms 15188 KB Output is correct
65 Correct 8 ms 15176 KB Output is correct
66 Correct 8 ms 15188 KB Output is correct
67 Correct 9 ms 15244 KB Output is correct
68 Correct 8 ms 15188 KB Output is correct
69 Correct 9 ms 15196 KB Output is correct
70 Correct 8 ms 15244 KB Output is correct
71 Correct 8 ms 15236 KB Output is correct
72 Correct 8 ms 15188 KB Output is correct
73 Correct 8 ms 15188 KB Output is correct
74 Correct 7 ms 15188 KB Output is correct
75 Correct 7 ms 15188 KB Output is correct
76 Correct 8 ms 15220 KB Output is correct
77 Correct 7 ms 15188 KB Output is correct
78 Correct 7 ms 15208 KB Output is correct
79 Correct 8 ms 15208 KB Output is correct
80 Correct 8 ms 15484 KB Output is correct
81 Correct 8 ms 15324 KB Output is correct
82 Correct 9 ms 15444 KB Output is correct
83 Correct 8 ms 15464 KB Output is correct
84 Correct 8 ms 15444 KB Output is correct
85 Correct 9 ms 15364 KB Output is correct
86 Correct 9 ms 15444 KB Output is correct
87 Correct 9 ms 15444 KB Output is correct
88 Correct 8 ms 15316 KB Output is correct
89 Correct 9 ms 15336 KB Output is correct
90 Correct 9 ms 15360 KB Output is correct
91 Correct 21 ms 16264 KB Output is correct
92 Correct 18 ms 16444 KB Output is correct
93 Correct 24 ms 16544 KB Output is correct
94 Correct 9 ms 15700 KB Output is correct
95 Correct 10 ms 15700 KB Output is correct
96 Correct 10 ms 15700 KB Output is correct
97 Correct 9 ms 15700 KB Output is correct
98 Correct 10 ms 15700 KB Output is correct
99 Correct 9 ms 15456 KB Output is correct
100 Correct 12 ms 15444 KB Output is correct
101 Correct 9 ms 15444 KB Output is correct
102 Correct 10 ms 15444 KB Output is correct
103 Correct 10 ms 15428 KB Output is correct
104 Correct 9 ms 15464 KB Output is correct
105 Correct 22 ms 16728 KB Output is correct
106 Correct 22 ms 16844 KB Output is correct
107 Correct 22 ms 16788 KB Output is correct
108 Correct 11 ms 16084 KB Output is correct
109 Correct 154 ms 73904 KB Output is correct
110 Correct 155 ms 40328 KB Output is correct
111 Correct 127 ms 38740 KB Output is correct
112 Correct 153 ms 46596 KB Output is correct
113 Correct 94 ms 30760 KB Output is correct
114 Correct 20 ms 16980 KB Output is correct
115 Correct 20 ms 16852 KB Output is correct
116 Correct 25 ms 17332 KB Output is correct
117 Correct 21 ms 16868 KB Output is correct
118 Correct 24 ms 17124 KB Output is correct
119 Correct 19 ms 16928 KB Output is correct
120 Correct 21 ms 16992 KB Output is correct
121 Correct 14 ms 16212 KB Output is correct
122 Correct 24 ms 17128 KB Output is correct
123 Correct 12 ms 16084 KB Output is correct
124 Correct 28 ms 17484 KB Output is correct
125 Correct 16 ms 16612 KB Output is correct
126 Correct 15 ms 16684 KB Output is correct
127 Correct 18 ms 16972 KB Output is correct
128 Correct 15 ms 16468 KB Output is correct
129 Correct 14 ms 16468 KB Output is correct
130 Correct 11 ms 16160 KB Output is correct
131 Correct 214 ms 96164 KB Output is correct
132 Correct 276 ms 56008 KB Output is correct
133 Correct 248 ms 56080 KB Output is correct
134 Correct 214 ms 56052 KB Output is correct
135 Correct 202 ms 52048 KB Output is correct
136 Correct 35 ms 17628 KB Output is correct
137 Correct 27 ms 17616 KB Output is correct
138 Correct 27 ms 17648 KB Output is correct
139 Correct 27 ms 17652 KB Output is correct
140 Correct 31 ms 17624 KB Output is correct
141 Correct 27 ms 17628 KB Output is correct
142 Correct 31 ms 17960 KB Output is correct
143 Correct 18 ms 16808 KB Output is correct
144 Correct 32 ms 18004 KB Output is correct
145 Correct 17 ms 16836 KB Output is correct
146 Correct 30 ms 17732 KB Output is correct
147 Correct 17 ms 16596 KB Output is correct
148 Correct 18 ms 16916 KB Output is correct
149 Correct 19 ms 16852 KB Output is correct
150 Correct 20 ms 16876 KB Output is correct
151 Correct 18 ms 16824 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 15188 KB Output is correct
2 Correct 7 ms 15196 KB Output is correct
3 Correct 7 ms 15188 KB Output is correct
4 Correct 7 ms 15188 KB Output is correct
5 Correct 7 ms 15156 KB Output is correct
6 Correct 7 ms 15104 KB Output is correct
7 Correct 8 ms 15188 KB Output is correct
8 Correct 7 ms 15188 KB Output is correct
9 Correct 9 ms 15108 KB Output is correct
10 Correct 8 ms 15188 KB Output is correct
11 Correct 8 ms 15188 KB Output is correct
12 Correct 7 ms 15188 KB Output is correct
13 Correct 7 ms 15168 KB Output is correct
14 Correct 8 ms 15188 KB Output is correct
15 Correct 8 ms 15188 KB Output is correct
16 Correct 7 ms 15240 KB Output is correct
17 Correct 8 ms 15200 KB Output is correct
18 Correct 8 ms 15204 KB Output is correct
19 Correct 8 ms 15188 KB Output is correct
20 Correct 8 ms 15188 KB Output is correct
21 Correct 8 ms 15200 KB Output is correct
22 Correct 7 ms 15204 KB Output is correct
23 Correct 7 ms 15240 KB Output is correct
24 Correct 18 ms 16164 KB Output is correct
25 Correct 17 ms 16216 KB Output is correct
26 Correct 16 ms 16224 KB Output is correct
27 Correct 11 ms 16084 KB Output is correct
28 Correct 11 ms 16084 KB Output is correct
29 Correct 11 ms 16084 KB Output is correct
30 Correct 11 ms 16084 KB Output is correct
31 Correct 11 ms 16084 KB Output is correct
32 Correct 11 ms 16084 KB Output is correct
33 Correct 17 ms 17044 KB Output is correct
34 Correct 17 ms 17108 KB Output is correct
35 Correct 17 ms 17108 KB Output is correct
36 Correct 17 ms 17108 KB Output is correct
37 Correct 19 ms 17012 KB Output is correct
38 Correct 16 ms 17044 KB Output is correct
39 Correct 25 ms 17644 KB Output is correct
40 Correct 24 ms 17616 KB Output is correct
41 Correct 26 ms 17628 KB Output is correct
42 Correct 20 ms 19300 KB Output is correct
43 Correct 17 ms 17744 KB Output is correct
44 Correct 25 ms 19664 KB Output is correct
45 Correct 24 ms 18368 KB Output is correct
46 Correct 21 ms 17876 KB Output is correct
47 Correct 31 ms 19808 KB Output is correct
48 Correct 50 ms 27256 KB Output is correct
49 Correct 34 ms 22164 KB Output is correct
50 Correct 39 ms 24760 KB Output is correct
51 Correct 54 ms 23860 KB Output is correct
52 Correct 51 ms 23944 KB Output is correct
53 Correct 49 ms 22112 KB Output is correct
54 Correct 21 ms 19788 KB Output is correct
55 Correct 24 ms 19788 KB Output is correct
56 Correct 24 ms 19744 KB Output is correct
57 Correct 30 ms 19736 KB Output is correct
58 Correct 30 ms 19796 KB Output is correct
59 Correct 29 ms 19796 KB Output is correct
60 Correct 54 ms 28464 KB Output is correct
61 Runtime error 71 ms 56652 KB Execution killed with signal 11
62 Halted 0 ms 0 KB -