답안 #810193

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
810193 2023-08-06T06:19:26 Z boyliguanhan 벽 칠하기 (APIO20_paint) C++17
63 / 100
1500 ms 27316 KB
#include "paint.h"

#include <bits/stdc++.h>
using namespace std;
map<int, int> lseg[200100];
vector<int> liked_by[200100];
int dp[200100]{}, valid_i[200100]{};
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++)
        lseg[i].clear(),dp[i]=valid_i[i]=0;
    for(int i = 0; i < K; i++) liked_by[i].clear();
    multiset<int> st;
    for(int i = 0; i < M; i++)
        for(int color: B[i])
            liked_by[color].push_back(i);
    for(int i = N; i--;) {
        for(auto j: liked_by[C[i]]) {
            lseg[i][j] = 1+lseg[i+1][(j+1)%M];
            if(lseg[i][j]>=M) valid_i[i]=1;
        }
        lseg[i+1].clear();
    }
    for(int i = 0; i < M; i++) st.insert(0);
    for(int i = N; i--;) {
        dp[i]=1e9;
        if(valid_i[i])
            dp[i] = 1+*st.begin();
        st.insert(dp[i]);
        st.erase(st.find(dp[i+M]));
    }
    return (dp[0]<1e9?dp[0]:-1);
}
# 결과 실행 시간 메모리 Grader output
1 Correct 7 ms 14292 KB Output is correct
2 Correct 7 ms 14292 KB Output is correct
3 Correct 6 ms 14292 KB Output is correct
4 Correct 6 ms 14292 KB Output is correct
5 Correct 6 ms 14292 KB Output is correct
6 Correct 7 ms 14292 KB Output is correct
7 Correct 7 ms 14292 KB Output is correct
8 Correct 6 ms 14292 KB Output is correct
9 Correct 6 ms 14292 KB Output is correct
10 Correct 6 ms 14356 KB Output is correct
11 Correct 7 ms 14308 KB Output is correct
12 Correct 6 ms 14420 KB Output is correct
13 Correct 8 ms 14456 KB Output is correct
14 Correct 9 ms 14456 KB Output is correct
15 Correct 7 ms 14348 KB Output is correct
16 Correct 7 ms 14420 KB Output is correct
17 Correct 7 ms 14420 KB Output is correct
18 Correct 9 ms 14456 KB Output is correct
19 Correct 7 ms 14420 KB Output is correct
20 Correct 7 ms 14420 KB Output is correct
21 Correct 7 ms 14420 KB Output is correct
22 Correct 19 ms 18328 KB Output is correct
23 Correct 19 ms 18272 KB Output is correct
24 Correct 19 ms 18232 KB Output is correct
25 Correct 9 ms 14676 KB Output is correct
26 Correct 9 ms 14676 KB Output is correct
27 Correct 10 ms 14716 KB Output is correct
28 Correct 10 ms 14676 KB Output is correct
29 Correct 10 ms 14676 KB Output is correct
30 Correct 10 ms 14676 KB Output is correct
31 Correct 15 ms 15740 KB Output is correct
32 Correct 14 ms 15728 KB Output is correct
33 Correct 15 ms 15700 KB Output is correct
34 Correct 14 ms 15676 KB Output is correct
35 Correct 15 ms 15708 KB Output is correct
36 Correct 14 ms 15700 KB Output is correct
37 Correct 26 ms 18876 KB Output is correct
38 Correct 27 ms 18784 KB Output is correct
39 Correct 25 ms 18820 KB Output is correct
40 Correct 18 ms 15828 KB Output is correct
41 Correct 14 ms 15188 KB Output is correct
42 Correct 21 ms 15828 KB Output is correct
43 Correct 18 ms 15316 KB Output is correct
44 Correct 17 ms 15316 KB Output is correct
45 Correct 24 ms 15968 KB Output is correct
46 Correct 59 ms 26424 KB Output is correct
47 Correct 36 ms 20948 KB Output is correct
48 Correct 54 ms 24660 KB Output is correct
49 Correct 51 ms 24404 KB Output is correct
50 Correct 56 ms 23860 KB Output is correct
51 Correct 44 ms 20980 KB Output is correct
52 Correct 19 ms 15864 KB Output is correct
53 Correct 19 ms 15956 KB Output is correct
54 Correct 23 ms 15952 KB Output is correct
55 Correct 22 ms 15956 KB Output is correct
56 Correct 22 ms 15940 KB Output is correct
57 Correct 23 ms 15956 KB Output is correct
58 Correct 65 ms 27316 KB Output is correct
59 Correct 65 ms 27212 KB Output is correct
60 Correct 66 ms 27212 KB Output is correct
61 Correct 66 ms 27292 KB Output is correct
62 Correct 74 ms 27248 KB Output is correct
63 Correct 66 ms 27212 KB Output is correct
64 Correct 66 ms 26216 KB Output is correct
65 Correct 86 ms 26304 KB Output is correct
66 Correct 66 ms 26188 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 7 ms 14292 KB Output is correct
2 Correct 7 ms 14292 KB Output is correct
3 Correct 6 ms 14292 KB Output is correct
4 Correct 6 ms 14292 KB Output is correct
5 Correct 6 ms 14292 KB Output is correct
6 Correct 7 ms 14292 KB Output is correct
7 Correct 7 ms 14292 KB Output is correct
8 Correct 6 ms 14292 KB Output is correct
9 Correct 6 ms 14292 KB Output is correct
10 Correct 6 ms 14356 KB Output is correct
11 Correct 7 ms 14308 KB Output is correct
12 Correct 6 ms 14420 KB Output is correct
13 Correct 8 ms 14456 KB Output is correct
14 Correct 9 ms 14456 KB Output is correct
15 Correct 7 ms 14348 KB Output is correct
16 Correct 7 ms 14420 KB Output is correct
17 Correct 7 ms 14420 KB Output is correct
18 Correct 9 ms 14456 KB Output is correct
19 Correct 7 ms 14420 KB Output is correct
20 Correct 7 ms 14420 KB Output is correct
21 Correct 7 ms 14420 KB Output is correct
22 Correct 7 ms 14292 KB Output is correct
23 Correct 7 ms 14376 KB Output is correct
24 Correct 6 ms 14400 KB Output is correct
25 Correct 6 ms 14292 KB Output is correct
26 Correct 6 ms 14292 KB Output is correct
27 Correct 6 ms 14420 KB Output is correct
28 Correct 7 ms 14320 KB Output is correct
29 Correct 7 ms 14420 KB Output is correct
30 Correct 7 ms 14408 KB Output is correct
31 Correct 7 ms 14420 KB Output is correct
32 Correct 7 ms 14420 KB Output is correct
33 Correct 6 ms 14420 KB Output is correct
34 Correct 7 ms 14420 KB Output is correct
35 Correct 9 ms 14440 KB Output is correct
36 Correct 7 ms 14400 KB Output is correct
37 Correct 7 ms 14420 KB Output is correct
38 Correct 6 ms 14452 KB Output is correct
39 Correct 7 ms 14420 KB Output is correct
40 Correct 7 ms 14464 KB Output is correct
41 Correct 6 ms 14420 KB Output is correct
42 Correct 6 ms 14420 KB Output is correct
43 Correct 7 ms 14420 KB Output is correct
44 Correct 7 ms 14292 KB Output is correct
45 Correct 7 ms 14428 KB Output is correct
46 Correct 8 ms 14420 KB Output is correct
47 Correct 7 ms 14420 KB Output is correct
48 Correct 7 ms 14420 KB Output is correct
49 Correct 7 ms 14424 KB Output is correct
50 Correct 7 ms 14420 KB Output is correct
51 Correct 7 ms 14352 KB Output is correct
52 Correct 6 ms 14420 KB Output is correct
53 Correct 7 ms 14420 KB Output is correct
54 Correct 7 ms 14420 KB Output is correct
55 Correct 8 ms 14464 KB Output is correct
56 Correct 7 ms 14364 KB Output is correct
57 Correct 7 ms 14420 KB Output is correct
58 Correct 7 ms 14420 KB Output is correct
59 Correct 7 ms 14420 KB Output is correct
60 Correct 8 ms 14468 KB Output is correct
61 Correct 7 ms 14420 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 7 ms 14292 KB Output is correct
2 Correct 7 ms 14376 KB Output is correct
3 Correct 7 ms 14292 KB Output is correct
4 Correct 7 ms 14292 KB Output is correct
5 Correct 6 ms 14292 KB Output is correct
6 Correct 6 ms 14292 KB Output is correct
7 Correct 6 ms 14292 KB Output is correct
8 Correct 7 ms 14292 KB Output is correct
9 Correct 7 ms 14292 KB Output is correct
10 Correct 6 ms 14292 KB Output is correct
11 Correct 6 ms 14292 KB Output is correct
12 Correct 6 ms 14356 KB Output is correct
13 Correct 7 ms 14308 KB Output is correct
14 Correct 6 ms 14420 KB Output is correct
15 Correct 8 ms 14456 KB Output is correct
16 Correct 9 ms 14456 KB Output is correct
17 Correct 7 ms 14348 KB Output is correct
18 Correct 7 ms 14420 KB Output is correct
19 Correct 7 ms 14420 KB Output is correct
20 Correct 9 ms 14456 KB Output is correct
21 Correct 7 ms 14420 KB Output is correct
22 Correct 7 ms 14420 KB Output is correct
23 Correct 7 ms 14420 KB Output is correct
24 Correct 19 ms 18328 KB Output is correct
25 Correct 19 ms 18272 KB Output is correct
26 Correct 19 ms 18232 KB Output is correct
27 Correct 6 ms 14400 KB Output is correct
28 Correct 6 ms 14292 KB Output is correct
29 Correct 6 ms 14292 KB Output is correct
30 Correct 6 ms 14420 KB Output is correct
31 Correct 7 ms 14320 KB Output is correct
32 Correct 7 ms 14420 KB Output is correct
33 Correct 7 ms 14408 KB Output is correct
34 Correct 7 ms 14420 KB Output is correct
35 Correct 7 ms 14420 KB Output is correct
36 Correct 6 ms 14420 KB Output is correct
37 Correct 7 ms 14420 KB Output is correct
38 Correct 9 ms 14440 KB Output is correct
39 Correct 7 ms 14400 KB Output is correct
40 Correct 7 ms 14420 KB Output is correct
41 Correct 6 ms 14452 KB Output is correct
42 Correct 7 ms 14420 KB Output is correct
43 Correct 7 ms 14464 KB Output is correct
44 Correct 6 ms 14420 KB Output is correct
45 Correct 6 ms 14420 KB Output is correct
46 Correct 7 ms 14420 KB Output is correct
47 Correct 7 ms 14292 KB Output is correct
48 Correct 7 ms 14428 KB Output is correct
49 Correct 8 ms 14420 KB Output is correct
50 Correct 7 ms 14420 KB Output is correct
51 Correct 7 ms 14420 KB Output is correct
52 Correct 7 ms 14424 KB Output is correct
53 Correct 7 ms 14420 KB Output is correct
54 Correct 7 ms 14352 KB Output is correct
55 Correct 6 ms 14420 KB Output is correct
56 Correct 7 ms 14420 KB Output is correct
57 Correct 7 ms 14420 KB Output is correct
58 Correct 8 ms 14464 KB Output is correct
59 Correct 7 ms 14364 KB Output is correct
60 Correct 7 ms 14420 KB Output is correct
61 Correct 7 ms 14420 KB Output is correct
62 Correct 7 ms 14420 KB Output is correct
63 Correct 8 ms 14468 KB Output is correct
64 Correct 7 ms 14420 KB Output is correct
65 Correct 10 ms 14420 KB Output is correct
66 Correct 7 ms 14420 KB Output is correct
67 Correct 10 ms 14452 KB Output is correct
68 Correct 8 ms 14420 KB Output is correct
69 Correct 11 ms 14436 KB Output is correct
70 Correct 8 ms 14544 KB Output is correct
71 Correct 8 ms 14548 KB Output is correct
72 Correct 9 ms 14524 KB Output is correct
73 Correct 8 ms 14420 KB Output is correct
74 Correct 8 ms 14548 KB Output is correct
75 Correct 8 ms 14548 KB Output is correct
76 Correct 20 ms 17072 KB Output is correct
77 Correct 23 ms 17456 KB Output is correct
78 Correct 24 ms 17892 KB Output is correct
79 Correct 14 ms 14452 KB Output is correct
80 Correct 14 ms 14452 KB Output is correct
81 Correct 14 ms 14464 KB Output is correct
82 Correct 13 ms 14460 KB Output is correct
83 Correct 14 ms 14420 KB Output is correct
84 Correct 10 ms 14652 KB Output is correct
85 Correct 11 ms 14556 KB Output is correct
86 Correct 9 ms 14548 KB Output is correct
87 Correct 10 ms 14632 KB Output is correct
88 Correct 9 ms 14644 KB Output is correct
89 Correct 9 ms 14616 KB Output is correct
90 Correct 31 ms 18112 KB Output is correct
91 Correct 25 ms 18032 KB Output is correct
92 Correct 25 ms 18132 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 7 ms 14292 KB Output is correct
2 Correct 7 ms 14376 KB Output is correct
3 Correct 7 ms 14292 KB Output is correct
4 Correct 7 ms 14292 KB Output is correct
5 Correct 6 ms 14292 KB Output is correct
6 Correct 6 ms 14292 KB Output is correct
7 Correct 6 ms 14292 KB Output is correct
8 Correct 7 ms 14292 KB Output is correct
9 Correct 7 ms 14292 KB Output is correct
10 Correct 6 ms 14292 KB Output is correct
11 Correct 6 ms 14292 KB Output is correct
12 Correct 6 ms 14356 KB Output is correct
13 Correct 7 ms 14308 KB Output is correct
14 Correct 6 ms 14420 KB Output is correct
15 Correct 8 ms 14456 KB Output is correct
16 Correct 9 ms 14456 KB Output is correct
17 Correct 7 ms 14348 KB Output is correct
18 Correct 7 ms 14420 KB Output is correct
19 Correct 7 ms 14420 KB Output is correct
20 Correct 9 ms 14456 KB Output is correct
21 Correct 7 ms 14420 KB Output is correct
22 Correct 7 ms 14420 KB Output is correct
23 Correct 7 ms 14420 KB Output is correct
24 Correct 19 ms 18328 KB Output is correct
25 Correct 19 ms 18272 KB Output is correct
26 Correct 19 ms 18232 KB Output is correct
27 Correct 9 ms 14676 KB Output is correct
28 Correct 9 ms 14676 KB Output is correct
29 Correct 10 ms 14716 KB Output is correct
30 Correct 10 ms 14676 KB Output is correct
31 Correct 10 ms 14676 KB Output is correct
32 Correct 10 ms 14676 KB Output is correct
33 Correct 15 ms 15740 KB Output is correct
34 Correct 14 ms 15728 KB Output is correct
35 Correct 15 ms 15700 KB Output is correct
36 Correct 14 ms 15676 KB Output is correct
37 Correct 15 ms 15708 KB Output is correct
38 Correct 14 ms 15700 KB Output is correct
39 Correct 26 ms 18876 KB Output is correct
40 Correct 27 ms 18784 KB Output is correct
41 Correct 25 ms 18820 KB Output is correct
42 Correct 6 ms 14400 KB Output is correct
43 Correct 6 ms 14292 KB Output is correct
44 Correct 6 ms 14292 KB Output is correct
45 Correct 6 ms 14420 KB Output is correct
46 Correct 7 ms 14320 KB Output is correct
47 Correct 7 ms 14420 KB Output is correct
48 Correct 7 ms 14408 KB Output is correct
49 Correct 7 ms 14420 KB Output is correct
50 Correct 7 ms 14420 KB Output is correct
51 Correct 6 ms 14420 KB Output is correct
52 Correct 7 ms 14420 KB Output is correct
53 Correct 9 ms 14440 KB Output is correct
54 Correct 7 ms 14400 KB Output is correct
55 Correct 7 ms 14420 KB Output is correct
56 Correct 6 ms 14452 KB Output is correct
57 Correct 7 ms 14420 KB Output is correct
58 Correct 7 ms 14464 KB Output is correct
59 Correct 6 ms 14420 KB Output is correct
60 Correct 6 ms 14420 KB Output is correct
61 Correct 7 ms 14420 KB Output is correct
62 Correct 7 ms 14292 KB Output is correct
63 Correct 7 ms 14428 KB Output is correct
64 Correct 8 ms 14420 KB Output is correct
65 Correct 7 ms 14420 KB Output is correct
66 Correct 7 ms 14420 KB Output is correct
67 Correct 7 ms 14424 KB Output is correct
68 Correct 7 ms 14420 KB Output is correct
69 Correct 7 ms 14352 KB Output is correct
70 Correct 6 ms 14420 KB Output is correct
71 Correct 7 ms 14420 KB Output is correct
72 Correct 7 ms 14420 KB Output is correct
73 Correct 8 ms 14464 KB Output is correct
74 Correct 7 ms 14364 KB Output is correct
75 Correct 7 ms 14420 KB Output is correct
76 Correct 7 ms 14420 KB Output is correct
77 Correct 7 ms 14420 KB Output is correct
78 Correct 8 ms 14468 KB Output is correct
79 Correct 7 ms 14420 KB Output is correct
80 Correct 10 ms 14420 KB Output is correct
81 Correct 7 ms 14420 KB Output is correct
82 Correct 10 ms 14452 KB Output is correct
83 Correct 8 ms 14420 KB Output is correct
84 Correct 11 ms 14436 KB Output is correct
85 Correct 8 ms 14544 KB Output is correct
86 Correct 8 ms 14548 KB Output is correct
87 Correct 9 ms 14524 KB Output is correct
88 Correct 8 ms 14420 KB Output is correct
89 Correct 8 ms 14548 KB Output is correct
90 Correct 8 ms 14548 KB Output is correct
91 Correct 20 ms 17072 KB Output is correct
92 Correct 23 ms 17456 KB Output is correct
93 Correct 24 ms 17892 KB Output is correct
94 Correct 14 ms 14452 KB Output is correct
95 Correct 14 ms 14452 KB Output is correct
96 Correct 14 ms 14464 KB Output is correct
97 Correct 13 ms 14460 KB Output is correct
98 Correct 14 ms 14420 KB Output is correct
99 Correct 10 ms 14652 KB Output is correct
100 Correct 11 ms 14556 KB Output is correct
101 Correct 9 ms 14548 KB Output is correct
102 Correct 10 ms 14632 KB Output is correct
103 Correct 9 ms 14644 KB Output is correct
104 Correct 9 ms 14616 KB Output is correct
105 Correct 31 ms 18112 KB Output is correct
106 Correct 25 ms 18032 KB Output is correct
107 Correct 25 ms 18132 KB Output is correct
108 Correct 11 ms 14712 KB Output is correct
109 Correct 803 ms 14744 KB Output is correct
110 Correct 606 ms 14700 KB Output is correct
111 Correct 502 ms 14704 KB Output is correct
112 Correct 572 ms 14756 KB Output is correct
113 Correct 391 ms 14712 KB Output is correct
114 Correct 21 ms 15664 KB Output is correct
115 Correct 17 ms 15600 KB Output is correct
116 Correct 20 ms 15924 KB Output is correct
117 Correct 19 ms 15672 KB Output is correct
118 Correct 20 ms 15824 KB Output is correct
119 Correct 17 ms 15520 KB Output is correct
120 Correct 22 ms 16980 KB Output is correct
121 Correct 15 ms 15060 KB Output is correct
122 Correct 25 ms 17120 KB Output is correct
123 Correct 11 ms 14932 KB Output is correct
124 Correct 26 ms 17688 KB Output is correct
125 Correct 14 ms 15188 KB Output is correct
126 Correct 12 ms 15188 KB Output is correct
127 Correct 14 ms 15444 KB Output is correct
128 Correct 11 ms 15188 KB Output is correct
129 Correct 12 ms 15188 KB Output is correct
130 Correct 10 ms 14676 KB Output is correct
131 Correct 1102 ms 14884 KB Output is correct
132 Correct 1125 ms 14896 KB Output is correct
133 Correct 984 ms 14908 KB Output is correct
134 Correct 890 ms 14932 KB Output is correct
135 Correct 841 ms 14976 KB Output is correct
136 Correct 23 ms 16724 KB Output is correct
137 Correct 23 ms 16732 KB Output is correct
138 Correct 23 ms 16724 KB Output is correct
139 Correct 27 ms 16856 KB Output is correct
140 Correct 23 ms 16720 KB Output is correct
141 Correct 22 ms 16804 KB Output is correct
142 Correct 31 ms 19708 KB Output is correct
143 Correct 15 ms 15696 KB Output is correct
144 Correct 32 ms 19640 KB Output is correct
145 Correct 16 ms 15624 KB Output is correct
146 Correct 36 ms 19596 KB Output is correct
147 Correct 15 ms 15700 KB Output is correct
148 Correct 16 ms 16084 KB Output is correct
149 Correct 17 ms 15932 KB Output is correct
150 Correct 14 ms 15948 KB Output is correct
151 Correct 15 ms 15884 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 7 ms 14292 KB Output is correct
2 Correct 7 ms 14376 KB Output is correct
3 Correct 7 ms 14292 KB Output is correct
4 Correct 7 ms 14292 KB Output is correct
5 Correct 6 ms 14292 KB Output is correct
6 Correct 6 ms 14292 KB Output is correct
7 Correct 6 ms 14292 KB Output is correct
8 Correct 7 ms 14292 KB Output is correct
9 Correct 7 ms 14292 KB Output is correct
10 Correct 6 ms 14292 KB Output is correct
11 Correct 6 ms 14292 KB Output is correct
12 Correct 6 ms 14356 KB Output is correct
13 Correct 7 ms 14308 KB Output is correct
14 Correct 6 ms 14420 KB Output is correct
15 Correct 8 ms 14456 KB Output is correct
16 Correct 9 ms 14456 KB Output is correct
17 Correct 7 ms 14348 KB Output is correct
18 Correct 7 ms 14420 KB Output is correct
19 Correct 7 ms 14420 KB Output is correct
20 Correct 9 ms 14456 KB Output is correct
21 Correct 7 ms 14420 KB Output is correct
22 Correct 7 ms 14420 KB Output is correct
23 Correct 7 ms 14420 KB Output is correct
24 Correct 19 ms 18328 KB Output is correct
25 Correct 19 ms 18272 KB Output is correct
26 Correct 19 ms 18232 KB Output is correct
27 Correct 9 ms 14676 KB Output is correct
28 Correct 9 ms 14676 KB Output is correct
29 Correct 10 ms 14716 KB Output is correct
30 Correct 10 ms 14676 KB Output is correct
31 Correct 10 ms 14676 KB Output is correct
32 Correct 10 ms 14676 KB Output is correct
33 Correct 15 ms 15740 KB Output is correct
34 Correct 14 ms 15728 KB Output is correct
35 Correct 15 ms 15700 KB Output is correct
36 Correct 14 ms 15676 KB Output is correct
37 Correct 15 ms 15708 KB Output is correct
38 Correct 14 ms 15700 KB Output is correct
39 Correct 26 ms 18876 KB Output is correct
40 Correct 27 ms 18784 KB Output is correct
41 Correct 25 ms 18820 KB Output is correct
42 Correct 18 ms 15828 KB Output is correct
43 Correct 14 ms 15188 KB Output is correct
44 Correct 21 ms 15828 KB Output is correct
45 Correct 18 ms 15316 KB Output is correct
46 Correct 17 ms 15316 KB Output is correct
47 Correct 24 ms 15968 KB Output is correct
48 Correct 59 ms 26424 KB Output is correct
49 Correct 36 ms 20948 KB Output is correct
50 Correct 54 ms 24660 KB Output is correct
51 Correct 51 ms 24404 KB Output is correct
52 Correct 56 ms 23860 KB Output is correct
53 Correct 44 ms 20980 KB Output is correct
54 Correct 19 ms 15864 KB Output is correct
55 Correct 19 ms 15956 KB Output is correct
56 Correct 23 ms 15952 KB Output is correct
57 Correct 22 ms 15956 KB Output is correct
58 Correct 22 ms 15940 KB Output is correct
59 Correct 23 ms 15956 KB Output is correct
60 Correct 65 ms 27316 KB Output is correct
61 Correct 65 ms 27212 KB Output is correct
62 Correct 66 ms 27212 KB Output is correct
63 Correct 66 ms 27292 KB Output is correct
64 Correct 74 ms 27248 KB Output is correct
65 Correct 66 ms 27212 KB Output is correct
66 Correct 66 ms 26216 KB Output is correct
67 Correct 86 ms 26304 KB Output is correct
68 Correct 66 ms 26188 KB Output is correct
69 Correct 6 ms 14400 KB Output is correct
70 Correct 6 ms 14292 KB Output is correct
71 Correct 6 ms 14292 KB Output is correct
72 Correct 6 ms 14420 KB Output is correct
73 Correct 7 ms 14320 KB Output is correct
74 Correct 7 ms 14420 KB Output is correct
75 Correct 7 ms 14408 KB Output is correct
76 Correct 7 ms 14420 KB Output is correct
77 Correct 7 ms 14420 KB Output is correct
78 Correct 6 ms 14420 KB Output is correct
79 Correct 7 ms 14420 KB Output is correct
80 Correct 9 ms 14440 KB Output is correct
81 Correct 7 ms 14400 KB Output is correct
82 Correct 7 ms 14420 KB Output is correct
83 Correct 6 ms 14452 KB Output is correct
84 Correct 7 ms 14420 KB Output is correct
85 Correct 7 ms 14464 KB Output is correct
86 Correct 6 ms 14420 KB Output is correct
87 Correct 6 ms 14420 KB Output is correct
88 Correct 7 ms 14420 KB Output is correct
89 Correct 7 ms 14292 KB Output is correct
90 Correct 7 ms 14428 KB Output is correct
91 Correct 8 ms 14420 KB Output is correct
92 Correct 7 ms 14420 KB Output is correct
93 Correct 7 ms 14420 KB Output is correct
94 Correct 7 ms 14424 KB Output is correct
95 Correct 7 ms 14420 KB Output is correct
96 Correct 7 ms 14352 KB Output is correct
97 Correct 6 ms 14420 KB Output is correct
98 Correct 7 ms 14420 KB Output is correct
99 Correct 7 ms 14420 KB Output is correct
100 Correct 8 ms 14464 KB Output is correct
101 Correct 7 ms 14364 KB Output is correct
102 Correct 7 ms 14420 KB Output is correct
103 Correct 7 ms 14420 KB Output is correct
104 Correct 7 ms 14420 KB Output is correct
105 Correct 8 ms 14468 KB Output is correct
106 Correct 7 ms 14420 KB Output is correct
107 Correct 10 ms 14420 KB Output is correct
108 Correct 7 ms 14420 KB Output is correct
109 Correct 10 ms 14452 KB Output is correct
110 Correct 8 ms 14420 KB Output is correct
111 Correct 11 ms 14436 KB Output is correct
112 Correct 8 ms 14544 KB Output is correct
113 Correct 8 ms 14548 KB Output is correct
114 Correct 9 ms 14524 KB Output is correct
115 Correct 8 ms 14420 KB Output is correct
116 Correct 8 ms 14548 KB Output is correct
117 Correct 8 ms 14548 KB Output is correct
118 Correct 20 ms 17072 KB Output is correct
119 Correct 23 ms 17456 KB Output is correct
120 Correct 24 ms 17892 KB Output is correct
121 Correct 14 ms 14452 KB Output is correct
122 Correct 14 ms 14452 KB Output is correct
123 Correct 14 ms 14464 KB Output is correct
124 Correct 13 ms 14460 KB Output is correct
125 Correct 14 ms 14420 KB Output is correct
126 Correct 10 ms 14652 KB Output is correct
127 Correct 11 ms 14556 KB Output is correct
128 Correct 9 ms 14548 KB Output is correct
129 Correct 10 ms 14632 KB Output is correct
130 Correct 9 ms 14644 KB Output is correct
131 Correct 9 ms 14616 KB Output is correct
132 Correct 31 ms 18112 KB Output is correct
133 Correct 25 ms 18032 KB Output is correct
134 Correct 25 ms 18132 KB Output is correct
135 Correct 11 ms 14712 KB Output is correct
136 Correct 803 ms 14744 KB Output is correct
137 Correct 606 ms 14700 KB Output is correct
138 Correct 502 ms 14704 KB Output is correct
139 Correct 572 ms 14756 KB Output is correct
140 Correct 391 ms 14712 KB Output is correct
141 Correct 21 ms 15664 KB Output is correct
142 Correct 17 ms 15600 KB Output is correct
143 Correct 20 ms 15924 KB Output is correct
144 Correct 19 ms 15672 KB Output is correct
145 Correct 20 ms 15824 KB Output is correct
146 Correct 17 ms 15520 KB Output is correct
147 Correct 22 ms 16980 KB Output is correct
148 Correct 15 ms 15060 KB Output is correct
149 Correct 25 ms 17120 KB Output is correct
150 Correct 11 ms 14932 KB Output is correct
151 Correct 26 ms 17688 KB Output is correct
152 Correct 14 ms 15188 KB Output is correct
153 Correct 12 ms 15188 KB Output is correct
154 Correct 14 ms 15444 KB Output is correct
155 Correct 11 ms 15188 KB Output is correct
156 Correct 12 ms 15188 KB Output is correct
157 Correct 10 ms 14676 KB Output is correct
158 Correct 1102 ms 14884 KB Output is correct
159 Correct 1125 ms 14896 KB Output is correct
160 Correct 984 ms 14908 KB Output is correct
161 Correct 890 ms 14932 KB Output is correct
162 Correct 841 ms 14976 KB Output is correct
163 Correct 23 ms 16724 KB Output is correct
164 Correct 23 ms 16732 KB Output is correct
165 Correct 23 ms 16724 KB Output is correct
166 Correct 27 ms 16856 KB Output is correct
167 Correct 23 ms 16720 KB Output is correct
168 Correct 22 ms 16804 KB Output is correct
169 Correct 31 ms 19708 KB Output is correct
170 Correct 15 ms 15696 KB Output is correct
171 Correct 32 ms 19640 KB Output is correct
172 Correct 16 ms 15624 KB Output is correct
173 Correct 36 ms 19596 KB Output is correct
174 Correct 15 ms 15700 KB Output is correct
175 Correct 16 ms 16084 KB Output is correct
176 Correct 17 ms 15932 KB Output is correct
177 Correct 14 ms 15948 KB Output is correct
178 Correct 15 ms 15884 KB Output is correct
179 Correct 17 ms 15408 KB Output is correct
180 Execution timed out 1568 ms 15436 KB Time limit exceeded
181 Halted 0 ms 0 KB -