답안 #737616

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
737616 2023-05-07T12:37:39 Z Abrar_Al_Samit 벽 칠하기 (APIO20_paint) C++17
40 / 100
1500 ms 428520 KB
#include "paint.h"
#include <bits/stdc++.h>
using namespace std;



const int nax = 1e5 + 3;

vector<int> col_to_wall[nax];
set<int>cand[nax];
bool good[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].insert(i);
            }
        }
    }

    set<int>prev_reject;
    int prev_succ = -1;
    for(int i=0; i<=N-M; ++i) {
        set<int>cur_reject;
        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(cand[i+M-1].count((j+M-1)%M)) {
                    cur_succ = j;
                    break;
                } else {
                    cur_reject.insert(j);
                    continue;
                }
            } else if(prev_reject.count(pre_tag)) {
                cur_reject.insert(j);
                continue;
            }

            for(int l=0; l<M; ++l) {
                yasss &= cand[i+l].count((j+l)%M);

                if(!yasss) break;
            }
            if(yasss) {
                cur_succ = j;
                break;
            } else {
                cur_reject.insert(j);
            }
        }
        prev_reject = cur_reject;
        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 4 ms 7252 KB Output is correct
2 Correct 4 ms 7352 KB Output is correct
3 Correct 4 ms 7348 KB Output is correct
4 Correct 4 ms 7360 KB Output is correct
5 Correct 4 ms 7352 KB Output is correct
6 Correct 4 ms 7348 KB Output is correct
7 Correct 3 ms 7380 KB Output is correct
8 Correct 4 ms 7380 KB Output is correct
9 Correct 4 ms 7352 KB Output is correct
10 Correct 4 ms 7352 KB Output is correct
11 Correct 4 ms 7356 KB Output is correct
12 Correct 4 ms 7380 KB Output is correct
13 Correct 4 ms 7380 KB Output is correct
14 Correct 4 ms 7352 KB Output is correct
15 Correct 4 ms 7380 KB Output is correct
16 Correct 4 ms 7360 KB Output is correct
17 Correct 4 ms 7380 KB Output is correct
18 Correct 4 ms 7380 KB Output is correct
19 Correct 4 ms 7356 KB Output is correct
20 Correct 4 ms 7380 KB Output is correct
21 Correct 4 ms 7380 KB Output is correct
22 Correct 13 ms 8644 KB Output is correct
23 Correct 16 ms 8688 KB Output is correct
24 Correct 13 ms 8664 KB Output is correct
25 Correct 7 ms 8532 KB Output is correct
26 Correct 7 ms 8492 KB Output is correct
27 Correct 9 ms 8532 KB Output is correct
28 Correct 8 ms 8608 KB Output is correct
29 Correct 8 ms 8532 KB Output is correct
30 Correct 8 ms 8532 KB Output is correct
31 Correct 12 ms 9532 KB Output is correct
32 Correct 12 ms 9556 KB Output is correct
33 Correct 12 ms 9540 KB Output is correct
34 Correct 12 ms 9620 KB Output is correct
35 Correct 13 ms 9588 KB Output is correct
36 Correct 14 ms 9556 KB Output is correct
37 Correct 22 ms 10624 KB Output is correct
38 Correct 22 ms 10684 KB Output is correct
39 Correct 21 ms 10584 KB Output is correct
40 Correct 18 ms 12876 KB Output is correct
41 Correct 13 ms 10812 KB Output is correct
42 Correct 21 ms 13396 KB Output is correct
43 Correct 17 ms 11332 KB Output is correct
44 Correct 16 ms 11028 KB Output is correct
45 Correct 25 ms 13616 KB Output is correct
46 Correct 44 ms 21588 KB Output is correct
47 Correct 30 ms 15700 KB Output is correct
48 Correct 32 ms 18168 KB Output is correct
49 Correct 48 ms 17412 KB Output is correct
50 Correct 50 ms 17596 KB Output is correct
51 Correct 45 ms 15944 KB Output is correct
52 Correct 18 ms 13516 KB Output is correct
53 Correct 18 ms 13388 KB Output is correct
54 Correct 22 ms 13496 KB Output is correct
55 Correct 25 ms 13480 KB Output is correct
56 Correct 26 ms 13500 KB Output is correct
57 Correct 28 ms 13576 KB Output is correct
58 Correct 50 ms 23092 KB Output is correct
59 Correct 51 ms 23092 KB Output is correct
60 Correct 51 ms 23116 KB Output is correct
61 Correct 49 ms 23080 KB Output is correct
62 Correct 50 ms 23116 KB Output is correct
63 Correct 50 ms 23096 KB Output is correct
64 Correct 68 ms 21132 KB Output is correct
65 Correct 68 ms 21156 KB Output is correct
66 Correct 67 ms 21036 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 4 ms 7252 KB Output is correct
2 Correct 4 ms 7352 KB Output is correct
3 Correct 4 ms 7348 KB Output is correct
4 Correct 4 ms 7360 KB Output is correct
5 Correct 4 ms 7352 KB Output is correct
6 Correct 4 ms 7348 KB Output is correct
7 Correct 3 ms 7380 KB Output is correct
8 Correct 4 ms 7380 KB Output is correct
9 Correct 4 ms 7352 KB Output is correct
10 Correct 4 ms 7352 KB Output is correct
11 Correct 4 ms 7356 KB Output is correct
12 Correct 4 ms 7380 KB Output is correct
13 Correct 4 ms 7380 KB Output is correct
14 Correct 4 ms 7352 KB Output is correct
15 Correct 4 ms 7380 KB Output is correct
16 Correct 4 ms 7360 KB Output is correct
17 Correct 4 ms 7380 KB Output is correct
18 Correct 4 ms 7380 KB Output is correct
19 Correct 4 ms 7356 KB Output is correct
20 Correct 4 ms 7380 KB Output is correct
21 Correct 4 ms 7380 KB Output is correct
22 Correct 4 ms 7344 KB Output is correct
23 Correct 4 ms 7352 KB Output is correct
24 Correct 3 ms 7252 KB Output is correct
25 Correct 4 ms 7252 KB Output is correct
26 Correct 4 ms 7356 KB Output is correct
27 Correct 4 ms 7380 KB Output is correct
28 Correct 5 ms 7764 KB Output is correct
29 Correct 4 ms 7480 KB Output is correct
30 Correct 5 ms 7508 KB Output is correct
31 Correct 4 ms 7508 KB Output is correct
32 Correct 5 ms 7460 KB Output is correct
33 Correct 4 ms 7320 KB Output is correct
34 Correct 4 ms 7352 KB Output is correct
35 Correct 4 ms 7380 KB Output is correct
36 Correct 4 ms 7380 KB Output is correct
37 Correct 4 ms 7352 KB Output is correct
38 Correct 4 ms 7352 KB Output is correct
39 Correct 5 ms 7352 KB Output is correct
40 Correct 4 ms 7344 KB Output is correct
41 Correct 4 ms 7308 KB Output is correct
42 Correct 4 ms 7356 KB Output is correct
43 Correct 4 ms 7380 KB Output is correct
44 Correct 4 ms 7356 KB Output is correct
45 Correct 5 ms 7988 KB Output is correct
46 Correct 5 ms 7764 KB Output is correct
47 Correct 5 ms 7764 KB Output is correct
48 Correct 5 ms 7636 KB Output is correct
49 Correct 5 ms 7636 KB Output is correct
50 Correct 4 ms 7380 KB Output is correct
51 Correct 4 ms 7380 KB Output is correct
52 Correct 5 ms 7380 KB Output is correct
53 Correct 4 ms 7380 KB Output is correct
54 Correct 4 ms 7356 KB Output is correct
55 Correct 4 ms 7380 KB Output is correct
56 Correct 4 ms 7380 KB Output is correct
57 Correct 4 ms 7380 KB Output is correct
58 Correct 4 ms 7356 KB Output is correct
59 Correct 4 ms 7380 KB Output is correct
60 Correct 4 ms 7380 KB Output is correct
61 Correct 4 ms 7344 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 4 ms 7344 KB Output is correct
2 Correct 4 ms 7352 KB Output is correct
3 Correct 4 ms 7252 KB Output is correct
4 Correct 4 ms 7352 KB Output is correct
5 Correct 4 ms 7348 KB Output is correct
6 Correct 4 ms 7360 KB Output is correct
7 Correct 4 ms 7352 KB Output is correct
8 Correct 4 ms 7348 KB Output is correct
9 Correct 3 ms 7380 KB Output is correct
10 Correct 4 ms 7380 KB Output is correct
11 Correct 4 ms 7352 KB Output is correct
12 Correct 4 ms 7352 KB Output is correct
13 Correct 4 ms 7356 KB Output is correct
14 Correct 4 ms 7380 KB Output is correct
15 Correct 4 ms 7380 KB Output is correct
16 Correct 4 ms 7352 KB Output is correct
17 Correct 4 ms 7380 KB Output is correct
18 Correct 4 ms 7360 KB Output is correct
19 Correct 4 ms 7380 KB Output is correct
20 Correct 4 ms 7380 KB Output is correct
21 Correct 4 ms 7356 KB Output is correct
22 Correct 4 ms 7380 KB Output is correct
23 Correct 4 ms 7380 KB Output is correct
24 Correct 13 ms 8644 KB Output is correct
25 Correct 16 ms 8688 KB Output is correct
26 Correct 13 ms 8664 KB Output is correct
27 Correct 3 ms 7252 KB Output is correct
28 Correct 4 ms 7252 KB Output is correct
29 Correct 4 ms 7356 KB Output is correct
30 Correct 4 ms 7380 KB Output is correct
31 Correct 5 ms 7764 KB Output is correct
32 Correct 4 ms 7480 KB Output is correct
33 Correct 5 ms 7508 KB Output is correct
34 Correct 4 ms 7508 KB Output is correct
35 Correct 5 ms 7460 KB Output is correct
36 Correct 4 ms 7320 KB Output is correct
37 Correct 4 ms 7352 KB Output is correct
38 Correct 4 ms 7380 KB Output is correct
39 Correct 4 ms 7380 KB Output is correct
40 Correct 4 ms 7352 KB Output is correct
41 Correct 4 ms 7352 KB Output is correct
42 Correct 5 ms 7352 KB Output is correct
43 Correct 4 ms 7344 KB Output is correct
44 Correct 4 ms 7308 KB Output is correct
45 Correct 4 ms 7356 KB Output is correct
46 Correct 4 ms 7380 KB Output is correct
47 Correct 4 ms 7356 KB Output is correct
48 Correct 5 ms 7988 KB Output is correct
49 Correct 5 ms 7764 KB Output is correct
50 Correct 5 ms 7764 KB Output is correct
51 Correct 5 ms 7636 KB Output is correct
52 Correct 5 ms 7636 KB Output is correct
53 Correct 4 ms 7380 KB Output is correct
54 Correct 4 ms 7380 KB Output is correct
55 Correct 5 ms 7380 KB Output is correct
56 Correct 4 ms 7380 KB Output is correct
57 Correct 4 ms 7356 KB Output is correct
58 Correct 4 ms 7380 KB Output is correct
59 Correct 4 ms 7380 KB Output is correct
60 Correct 4 ms 7380 KB Output is correct
61 Correct 4 ms 7356 KB Output is correct
62 Correct 4 ms 7380 KB Output is correct
63 Correct 4 ms 7380 KB Output is correct
64 Correct 4 ms 7344 KB Output is correct
65 Correct 8 ms 9556 KB Output is correct
66 Correct 6 ms 8252 KB Output is correct
67 Correct 11 ms 10168 KB Output is correct
68 Correct 7 ms 9016 KB Output is correct
69 Correct 10 ms 9784 KB Output is correct
70 Correct 6 ms 7936 KB Output is correct
71 Correct 7 ms 7992 KB Output is correct
72 Correct 7 ms 8000 KB Output is correct
73 Correct 5 ms 7636 KB Output is correct
74 Correct 6 ms 8020 KB Output is correct
75 Correct 6 ms 7764 KB Output is correct
76 Correct 14 ms 8872 KB Output is correct
77 Correct 15 ms 9048 KB Output is correct
78 Correct 18 ms 9300 KB Output is correct
79 Correct 15 ms 12084 KB Output is correct
80 Correct 15 ms 11960 KB Output is correct
81 Correct 16 ms 12028 KB Output is correct
82 Correct 16 ms 11960 KB Output is correct
83 Correct 15 ms 12084 KB Output is correct
84 Correct 7 ms 8124 KB Output is correct
85 Correct 8 ms 8148 KB Output is correct
86 Correct 10 ms 8148 KB Output is correct
87 Correct 8 ms 8148 KB Output is correct
88 Correct 7 ms 8128 KB Output is correct
89 Correct 7 ms 8200 KB Output is correct
90 Correct 19 ms 9468 KB Output is correct
91 Correct 18 ms 9528 KB Output is correct
92 Correct 19 ms 9528 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 4 ms 7344 KB Output is correct
2 Correct 4 ms 7352 KB Output is correct
3 Correct 4 ms 7252 KB Output is correct
4 Correct 4 ms 7352 KB Output is correct
5 Correct 4 ms 7348 KB Output is correct
6 Correct 4 ms 7360 KB Output is correct
7 Correct 4 ms 7352 KB Output is correct
8 Correct 4 ms 7348 KB Output is correct
9 Correct 3 ms 7380 KB Output is correct
10 Correct 4 ms 7380 KB Output is correct
11 Correct 4 ms 7352 KB Output is correct
12 Correct 4 ms 7352 KB Output is correct
13 Correct 4 ms 7356 KB Output is correct
14 Correct 4 ms 7380 KB Output is correct
15 Correct 4 ms 7380 KB Output is correct
16 Correct 4 ms 7352 KB Output is correct
17 Correct 4 ms 7380 KB Output is correct
18 Correct 4 ms 7360 KB Output is correct
19 Correct 4 ms 7380 KB Output is correct
20 Correct 4 ms 7380 KB Output is correct
21 Correct 4 ms 7356 KB Output is correct
22 Correct 4 ms 7380 KB Output is correct
23 Correct 4 ms 7380 KB Output is correct
24 Correct 13 ms 8644 KB Output is correct
25 Correct 16 ms 8688 KB Output is correct
26 Correct 13 ms 8664 KB Output is correct
27 Correct 7 ms 8532 KB Output is correct
28 Correct 7 ms 8492 KB Output is correct
29 Correct 9 ms 8532 KB Output is correct
30 Correct 8 ms 8608 KB Output is correct
31 Correct 8 ms 8532 KB Output is correct
32 Correct 8 ms 8532 KB Output is correct
33 Correct 12 ms 9532 KB Output is correct
34 Correct 12 ms 9556 KB Output is correct
35 Correct 12 ms 9540 KB Output is correct
36 Correct 12 ms 9620 KB Output is correct
37 Correct 13 ms 9588 KB Output is correct
38 Correct 14 ms 9556 KB Output is correct
39 Correct 22 ms 10624 KB Output is correct
40 Correct 22 ms 10684 KB Output is correct
41 Correct 21 ms 10584 KB Output is correct
42 Correct 3 ms 7252 KB Output is correct
43 Correct 4 ms 7252 KB Output is correct
44 Correct 4 ms 7356 KB Output is correct
45 Correct 4 ms 7380 KB Output is correct
46 Correct 5 ms 7764 KB Output is correct
47 Correct 4 ms 7480 KB Output is correct
48 Correct 5 ms 7508 KB Output is correct
49 Correct 4 ms 7508 KB Output is correct
50 Correct 5 ms 7460 KB Output is correct
51 Correct 4 ms 7320 KB Output is correct
52 Correct 4 ms 7352 KB Output is correct
53 Correct 4 ms 7380 KB Output is correct
54 Correct 4 ms 7380 KB Output is correct
55 Correct 4 ms 7352 KB Output is correct
56 Correct 4 ms 7352 KB Output is correct
57 Correct 5 ms 7352 KB Output is correct
58 Correct 4 ms 7344 KB Output is correct
59 Correct 4 ms 7308 KB Output is correct
60 Correct 4 ms 7356 KB Output is correct
61 Correct 4 ms 7380 KB Output is correct
62 Correct 4 ms 7356 KB Output is correct
63 Correct 5 ms 7988 KB Output is correct
64 Correct 5 ms 7764 KB Output is correct
65 Correct 5 ms 7764 KB Output is correct
66 Correct 5 ms 7636 KB Output is correct
67 Correct 5 ms 7636 KB Output is correct
68 Correct 4 ms 7380 KB Output is correct
69 Correct 4 ms 7380 KB Output is correct
70 Correct 5 ms 7380 KB Output is correct
71 Correct 4 ms 7380 KB Output is correct
72 Correct 4 ms 7356 KB Output is correct
73 Correct 4 ms 7380 KB Output is correct
74 Correct 4 ms 7380 KB Output is correct
75 Correct 4 ms 7380 KB Output is correct
76 Correct 4 ms 7356 KB Output is correct
77 Correct 4 ms 7380 KB Output is correct
78 Correct 4 ms 7380 KB Output is correct
79 Correct 4 ms 7344 KB Output is correct
80 Correct 8 ms 9556 KB Output is correct
81 Correct 6 ms 8252 KB Output is correct
82 Correct 11 ms 10168 KB Output is correct
83 Correct 7 ms 9016 KB Output is correct
84 Correct 10 ms 9784 KB Output is correct
85 Correct 6 ms 7936 KB Output is correct
86 Correct 7 ms 7992 KB Output is correct
87 Correct 7 ms 8000 KB Output is correct
88 Correct 5 ms 7636 KB Output is correct
89 Correct 6 ms 8020 KB Output is correct
90 Correct 6 ms 7764 KB Output is correct
91 Correct 14 ms 8872 KB Output is correct
92 Correct 15 ms 9048 KB Output is correct
93 Correct 18 ms 9300 KB Output is correct
94 Correct 15 ms 12084 KB Output is correct
95 Correct 15 ms 11960 KB Output is correct
96 Correct 16 ms 12028 KB Output is correct
97 Correct 16 ms 11960 KB Output is correct
98 Correct 15 ms 12084 KB Output is correct
99 Correct 7 ms 8124 KB Output is correct
100 Correct 8 ms 8148 KB Output is correct
101 Correct 10 ms 8148 KB Output is correct
102 Correct 8 ms 8148 KB Output is correct
103 Correct 7 ms 8128 KB Output is correct
104 Correct 7 ms 8200 KB Output is correct
105 Correct 19 ms 9468 KB Output is correct
106 Correct 18 ms 9528 KB Output is correct
107 Correct 19 ms 9528 KB Output is correct
108 Correct 8 ms 9428 KB Output is correct
109 Execution timed out 1591 ms 428520 KB Time limit exceeded
110 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 4 ms 7344 KB Output is correct
2 Correct 4 ms 7352 KB Output is correct
3 Correct 4 ms 7252 KB Output is correct
4 Correct 4 ms 7352 KB Output is correct
5 Correct 4 ms 7348 KB Output is correct
6 Correct 4 ms 7360 KB Output is correct
7 Correct 4 ms 7352 KB Output is correct
8 Correct 4 ms 7348 KB Output is correct
9 Correct 3 ms 7380 KB Output is correct
10 Correct 4 ms 7380 KB Output is correct
11 Correct 4 ms 7352 KB Output is correct
12 Correct 4 ms 7352 KB Output is correct
13 Correct 4 ms 7356 KB Output is correct
14 Correct 4 ms 7380 KB Output is correct
15 Correct 4 ms 7380 KB Output is correct
16 Correct 4 ms 7352 KB Output is correct
17 Correct 4 ms 7380 KB Output is correct
18 Correct 4 ms 7360 KB Output is correct
19 Correct 4 ms 7380 KB Output is correct
20 Correct 4 ms 7380 KB Output is correct
21 Correct 4 ms 7356 KB Output is correct
22 Correct 4 ms 7380 KB Output is correct
23 Correct 4 ms 7380 KB Output is correct
24 Correct 13 ms 8644 KB Output is correct
25 Correct 16 ms 8688 KB Output is correct
26 Correct 13 ms 8664 KB Output is correct
27 Correct 7 ms 8532 KB Output is correct
28 Correct 7 ms 8492 KB Output is correct
29 Correct 9 ms 8532 KB Output is correct
30 Correct 8 ms 8608 KB Output is correct
31 Correct 8 ms 8532 KB Output is correct
32 Correct 8 ms 8532 KB Output is correct
33 Correct 12 ms 9532 KB Output is correct
34 Correct 12 ms 9556 KB Output is correct
35 Correct 12 ms 9540 KB Output is correct
36 Correct 12 ms 9620 KB Output is correct
37 Correct 13 ms 9588 KB Output is correct
38 Correct 14 ms 9556 KB Output is correct
39 Correct 22 ms 10624 KB Output is correct
40 Correct 22 ms 10684 KB Output is correct
41 Correct 21 ms 10584 KB Output is correct
42 Correct 18 ms 12876 KB Output is correct
43 Correct 13 ms 10812 KB Output is correct
44 Correct 21 ms 13396 KB Output is correct
45 Correct 17 ms 11332 KB Output is correct
46 Correct 16 ms 11028 KB Output is correct
47 Correct 25 ms 13616 KB Output is correct
48 Correct 44 ms 21588 KB Output is correct
49 Correct 30 ms 15700 KB Output is correct
50 Correct 32 ms 18168 KB Output is correct
51 Correct 48 ms 17412 KB Output is correct
52 Correct 50 ms 17596 KB Output is correct
53 Correct 45 ms 15944 KB Output is correct
54 Correct 18 ms 13516 KB Output is correct
55 Correct 18 ms 13388 KB Output is correct
56 Correct 22 ms 13496 KB Output is correct
57 Correct 25 ms 13480 KB Output is correct
58 Correct 26 ms 13500 KB Output is correct
59 Correct 28 ms 13576 KB Output is correct
60 Correct 50 ms 23092 KB Output is correct
61 Correct 51 ms 23092 KB Output is correct
62 Correct 51 ms 23116 KB Output is correct
63 Correct 49 ms 23080 KB Output is correct
64 Correct 50 ms 23116 KB Output is correct
65 Correct 50 ms 23096 KB Output is correct
66 Correct 68 ms 21132 KB Output is correct
67 Correct 68 ms 21156 KB Output is correct
68 Correct 67 ms 21036 KB Output is correct
69 Correct 3 ms 7252 KB Output is correct
70 Correct 4 ms 7252 KB Output is correct
71 Correct 4 ms 7356 KB Output is correct
72 Correct 4 ms 7380 KB Output is correct
73 Correct 5 ms 7764 KB Output is correct
74 Correct 4 ms 7480 KB Output is correct
75 Correct 5 ms 7508 KB Output is correct
76 Correct 4 ms 7508 KB Output is correct
77 Correct 5 ms 7460 KB Output is correct
78 Correct 4 ms 7320 KB Output is correct
79 Correct 4 ms 7352 KB Output is correct
80 Correct 4 ms 7380 KB Output is correct
81 Correct 4 ms 7380 KB Output is correct
82 Correct 4 ms 7352 KB Output is correct
83 Correct 4 ms 7352 KB Output is correct
84 Correct 5 ms 7352 KB Output is correct
85 Correct 4 ms 7344 KB Output is correct
86 Correct 4 ms 7308 KB Output is correct
87 Correct 4 ms 7356 KB Output is correct
88 Correct 4 ms 7380 KB Output is correct
89 Correct 4 ms 7356 KB Output is correct
90 Correct 5 ms 7988 KB Output is correct
91 Correct 5 ms 7764 KB Output is correct
92 Correct 5 ms 7764 KB Output is correct
93 Correct 5 ms 7636 KB Output is correct
94 Correct 5 ms 7636 KB Output is correct
95 Correct 4 ms 7380 KB Output is correct
96 Correct 4 ms 7380 KB Output is correct
97 Correct 5 ms 7380 KB Output is correct
98 Correct 4 ms 7380 KB Output is correct
99 Correct 4 ms 7356 KB Output is correct
100 Correct 4 ms 7380 KB Output is correct
101 Correct 4 ms 7380 KB Output is correct
102 Correct 4 ms 7380 KB Output is correct
103 Correct 4 ms 7356 KB Output is correct
104 Correct 4 ms 7380 KB Output is correct
105 Correct 4 ms 7380 KB Output is correct
106 Correct 4 ms 7344 KB Output is correct
107 Correct 8 ms 9556 KB Output is correct
108 Correct 6 ms 8252 KB Output is correct
109 Correct 11 ms 10168 KB Output is correct
110 Correct 7 ms 9016 KB Output is correct
111 Correct 10 ms 9784 KB Output is correct
112 Correct 6 ms 7936 KB Output is correct
113 Correct 7 ms 7992 KB Output is correct
114 Correct 7 ms 8000 KB Output is correct
115 Correct 5 ms 7636 KB Output is correct
116 Correct 6 ms 8020 KB Output is correct
117 Correct 6 ms 7764 KB Output is correct
118 Correct 14 ms 8872 KB Output is correct
119 Correct 15 ms 9048 KB Output is correct
120 Correct 18 ms 9300 KB Output is correct
121 Correct 15 ms 12084 KB Output is correct
122 Correct 15 ms 11960 KB Output is correct
123 Correct 16 ms 12028 KB Output is correct
124 Correct 16 ms 11960 KB Output is correct
125 Correct 15 ms 12084 KB Output is correct
126 Correct 7 ms 8124 KB Output is correct
127 Correct 8 ms 8148 KB Output is correct
128 Correct 10 ms 8148 KB Output is correct
129 Correct 8 ms 8148 KB Output is correct
130 Correct 7 ms 8128 KB Output is correct
131 Correct 7 ms 8200 KB Output is correct
132 Correct 19 ms 9468 KB Output is correct
133 Correct 18 ms 9528 KB Output is correct
134 Correct 19 ms 9528 KB Output is correct
135 Correct 8 ms 9428 KB Output is correct
136 Execution timed out 1591 ms 428520 KB Time limit exceeded
137 Halted 0 ms 0 KB -