답안 #737625

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
737625 2023-05-07T12:45:51 Z Abrar_Al_Samit 벽 칠하기 (APIO20_paint) C++17
40 / 100
1500 ms 428672 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];
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].insert(i);
            }
        }
    }

    vector<int>prev_reject;
    int prev_succ = -1;
    for(int i=0; i<=N-M; ++i) {
        vector<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.push_back(j);
                    continue;
                }
            } else if(on[pre_tag]) {
                cur_reject.push_back(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.push_back(j);
            }
        }
        for(int x : prev_reject) {
            on[x] = 0;
        }
        for(int x : cur_reject) {
            on[x] = 1;
        }

        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 7252 KB Output is correct
3 Correct 4 ms 7252 KB Output is correct
4 Correct 4 ms 7252 KB Output is correct
5 Correct 4 ms 7252 KB Output is correct
6 Correct 4 ms 7348 KB Output is correct
7 Correct 4 ms 7380 KB Output is correct
8 Correct 4 ms 7348 KB Output is correct
9 Correct 4 ms 7356 KB Output is correct
10 Correct 4 ms 7464 KB Output is correct
11 Correct 5 ms 7380 KB Output is correct
12 Correct 4 ms 7380 KB Output is correct
13 Correct 4 ms 7380 KB Output is correct
14 Correct 5 ms 7332 KB Output is correct
15 Correct 4 ms 7380 KB Output is correct
16 Correct 5 ms 7356 KB Output is correct
17 Correct 5 ms 7356 KB Output is correct
18 Correct 5 ms 7380 KB Output is correct
19 Correct 4 ms 7364 KB Output is correct
20 Correct 4 ms 7364 KB Output is correct
21 Correct 4 ms 7380 KB Output is correct
22 Correct 19 ms 8672 KB Output is correct
23 Correct 17 ms 8596 KB Output is correct
24 Correct 15 ms 8620 KB Output is correct
25 Correct 7 ms 8516 KB Output is correct
26 Correct 7 ms 8532 KB Output is correct
27 Correct 9 ms 8596 KB Output is correct
28 Correct 9 ms 8516 KB Output is correct
29 Correct 8 ms 8624 KB Output is correct
30 Correct 9 ms 8512 KB Output is correct
31 Correct 14 ms 9584 KB Output is correct
32 Correct 13 ms 9584 KB Output is correct
33 Correct 14 ms 9668 KB Output is correct
34 Correct 15 ms 9600 KB Output is correct
35 Correct 14 ms 9536 KB Output is correct
36 Correct 13 ms 9584 KB Output is correct
37 Correct 24 ms 10452 KB Output is correct
38 Correct 24 ms 10436 KB Output is correct
39 Correct 24 ms 10444 KB Output is correct
40 Correct 16 ms 12860 KB Output is correct
41 Correct 13 ms 10812 KB Output is correct
42 Correct 22 ms 13452 KB Output is correct
43 Correct 17 ms 11348 KB Output is correct
44 Correct 17 ms 10948 KB Output is correct
45 Correct 26 ms 13636 KB Output is correct
46 Correct 48 ms 20980 KB Output is correct
47 Correct 31 ms 15680 KB Output is correct
48 Correct 37 ms 18244 KB Output is correct
49 Correct 49 ms 17464 KB Output is correct
50 Correct 52 ms 17600 KB Output is correct
51 Correct 47 ms 15932 KB Output is correct
52 Correct 18 ms 13516 KB Output is correct
53 Correct 18 ms 13444 KB Output is correct
54 Correct 22 ms 13520 KB Output is correct
55 Correct 26 ms 13532 KB Output is correct
56 Correct 26 ms 13532 KB Output is correct
57 Correct 27 ms 13524 KB Output is correct
58 Correct 55 ms 23088 KB Output is correct
59 Correct 53 ms 23000 KB Output is correct
60 Correct 59 ms 23116 KB Output is correct
61 Correct 53 ms 23036 KB Output is correct
62 Correct 54 ms 23016 KB Output is correct
63 Correct 52 ms 23100 KB Output is correct
64 Correct 75 ms 21068 KB Output is correct
65 Correct 70 ms 21116 KB Output is correct
66 Correct 77 ms 21292 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 4 ms 7252 KB Output is correct
2 Correct 4 ms 7252 KB Output is correct
3 Correct 4 ms 7252 KB Output is correct
4 Correct 4 ms 7252 KB Output is correct
5 Correct 4 ms 7252 KB Output is correct
6 Correct 4 ms 7348 KB Output is correct
7 Correct 4 ms 7380 KB Output is correct
8 Correct 4 ms 7348 KB Output is correct
9 Correct 4 ms 7356 KB Output is correct
10 Correct 4 ms 7464 KB Output is correct
11 Correct 5 ms 7380 KB Output is correct
12 Correct 4 ms 7380 KB Output is correct
13 Correct 4 ms 7380 KB Output is correct
14 Correct 5 ms 7332 KB Output is correct
15 Correct 4 ms 7380 KB Output is correct
16 Correct 5 ms 7356 KB Output is correct
17 Correct 5 ms 7356 KB Output is correct
18 Correct 5 ms 7380 KB Output is correct
19 Correct 4 ms 7364 KB Output is correct
20 Correct 4 ms 7364 KB Output is correct
21 Correct 4 ms 7380 KB Output is correct
22 Correct 4 ms 7252 KB Output is correct
23 Correct 4 ms 7252 KB Output is correct
24 Correct 4 ms 7348 KB Output is correct
25 Correct 4 ms 7352 KB Output is correct
26 Correct 4 ms 7252 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 7508 KB Output is correct
30 Correct 4 ms 7476 KB Output is correct
31 Correct 5 ms 7484 KB Output is correct
32 Correct 5 ms 7476 KB Output is correct
33 Correct 4 ms 7380 KB Output is correct
34 Correct 4 ms 7368 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 7380 KB Output is correct
38 Correct 4 ms 7356 KB Output is correct
39 Correct 4 ms 7380 KB Output is correct
40 Correct 4 ms 7380 KB Output is correct
41 Correct 4 ms 7348 KB Output is correct
42 Correct 4 ms 7380 KB Output is correct
43 Correct 4 ms 7380 KB Output is correct
44 Correct 4 ms 7380 KB Output is correct
45 Correct 5 ms 8020 KB Output is correct
46 Correct 5 ms 7764 KB Output is correct
47 Correct 5 ms 7784 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 4 ms 7380 KB Output is correct
53 Correct 4 ms 7360 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 7360 KB Output is correct
59 Correct 4 ms 7360 KB Output is correct
60 Correct 4 ms 7364 KB Output is correct
61 Correct 4 ms 7356 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 4 ms 7252 KB Output is correct
2 Correct 4 ms 7252 KB Output is correct
3 Correct 4 ms 7252 KB Output is correct
4 Correct 4 ms 7252 KB Output is correct
5 Correct 4 ms 7252 KB Output is correct
6 Correct 4 ms 7252 KB Output is correct
7 Correct 4 ms 7252 KB Output is correct
8 Correct 4 ms 7348 KB Output is correct
9 Correct 4 ms 7380 KB Output is correct
10 Correct 4 ms 7348 KB Output is correct
11 Correct 4 ms 7356 KB Output is correct
12 Correct 4 ms 7464 KB Output is correct
13 Correct 5 ms 7380 KB Output is correct
14 Correct 4 ms 7380 KB Output is correct
15 Correct 4 ms 7380 KB Output is correct
16 Correct 5 ms 7332 KB Output is correct
17 Correct 4 ms 7380 KB Output is correct
18 Correct 5 ms 7356 KB Output is correct
19 Correct 5 ms 7356 KB Output is correct
20 Correct 5 ms 7380 KB Output is correct
21 Correct 4 ms 7364 KB Output is correct
22 Correct 4 ms 7364 KB Output is correct
23 Correct 4 ms 7380 KB Output is correct
24 Correct 19 ms 8672 KB Output is correct
25 Correct 17 ms 8596 KB Output is correct
26 Correct 15 ms 8620 KB Output is correct
27 Correct 4 ms 7348 KB Output is correct
28 Correct 4 ms 7352 KB Output is correct
29 Correct 4 ms 7252 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 7508 KB Output is correct
33 Correct 4 ms 7476 KB Output is correct
34 Correct 5 ms 7484 KB Output is correct
35 Correct 5 ms 7476 KB Output is correct
36 Correct 4 ms 7380 KB Output is correct
37 Correct 4 ms 7368 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 7380 KB Output is correct
41 Correct 4 ms 7356 KB Output is correct
42 Correct 4 ms 7380 KB Output is correct
43 Correct 4 ms 7380 KB Output is correct
44 Correct 4 ms 7348 KB Output is correct
45 Correct 4 ms 7380 KB Output is correct
46 Correct 4 ms 7380 KB Output is correct
47 Correct 4 ms 7380 KB Output is correct
48 Correct 5 ms 8020 KB Output is correct
49 Correct 5 ms 7764 KB Output is correct
50 Correct 5 ms 7784 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 4 ms 7380 KB Output is correct
56 Correct 4 ms 7360 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 7360 KB Output is correct
62 Correct 4 ms 7360 KB Output is correct
63 Correct 4 ms 7364 KB Output is correct
64 Correct 4 ms 7356 KB Output is correct
65 Correct 9 ms 9556 KB Output is correct
66 Correct 7 ms 8148 KB Output is correct
67 Correct 10 ms 10196 KB Output is correct
68 Correct 8 ms 8916 KB Output is correct
69 Correct 9 ms 9784 KB Output is correct
70 Correct 7 ms 8020 KB Output is correct
71 Correct 7 ms 8020 KB Output is correct
72 Correct 7 ms 8020 KB Output is correct
73 Correct 5 ms 7616 KB Output is correct
74 Correct 7 ms 8020 KB Output is correct
75 Correct 7 ms 7880 KB Output is correct
76 Correct 16 ms 8660 KB Output is correct
77 Correct 17 ms 8856 KB Output is correct
78 Correct 19 ms 8916 KB Output is correct
79 Correct 15 ms 11988 KB Output is correct
80 Correct 15 ms 12116 KB Output is correct
81 Correct 15 ms 11980 KB Output is correct
82 Correct 15 ms 12088 KB Output is correct
83 Correct 15 ms 11956 KB Output is correct
84 Correct 8 ms 8148 KB Output is correct
85 Correct 8 ms 8124 KB Output is correct
86 Correct 8 ms 8148 KB Output is correct
87 Correct 8 ms 8140 KB Output is correct
88 Correct 8 ms 8148 KB Output is correct
89 Correct 10 ms 8212 KB Output is correct
90 Correct 21 ms 9164 KB Output is correct
91 Correct 21 ms 9276 KB Output is correct
92 Correct 21 ms 9292 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 4 ms 7252 KB Output is correct
2 Correct 4 ms 7252 KB Output is correct
3 Correct 4 ms 7252 KB Output is correct
4 Correct 4 ms 7252 KB Output is correct
5 Correct 4 ms 7252 KB Output is correct
6 Correct 4 ms 7252 KB Output is correct
7 Correct 4 ms 7252 KB Output is correct
8 Correct 4 ms 7348 KB Output is correct
9 Correct 4 ms 7380 KB Output is correct
10 Correct 4 ms 7348 KB Output is correct
11 Correct 4 ms 7356 KB Output is correct
12 Correct 4 ms 7464 KB Output is correct
13 Correct 5 ms 7380 KB Output is correct
14 Correct 4 ms 7380 KB Output is correct
15 Correct 4 ms 7380 KB Output is correct
16 Correct 5 ms 7332 KB Output is correct
17 Correct 4 ms 7380 KB Output is correct
18 Correct 5 ms 7356 KB Output is correct
19 Correct 5 ms 7356 KB Output is correct
20 Correct 5 ms 7380 KB Output is correct
21 Correct 4 ms 7364 KB Output is correct
22 Correct 4 ms 7364 KB Output is correct
23 Correct 4 ms 7380 KB Output is correct
24 Correct 19 ms 8672 KB Output is correct
25 Correct 17 ms 8596 KB Output is correct
26 Correct 15 ms 8620 KB Output is correct
27 Correct 7 ms 8516 KB Output is correct
28 Correct 7 ms 8532 KB Output is correct
29 Correct 9 ms 8596 KB Output is correct
30 Correct 9 ms 8516 KB Output is correct
31 Correct 8 ms 8624 KB Output is correct
32 Correct 9 ms 8512 KB Output is correct
33 Correct 14 ms 9584 KB Output is correct
34 Correct 13 ms 9584 KB Output is correct
35 Correct 14 ms 9668 KB Output is correct
36 Correct 15 ms 9600 KB Output is correct
37 Correct 14 ms 9536 KB Output is correct
38 Correct 13 ms 9584 KB Output is correct
39 Correct 24 ms 10452 KB Output is correct
40 Correct 24 ms 10436 KB Output is correct
41 Correct 24 ms 10444 KB Output is correct
42 Correct 4 ms 7348 KB Output is correct
43 Correct 4 ms 7352 KB Output is correct
44 Correct 4 ms 7252 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 7508 KB Output is correct
48 Correct 4 ms 7476 KB Output is correct
49 Correct 5 ms 7484 KB Output is correct
50 Correct 5 ms 7476 KB Output is correct
51 Correct 4 ms 7380 KB Output is correct
52 Correct 4 ms 7368 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 7380 KB Output is correct
56 Correct 4 ms 7356 KB Output is correct
57 Correct 4 ms 7380 KB Output is correct
58 Correct 4 ms 7380 KB Output is correct
59 Correct 4 ms 7348 KB Output is correct
60 Correct 4 ms 7380 KB Output is correct
61 Correct 4 ms 7380 KB Output is correct
62 Correct 4 ms 7380 KB Output is correct
63 Correct 5 ms 8020 KB Output is correct
64 Correct 5 ms 7764 KB Output is correct
65 Correct 5 ms 7784 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 4 ms 7380 KB Output is correct
71 Correct 4 ms 7360 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 7360 KB Output is correct
77 Correct 4 ms 7360 KB Output is correct
78 Correct 4 ms 7364 KB Output is correct
79 Correct 4 ms 7356 KB Output is correct
80 Correct 9 ms 9556 KB Output is correct
81 Correct 7 ms 8148 KB Output is correct
82 Correct 10 ms 10196 KB Output is correct
83 Correct 8 ms 8916 KB Output is correct
84 Correct 9 ms 9784 KB Output is correct
85 Correct 7 ms 8020 KB Output is correct
86 Correct 7 ms 8020 KB Output is correct
87 Correct 7 ms 8020 KB Output is correct
88 Correct 5 ms 7616 KB Output is correct
89 Correct 7 ms 8020 KB Output is correct
90 Correct 7 ms 7880 KB Output is correct
91 Correct 16 ms 8660 KB Output is correct
92 Correct 17 ms 8856 KB Output is correct
93 Correct 19 ms 8916 KB Output is correct
94 Correct 15 ms 11988 KB Output is correct
95 Correct 15 ms 12116 KB Output is correct
96 Correct 15 ms 11980 KB Output is correct
97 Correct 15 ms 12088 KB Output is correct
98 Correct 15 ms 11956 KB Output is correct
99 Correct 8 ms 8148 KB Output is correct
100 Correct 8 ms 8124 KB Output is correct
101 Correct 8 ms 8148 KB Output is correct
102 Correct 8 ms 8140 KB Output is correct
103 Correct 8 ms 8148 KB Output is correct
104 Correct 10 ms 8212 KB Output is correct
105 Correct 21 ms 9164 KB Output is correct
106 Correct 21 ms 9276 KB Output is correct
107 Correct 21 ms 9292 KB Output is correct
108 Correct 8 ms 9428 KB Output is correct
109 Execution timed out 1595 ms 428672 KB Time limit exceeded
110 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 4 ms 7252 KB Output is correct
2 Correct 4 ms 7252 KB Output is correct
3 Correct 4 ms 7252 KB Output is correct
4 Correct 4 ms 7252 KB Output is correct
5 Correct 4 ms 7252 KB Output is correct
6 Correct 4 ms 7252 KB Output is correct
7 Correct 4 ms 7252 KB Output is correct
8 Correct 4 ms 7348 KB Output is correct
9 Correct 4 ms 7380 KB Output is correct
10 Correct 4 ms 7348 KB Output is correct
11 Correct 4 ms 7356 KB Output is correct
12 Correct 4 ms 7464 KB Output is correct
13 Correct 5 ms 7380 KB Output is correct
14 Correct 4 ms 7380 KB Output is correct
15 Correct 4 ms 7380 KB Output is correct
16 Correct 5 ms 7332 KB Output is correct
17 Correct 4 ms 7380 KB Output is correct
18 Correct 5 ms 7356 KB Output is correct
19 Correct 5 ms 7356 KB Output is correct
20 Correct 5 ms 7380 KB Output is correct
21 Correct 4 ms 7364 KB Output is correct
22 Correct 4 ms 7364 KB Output is correct
23 Correct 4 ms 7380 KB Output is correct
24 Correct 19 ms 8672 KB Output is correct
25 Correct 17 ms 8596 KB Output is correct
26 Correct 15 ms 8620 KB Output is correct
27 Correct 7 ms 8516 KB Output is correct
28 Correct 7 ms 8532 KB Output is correct
29 Correct 9 ms 8596 KB Output is correct
30 Correct 9 ms 8516 KB Output is correct
31 Correct 8 ms 8624 KB Output is correct
32 Correct 9 ms 8512 KB Output is correct
33 Correct 14 ms 9584 KB Output is correct
34 Correct 13 ms 9584 KB Output is correct
35 Correct 14 ms 9668 KB Output is correct
36 Correct 15 ms 9600 KB Output is correct
37 Correct 14 ms 9536 KB Output is correct
38 Correct 13 ms 9584 KB Output is correct
39 Correct 24 ms 10452 KB Output is correct
40 Correct 24 ms 10436 KB Output is correct
41 Correct 24 ms 10444 KB Output is correct
42 Correct 16 ms 12860 KB Output is correct
43 Correct 13 ms 10812 KB Output is correct
44 Correct 22 ms 13452 KB Output is correct
45 Correct 17 ms 11348 KB Output is correct
46 Correct 17 ms 10948 KB Output is correct
47 Correct 26 ms 13636 KB Output is correct
48 Correct 48 ms 20980 KB Output is correct
49 Correct 31 ms 15680 KB Output is correct
50 Correct 37 ms 18244 KB Output is correct
51 Correct 49 ms 17464 KB Output is correct
52 Correct 52 ms 17600 KB Output is correct
53 Correct 47 ms 15932 KB Output is correct
54 Correct 18 ms 13516 KB Output is correct
55 Correct 18 ms 13444 KB Output is correct
56 Correct 22 ms 13520 KB Output is correct
57 Correct 26 ms 13532 KB Output is correct
58 Correct 26 ms 13532 KB Output is correct
59 Correct 27 ms 13524 KB Output is correct
60 Correct 55 ms 23088 KB Output is correct
61 Correct 53 ms 23000 KB Output is correct
62 Correct 59 ms 23116 KB Output is correct
63 Correct 53 ms 23036 KB Output is correct
64 Correct 54 ms 23016 KB Output is correct
65 Correct 52 ms 23100 KB Output is correct
66 Correct 75 ms 21068 KB Output is correct
67 Correct 70 ms 21116 KB Output is correct
68 Correct 77 ms 21292 KB Output is correct
69 Correct 4 ms 7348 KB Output is correct
70 Correct 4 ms 7352 KB Output is correct
71 Correct 4 ms 7252 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 7508 KB Output is correct
75 Correct 4 ms 7476 KB Output is correct
76 Correct 5 ms 7484 KB Output is correct
77 Correct 5 ms 7476 KB Output is correct
78 Correct 4 ms 7380 KB Output is correct
79 Correct 4 ms 7368 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 7380 KB Output is correct
83 Correct 4 ms 7356 KB Output is correct
84 Correct 4 ms 7380 KB Output is correct
85 Correct 4 ms 7380 KB Output is correct
86 Correct 4 ms 7348 KB Output is correct
87 Correct 4 ms 7380 KB Output is correct
88 Correct 4 ms 7380 KB Output is correct
89 Correct 4 ms 7380 KB Output is correct
90 Correct 5 ms 8020 KB Output is correct
91 Correct 5 ms 7764 KB Output is correct
92 Correct 5 ms 7784 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 4 ms 7380 KB Output is correct
98 Correct 4 ms 7360 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 7360 KB Output is correct
104 Correct 4 ms 7360 KB Output is correct
105 Correct 4 ms 7364 KB Output is correct
106 Correct 4 ms 7356 KB Output is correct
107 Correct 9 ms 9556 KB Output is correct
108 Correct 7 ms 8148 KB Output is correct
109 Correct 10 ms 10196 KB Output is correct
110 Correct 8 ms 8916 KB Output is correct
111 Correct 9 ms 9784 KB Output is correct
112 Correct 7 ms 8020 KB Output is correct
113 Correct 7 ms 8020 KB Output is correct
114 Correct 7 ms 8020 KB Output is correct
115 Correct 5 ms 7616 KB Output is correct
116 Correct 7 ms 8020 KB Output is correct
117 Correct 7 ms 7880 KB Output is correct
118 Correct 16 ms 8660 KB Output is correct
119 Correct 17 ms 8856 KB Output is correct
120 Correct 19 ms 8916 KB Output is correct
121 Correct 15 ms 11988 KB Output is correct
122 Correct 15 ms 12116 KB Output is correct
123 Correct 15 ms 11980 KB Output is correct
124 Correct 15 ms 12088 KB Output is correct
125 Correct 15 ms 11956 KB Output is correct
126 Correct 8 ms 8148 KB Output is correct
127 Correct 8 ms 8124 KB Output is correct
128 Correct 8 ms 8148 KB Output is correct
129 Correct 8 ms 8140 KB Output is correct
130 Correct 8 ms 8148 KB Output is correct
131 Correct 10 ms 8212 KB Output is correct
132 Correct 21 ms 9164 KB Output is correct
133 Correct 21 ms 9276 KB Output is correct
134 Correct 21 ms 9292 KB Output is correct
135 Correct 8 ms 9428 KB Output is correct
136 Execution timed out 1595 ms 428672 KB Time limit exceeded
137 Halted 0 ms 0 KB -