Submission #1029869

# Submission time Handle Problem Language Result Execution time Memory
1029869 2024-07-21T12:51:13 Z _8_8_ Painting Walls (APIO20_paint) C++17
100 / 100
149 ms 38888 KB
#include "paint.h"

#include <bits/stdc++.h>

using namespace std;
const int N = 1e6 + 13;
vector<int> v[N];
int dp[N],n,lst[N],val[N],val1[N];
int minimumInstructions(int nn, int m, int k,vector<int> C,vector<int> A,vector<vector<int>> B) {
    n = nn;
    for(int i = 0;i < m;i++){
        for(int j:B[i]){
            v[j].push_back(i);
        }
    }
    set<int> st;
    const int inf = 1e9;
    st.insert(n);
    for(int i = n - 1;i >= 0;i--){
        bool ok = false;
        for(int j:v[C[i]]){
            int nx = j + 1;
            if(j + 1==m) nx = 0;
            if(lst[nx] == i + 1){
                val1[j] = val[nx] + 1;
            }else{
                val1[j] = 1;
            }
            if(val1[j] >= m){
                ok = true;
            }
        }
        for(int j:v[C[i]]){
            lst[j] = i;
            val[j] = val1[j];
        }
        if(ok){
            auto it = st.upper_bound(i + m);
            if(it == st.begin()){
                dp[i] = inf;
            }else{
                it--;
                if(dp[*it] == inf) dp[i] = inf;
                else dp[i] = dp[*it] + 1;
            }
            st.insert(i);
        }else{
            dp[i] =inf;
            continue;
        }
    }
    return (dp[0] < inf? dp[0]:-1);
}
# Verdict Execution time Memory Grader output
1 Correct 9 ms 23896 KB Output is correct
2 Correct 10 ms 23900 KB Output is correct
3 Correct 9 ms 23900 KB Output is correct
4 Correct 10 ms 23900 KB Output is correct
5 Correct 14 ms 23912 KB Output is correct
6 Correct 10 ms 23896 KB Output is correct
7 Correct 10 ms 23900 KB Output is correct
8 Correct 10 ms 23940 KB Output is correct
9 Correct 10 ms 23896 KB Output is correct
10 Correct 9 ms 23900 KB Output is correct
11 Correct 11 ms 23728 KB Output is correct
12 Correct 14 ms 23792 KB Output is correct
13 Correct 11 ms 23900 KB Output is correct
14 Correct 10 ms 23900 KB Output is correct
15 Correct 10 ms 24012 KB Output is correct
16 Correct 9 ms 24004 KB Output is correct
17 Correct 11 ms 23900 KB Output is correct
18 Correct 10 ms 23900 KB Output is correct
19 Correct 10 ms 23836 KB Output is correct
20 Correct 11 ms 23900 KB Output is correct
21 Correct 10 ms 23904 KB Output is correct
22 Correct 24 ms 28416 KB Output is correct
23 Correct 23 ms 28252 KB Output is correct
24 Correct 41 ms 28208 KB Output is correct
25 Correct 14 ms 24924 KB Output is correct
26 Correct 15 ms 24948 KB Output is correct
27 Correct 12 ms 24668 KB Output is correct
28 Correct 12 ms 24312 KB Output is correct
29 Correct 11 ms 24136 KB Output is correct
30 Correct 15 ms 24152 KB Output is correct
31 Correct 19 ms 26204 KB Output is correct
32 Correct 18 ms 26204 KB Output is correct
33 Correct 18 ms 26204 KB Output is correct
34 Correct 25 ms 26168 KB Output is correct
35 Correct 18 ms 26124 KB Output is correct
36 Correct 21 ms 26204 KB Output is correct
37 Correct 27 ms 28764 KB Output is correct
38 Correct 25 ms 28952 KB Output is correct
39 Correct 28 ms 28728 KB Output is correct
40 Correct 35 ms 29268 KB Output is correct
41 Correct 25 ms 27224 KB Output is correct
42 Correct 27 ms 27548 KB Output is correct
43 Correct 17 ms 25176 KB Output is correct
44 Correct 14 ms 24668 KB Output is correct
45 Correct 16 ms 25296 KB Output is correct
46 Correct 53 ms 36700 KB Output is correct
47 Correct 38 ms 31576 KB Output is correct
48 Correct 32 ms 33372 KB Output is correct
49 Correct 34 ms 33116 KB Output is correct
50 Correct 42 ms 32760 KB Output is correct
51 Correct 29 ms 30300 KB Output is correct
52 Correct 37 ms 29884 KB Output is correct
53 Correct 36 ms 29776 KB Output is correct
54 Correct 27 ms 27476 KB Output is correct
55 Correct 24 ms 25684 KB Output is correct
56 Correct 15 ms 25176 KB Output is correct
57 Correct 16 ms 25180 KB Output is correct
58 Correct 48 ms 38228 KB Output is correct
59 Correct 47 ms 38228 KB Output is correct
60 Correct 50 ms 38252 KB Output is correct
61 Correct 59 ms 38268 KB Output is correct
62 Correct 47 ms 38228 KB Output is correct
63 Correct 44 ms 38236 KB Output is correct
64 Correct 44 ms 34880 KB Output is correct
65 Correct 40 ms 34880 KB Output is correct
66 Correct 39 ms 34900 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 9 ms 23896 KB Output is correct
2 Correct 10 ms 23900 KB Output is correct
3 Correct 9 ms 23900 KB Output is correct
4 Correct 10 ms 23900 KB Output is correct
5 Correct 14 ms 23912 KB Output is correct
6 Correct 10 ms 23896 KB Output is correct
7 Correct 10 ms 23900 KB Output is correct
8 Correct 10 ms 23940 KB Output is correct
9 Correct 10 ms 23896 KB Output is correct
10 Correct 9 ms 23900 KB Output is correct
11 Correct 11 ms 23728 KB Output is correct
12 Correct 14 ms 23792 KB Output is correct
13 Correct 11 ms 23900 KB Output is correct
14 Correct 10 ms 23900 KB Output is correct
15 Correct 10 ms 24012 KB Output is correct
16 Correct 9 ms 24004 KB Output is correct
17 Correct 11 ms 23900 KB Output is correct
18 Correct 10 ms 23900 KB Output is correct
19 Correct 10 ms 23836 KB Output is correct
20 Correct 11 ms 23900 KB Output is correct
21 Correct 10 ms 23904 KB Output is correct
22 Correct 9 ms 23896 KB Output is correct
23 Correct 9 ms 23900 KB Output is correct
24 Correct 9 ms 23900 KB Output is correct
25 Correct 12 ms 23900 KB Output is correct
26 Correct 10 ms 23924 KB Output is correct
27 Correct 10 ms 23900 KB Output is correct
28 Correct 10 ms 23832 KB Output is correct
29 Correct 10 ms 23900 KB Output is correct
30 Correct 11 ms 23900 KB Output is correct
31 Correct 10 ms 23972 KB Output is correct
32 Correct 10 ms 23900 KB Output is correct
33 Correct 11 ms 23900 KB Output is correct
34 Correct 10 ms 23900 KB Output is correct
35 Correct 10 ms 23772 KB Output is correct
36 Correct 10 ms 23900 KB Output is correct
37 Correct 9 ms 23868 KB Output is correct
38 Correct 10 ms 23900 KB Output is correct
39 Correct 10 ms 23900 KB Output is correct
40 Correct 9 ms 23800 KB Output is correct
41 Correct 9 ms 23900 KB Output is correct
42 Correct 9 ms 23900 KB Output is correct
43 Correct 11 ms 23900 KB Output is correct
44 Correct 9 ms 23900 KB Output is correct
45 Correct 12 ms 23900 KB Output is correct
46 Correct 10 ms 23960 KB Output is correct
47 Correct 10 ms 23900 KB Output is correct
48 Correct 11 ms 23968 KB Output is correct
49 Correct 10 ms 23900 KB Output is correct
50 Correct 10 ms 23900 KB Output is correct
51 Correct 9 ms 23764 KB Output is correct
52 Correct 9 ms 23900 KB Output is correct
53 Correct 10 ms 23900 KB Output is correct
54 Correct 11 ms 23900 KB Output is correct
55 Correct 10 ms 23936 KB Output is correct
56 Correct 16 ms 23792 KB Output is correct
57 Correct 11 ms 23900 KB Output is correct
58 Correct 11 ms 23900 KB Output is correct
59 Correct 11 ms 23900 KB Output is correct
60 Correct 11 ms 23940 KB Output is correct
61 Correct 11 ms 23884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 9 ms 23896 KB Output is correct
2 Correct 9 ms 23900 KB Output is correct
3 Correct 9 ms 23896 KB Output is correct
4 Correct 10 ms 23900 KB Output is correct
5 Correct 9 ms 23900 KB Output is correct
6 Correct 10 ms 23900 KB Output is correct
7 Correct 14 ms 23912 KB Output is correct
8 Correct 10 ms 23896 KB Output is correct
9 Correct 10 ms 23900 KB Output is correct
10 Correct 10 ms 23940 KB Output is correct
11 Correct 10 ms 23896 KB Output is correct
12 Correct 9 ms 23900 KB Output is correct
13 Correct 11 ms 23728 KB Output is correct
14 Correct 14 ms 23792 KB Output is correct
15 Correct 11 ms 23900 KB Output is correct
16 Correct 10 ms 23900 KB Output is correct
17 Correct 10 ms 24012 KB Output is correct
18 Correct 9 ms 24004 KB Output is correct
19 Correct 11 ms 23900 KB Output is correct
20 Correct 10 ms 23900 KB Output is correct
21 Correct 10 ms 23836 KB Output is correct
22 Correct 11 ms 23900 KB Output is correct
23 Correct 10 ms 23904 KB Output is correct
24 Correct 24 ms 28416 KB Output is correct
25 Correct 23 ms 28252 KB Output is correct
26 Correct 41 ms 28208 KB Output is correct
27 Correct 9 ms 23900 KB Output is correct
28 Correct 12 ms 23900 KB Output is correct
29 Correct 10 ms 23924 KB Output is correct
30 Correct 10 ms 23900 KB Output is correct
31 Correct 10 ms 23832 KB Output is correct
32 Correct 10 ms 23900 KB Output is correct
33 Correct 11 ms 23900 KB Output is correct
34 Correct 10 ms 23972 KB Output is correct
35 Correct 10 ms 23900 KB Output is correct
36 Correct 11 ms 23900 KB Output is correct
37 Correct 10 ms 23900 KB Output is correct
38 Correct 10 ms 23772 KB Output is correct
39 Correct 10 ms 23900 KB Output is correct
40 Correct 9 ms 23868 KB Output is correct
41 Correct 10 ms 23900 KB Output is correct
42 Correct 10 ms 23900 KB Output is correct
43 Correct 9 ms 23800 KB Output is correct
44 Correct 9 ms 23900 KB Output is correct
45 Correct 9 ms 23900 KB Output is correct
46 Correct 11 ms 23900 KB Output is correct
47 Correct 9 ms 23900 KB Output is correct
48 Correct 12 ms 23900 KB Output is correct
49 Correct 10 ms 23960 KB Output is correct
50 Correct 10 ms 23900 KB Output is correct
51 Correct 11 ms 23968 KB Output is correct
52 Correct 10 ms 23900 KB Output is correct
53 Correct 10 ms 23900 KB Output is correct
54 Correct 9 ms 23764 KB Output is correct
55 Correct 9 ms 23900 KB Output is correct
56 Correct 10 ms 23900 KB Output is correct
57 Correct 11 ms 23900 KB Output is correct
58 Correct 10 ms 23936 KB Output is correct
59 Correct 16 ms 23792 KB Output is correct
60 Correct 11 ms 23900 KB Output is correct
61 Correct 11 ms 23900 KB Output is correct
62 Correct 11 ms 23900 KB Output is correct
63 Correct 11 ms 23940 KB Output is correct
64 Correct 11 ms 23884 KB Output is correct
65 Correct 10 ms 23900 KB Output is correct
66 Correct 11 ms 23896 KB Output is correct
67 Correct 14 ms 23900 KB Output is correct
68 Correct 10 ms 23772 KB Output is correct
69 Correct 11 ms 23900 KB Output is correct
70 Correct 14 ms 24008 KB Output is correct
71 Correct 12 ms 24152 KB Output is correct
72 Correct 11 ms 24156 KB Output is correct
73 Correct 14 ms 23900 KB Output is correct
74 Correct 11 ms 24024 KB Output is correct
75 Correct 11 ms 24156 KB Output is correct
76 Correct 28 ms 27220 KB Output is correct
77 Correct 31 ms 27732 KB Output is correct
78 Correct 35 ms 28244 KB Output is correct
79 Correct 11 ms 23896 KB Output is correct
80 Correct 14 ms 23900 KB Output is correct
81 Correct 14 ms 23900 KB Output is correct
82 Correct 11 ms 23900 KB Output is correct
83 Correct 10 ms 23900 KB Output is correct
84 Correct 12 ms 24156 KB Output is correct
85 Correct 11 ms 24284 KB Output is correct
86 Correct 11 ms 24156 KB Output is correct
87 Correct 11 ms 24156 KB Output is correct
88 Correct 13 ms 24156 KB Output is correct
89 Correct 11 ms 24156 KB Output is correct
90 Correct 30 ms 28484 KB Output is correct
91 Correct 33 ms 28500 KB Output is correct
92 Correct 28 ms 28508 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 9 ms 23896 KB Output is correct
2 Correct 9 ms 23900 KB Output is correct
3 Correct 9 ms 23896 KB Output is correct
4 Correct 10 ms 23900 KB Output is correct
5 Correct 9 ms 23900 KB Output is correct
6 Correct 10 ms 23900 KB Output is correct
7 Correct 14 ms 23912 KB Output is correct
8 Correct 10 ms 23896 KB Output is correct
9 Correct 10 ms 23900 KB Output is correct
10 Correct 10 ms 23940 KB Output is correct
11 Correct 10 ms 23896 KB Output is correct
12 Correct 9 ms 23900 KB Output is correct
13 Correct 11 ms 23728 KB Output is correct
14 Correct 14 ms 23792 KB Output is correct
15 Correct 11 ms 23900 KB Output is correct
16 Correct 10 ms 23900 KB Output is correct
17 Correct 10 ms 24012 KB Output is correct
18 Correct 9 ms 24004 KB Output is correct
19 Correct 11 ms 23900 KB Output is correct
20 Correct 10 ms 23900 KB Output is correct
21 Correct 10 ms 23836 KB Output is correct
22 Correct 11 ms 23900 KB Output is correct
23 Correct 10 ms 23904 KB Output is correct
24 Correct 24 ms 28416 KB Output is correct
25 Correct 23 ms 28252 KB Output is correct
26 Correct 41 ms 28208 KB Output is correct
27 Correct 14 ms 24924 KB Output is correct
28 Correct 15 ms 24948 KB Output is correct
29 Correct 12 ms 24668 KB Output is correct
30 Correct 12 ms 24312 KB Output is correct
31 Correct 11 ms 24136 KB Output is correct
32 Correct 15 ms 24152 KB Output is correct
33 Correct 19 ms 26204 KB Output is correct
34 Correct 18 ms 26204 KB Output is correct
35 Correct 18 ms 26204 KB Output is correct
36 Correct 25 ms 26168 KB Output is correct
37 Correct 18 ms 26124 KB Output is correct
38 Correct 21 ms 26204 KB Output is correct
39 Correct 27 ms 28764 KB Output is correct
40 Correct 25 ms 28952 KB Output is correct
41 Correct 28 ms 28728 KB Output is correct
42 Correct 9 ms 23900 KB Output is correct
43 Correct 12 ms 23900 KB Output is correct
44 Correct 10 ms 23924 KB Output is correct
45 Correct 10 ms 23900 KB Output is correct
46 Correct 10 ms 23832 KB Output is correct
47 Correct 10 ms 23900 KB Output is correct
48 Correct 11 ms 23900 KB Output is correct
49 Correct 10 ms 23972 KB Output is correct
50 Correct 10 ms 23900 KB Output is correct
51 Correct 11 ms 23900 KB Output is correct
52 Correct 10 ms 23900 KB Output is correct
53 Correct 10 ms 23772 KB Output is correct
54 Correct 10 ms 23900 KB Output is correct
55 Correct 9 ms 23868 KB Output is correct
56 Correct 10 ms 23900 KB Output is correct
57 Correct 10 ms 23900 KB Output is correct
58 Correct 9 ms 23800 KB Output is correct
59 Correct 9 ms 23900 KB Output is correct
60 Correct 9 ms 23900 KB Output is correct
61 Correct 11 ms 23900 KB Output is correct
62 Correct 9 ms 23900 KB Output is correct
63 Correct 12 ms 23900 KB Output is correct
64 Correct 10 ms 23960 KB Output is correct
65 Correct 10 ms 23900 KB Output is correct
66 Correct 11 ms 23968 KB Output is correct
67 Correct 10 ms 23900 KB Output is correct
68 Correct 10 ms 23900 KB Output is correct
69 Correct 9 ms 23764 KB Output is correct
70 Correct 9 ms 23900 KB Output is correct
71 Correct 10 ms 23900 KB Output is correct
72 Correct 11 ms 23900 KB Output is correct
73 Correct 10 ms 23936 KB Output is correct
74 Correct 16 ms 23792 KB Output is correct
75 Correct 11 ms 23900 KB Output is correct
76 Correct 11 ms 23900 KB Output is correct
77 Correct 11 ms 23900 KB Output is correct
78 Correct 11 ms 23940 KB Output is correct
79 Correct 11 ms 23884 KB Output is correct
80 Correct 10 ms 23900 KB Output is correct
81 Correct 11 ms 23896 KB Output is correct
82 Correct 14 ms 23900 KB Output is correct
83 Correct 10 ms 23772 KB Output is correct
84 Correct 11 ms 23900 KB Output is correct
85 Correct 14 ms 24008 KB Output is correct
86 Correct 12 ms 24152 KB Output is correct
87 Correct 11 ms 24156 KB Output is correct
88 Correct 14 ms 23900 KB Output is correct
89 Correct 11 ms 24024 KB Output is correct
90 Correct 11 ms 24156 KB Output is correct
91 Correct 28 ms 27220 KB Output is correct
92 Correct 31 ms 27732 KB Output is correct
93 Correct 35 ms 28244 KB Output is correct
94 Correct 11 ms 23896 KB Output is correct
95 Correct 14 ms 23900 KB Output is correct
96 Correct 14 ms 23900 KB Output is correct
97 Correct 11 ms 23900 KB Output is correct
98 Correct 10 ms 23900 KB Output is correct
99 Correct 12 ms 24156 KB Output is correct
100 Correct 11 ms 24284 KB Output is correct
101 Correct 11 ms 24156 KB Output is correct
102 Correct 11 ms 24156 KB Output is correct
103 Correct 13 ms 24156 KB Output is correct
104 Correct 11 ms 24156 KB Output is correct
105 Correct 30 ms 28484 KB Output is correct
106 Correct 33 ms 28500 KB Output is correct
107 Correct 28 ms 28508 KB Output is correct
108 Correct 15 ms 24924 KB Output is correct
109 Correct 30 ms 24704 KB Output is correct
110 Correct 21 ms 24156 KB Output is correct
111 Correct 18 ms 24156 KB Output is correct
112 Correct 21 ms 24156 KB Output is correct
113 Correct 17 ms 24156 KB Output is correct
114 Correct 20 ms 25948 KB Output is correct
115 Correct 19 ms 25684 KB Output is correct
116 Correct 24 ms 26448 KB Output is correct
117 Correct 24 ms 25940 KB Output is correct
118 Correct 20 ms 26132 KB Output is correct
119 Correct 19 ms 25968 KB Output is correct
120 Correct 22 ms 27036 KB Output is correct
121 Correct 19 ms 24924 KB Output is correct
122 Correct 25 ms 27228 KB Output is correct
123 Correct 15 ms 24944 KB Output is correct
124 Correct 27 ms 27740 KB Output is correct
125 Correct 17 ms 25692 KB Output is correct
126 Correct 14 ms 24924 KB Output is correct
127 Correct 18 ms 25436 KB Output is correct
128 Correct 14 ms 24860 KB Output is correct
129 Correct 14 ms 24924 KB Output is correct
130 Correct 15 ms 24924 KB Output is correct
131 Correct 39 ms 25172 KB Output is correct
132 Correct 29 ms 24152 KB Output is correct
133 Correct 27 ms 24156 KB Output is correct
134 Correct 26 ms 24156 KB Output is correct
135 Correct 27 ms 24156 KB Output is correct
136 Correct 26 ms 26920 KB Output is correct
137 Correct 25 ms 26964 KB Output is correct
138 Correct 24 ms 26964 KB Output is correct
139 Correct 25 ms 26972 KB Output is correct
140 Correct 24 ms 26964 KB Output is correct
141 Correct 24 ms 26972 KB Output is correct
142 Correct 30 ms 29012 KB Output is correct
143 Correct 18 ms 25948 KB Output is correct
144 Correct 32 ms 29012 KB Output is correct
145 Correct 18 ms 25948 KB Output is correct
146 Correct 31 ms 29012 KB Output is correct
147 Correct 18 ms 25948 KB Output is correct
148 Correct 15 ms 25400 KB Output is correct
149 Correct 15 ms 25436 KB Output is correct
150 Correct 16 ms 25180 KB Output is correct
151 Correct 16 ms 25180 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 9 ms 23896 KB Output is correct
2 Correct 9 ms 23900 KB Output is correct
3 Correct 9 ms 23896 KB Output is correct
4 Correct 10 ms 23900 KB Output is correct
5 Correct 9 ms 23900 KB Output is correct
6 Correct 10 ms 23900 KB Output is correct
7 Correct 14 ms 23912 KB Output is correct
8 Correct 10 ms 23896 KB Output is correct
9 Correct 10 ms 23900 KB Output is correct
10 Correct 10 ms 23940 KB Output is correct
11 Correct 10 ms 23896 KB Output is correct
12 Correct 9 ms 23900 KB Output is correct
13 Correct 11 ms 23728 KB Output is correct
14 Correct 14 ms 23792 KB Output is correct
15 Correct 11 ms 23900 KB Output is correct
16 Correct 10 ms 23900 KB Output is correct
17 Correct 10 ms 24012 KB Output is correct
18 Correct 9 ms 24004 KB Output is correct
19 Correct 11 ms 23900 KB Output is correct
20 Correct 10 ms 23900 KB Output is correct
21 Correct 10 ms 23836 KB Output is correct
22 Correct 11 ms 23900 KB Output is correct
23 Correct 10 ms 23904 KB Output is correct
24 Correct 24 ms 28416 KB Output is correct
25 Correct 23 ms 28252 KB Output is correct
26 Correct 41 ms 28208 KB Output is correct
27 Correct 14 ms 24924 KB Output is correct
28 Correct 15 ms 24948 KB Output is correct
29 Correct 12 ms 24668 KB Output is correct
30 Correct 12 ms 24312 KB Output is correct
31 Correct 11 ms 24136 KB Output is correct
32 Correct 15 ms 24152 KB Output is correct
33 Correct 19 ms 26204 KB Output is correct
34 Correct 18 ms 26204 KB Output is correct
35 Correct 18 ms 26204 KB Output is correct
36 Correct 25 ms 26168 KB Output is correct
37 Correct 18 ms 26124 KB Output is correct
38 Correct 21 ms 26204 KB Output is correct
39 Correct 27 ms 28764 KB Output is correct
40 Correct 25 ms 28952 KB Output is correct
41 Correct 28 ms 28728 KB Output is correct
42 Correct 35 ms 29268 KB Output is correct
43 Correct 25 ms 27224 KB Output is correct
44 Correct 27 ms 27548 KB Output is correct
45 Correct 17 ms 25176 KB Output is correct
46 Correct 14 ms 24668 KB Output is correct
47 Correct 16 ms 25296 KB Output is correct
48 Correct 53 ms 36700 KB Output is correct
49 Correct 38 ms 31576 KB Output is correct
50 Correct 32 ms 33372 KB Output is correct
51 Correct 34 ms 33116 KB Output is correct
52 Correct 42 ms 32760 KB Output is correct
53 Correct 29 ms 30300 KB Output is correct
54 Correct 37 ms 29884 KB Output is correct
55 Correct 36 ms 29776 KB Output is correct
56 Correct 27 ms 27476 KB Output is correct
57 Correct 24 ms 25684 KB Output is correct
58 Correct 15 ms 25176 KB Output is correct
59 Correct 16 ms 25180 KB Output is correct
60 Correct 48 ms 38228 KB Output is correct
61 Correct 47 ms 38228 KB Output is correct
62 Correct 50 ms 38252 KB Output is correct
63 Correct 59 ms 38268 KB Output is correct
64 Correct 47 ms 38228 KB Output is correct
65 Correct 44 ms 38236 KB Output is correct
66 Correct 44 ms 34880 KB Output is correct
67 Correct 40 ms 34880 KB Output is correct
68 Correct 39 ms 34900 KB Output is correct
69 Correct 9 ms 23900 KB Output is correct
70 Correct 12 ms 23900 KB Output is correct
71 Correct 10 ms 23924 KB Output is correct
72 Correct 10 ms 23900 KB Output is correct
73 Correct 10 ms 23832 KB Output is correct
74 Correct 10 ms 23900 KB Output is correct
75 Correct 11 ms 23900 KB Output is correct
76 Correct 10 ms 23972 KB Output is correct
77 Correct 10 ms 23900 KB Output is correct
78 Correct 11 ms 23900 KB Output is correct
79 Correct 10 ms 23900 KB Output is correct
80 Correct 10 ms 23772 KB Output is correct
81 Correct 10 ms 23900 KB Output is correct
82 Correct 9 ms 23868 KB Output is correct
83 Correct 10 ms 23900 KB Output is correct
84 Correct 10 ms 23900 KB Output is correct
85 Correct 9 ms 23800 KB Output is correct
86 Correct 9 ms 23900 KB Output is correct
87 Correct 9 ms 23900 KB Output is correct
88 Correct 11 ms 23900 KB Output is correct
89 Correct 9 ms 23900 KB Output is correct
90 Correct 12 ms 23900 KB Output is correct
91 Correct 10 ms 23960 KB Output is correct
92 Correct 10 ms 23900 KB Output is correct
93 Correct 11 ms 23968 KB Output is correct
94 Correct 10 ms 23900 KB Output is correct
95 Correct 10 ms 23900 KB Output is correct
96 Correct 9 ms 23764 KB Output is correct
97 Correct 9 ms 23900 KB Output is correct
98 Correct 10 ms 23900 KB Output is correct
99 Correct 11 ms 23900 KB Output is correct
100 Correct 10 ms 23936 KB Output is correct
101 Correct 16 ms 23792 KB Output is correct
102 Correct 11 ms 23900 KB Output is correct
103 Correct 11 ms 23900 KB Output is correct
104 Correct 11 ms 23900 KB Output is correct
105 Correct 11 ms 23940 KB Output is correct
106 Correct 11 ms 23884 KB Output is correct
107 Correct 10 ms 23900 KB Output is correct
108 Correct 11 ms 23896 KB Output is correct
109 Correct 14 ms 23900 KB Output is correct
110 Correct 10 ms 23772 KB Output is correct
111 Correct 11 ms 23900 KB Output is correct
112 Correct 14 ms 24008 KB Output is correct
113 Correct 12 ms 24152 KB Output is correct
114 Correct 11 ms 24156 KB Output is correct
115 Correct 14 ms 23900 KB Output is correct
116 Correct 11 ms 24024 KB Output is correct
117 Correct 11 ms 24156 KB Output is correct
118 Correct 28 ms 27220 KB Output is correct
119 Correct 31 ms 27732 KB Output is correct
120 Correct 35 ms 28244 KB Output is correct
121 Correct 11 ms 23896 KB Output is correct
122 Correct 14 ms 23900 KB Output is correct
123 Correct 14 ms 23900 KB Output is correct
124 Correct 11 ms 23900 KB Output is correct
125 Correct 10 ms 23900 KB Output is correct
126 Correct 12 ms 24156 KB Output is correct
127 Correct 11 ms 24284 KB Output is correct
128 Correct 11 ms 24156 KB Output is correct
129 Correct 11 ms 24156 KB Output is correct
130 Correct 13 ms 24156 KB Output is correct
131 Correct 11 ms 24156 KB Output is correct
132 Correct 30 ms 28484 KB Output is correct
133 Correct 33 ms 28500 KB Output is correct
134 Correct 28 ms 28508 KB Output is correct
135 Correct 15 ms 24924 KB Output is correct
136 Correct 30 ms 24704 KB Output is correct
137 Correct 21 ms 24156 KB Output is correct
138 Correct 18 ms 24156 KB Output is correct
139 Correct 21 ms 24156 KB Output is correct
140 Correct 17 ms 24156 KB Output is correct
141 Correct 20 ms 25948 KB Output is correct
142 Correct 19 ms 25684 KB Output is correct
143 Correct 24 ms 26448 KB Output is correct
144 Correct 24 ms 25940 KB Output is correct
145 Correct 20 ms 26132 KB Output is correct
146 Correct 19 ms 25968 KB Output is correct
147 Correct 22 ms 27036 KB Output is correct
148 Correct 19 ms 24924 KB Output is correct
149 Correct 25 ms 27228 KB Output is correct
150 Correct 15 ms 24944 KB Output is correct
151 Correct 27 ms 27740 KB Output is correct
152 Correct 17 ms 25692 KB Output is correct
153 Correct 14 ms 24924 KB Output is correct
154 Correct 18 ms 25436 KB Output is correct
155 Correct 14 ms 24860 KB Output is correct
156 Correct 14 ms 24924 KB Output is correct
157 Correct 15 ms 24924 KB Output is correct
158 Correct 39 ms 25172 KB Output is correct
159 Correct 29 ms 24152 KB Output is correct
160 Correct 27 ms 24156 KB Output is correct
161 Correct 26 ms 24156 KB Output is correct
162 Correct 27 ms 24156 KB Output is correct
163 Correct 26 ms 26920 KB Output is correct
164 Correct 25 ms 26964 KB Output is correct
165 Correct 24 ms 26964 KB Output is correct
166 Correct 25 ms 26972 KB Output is correct
167 Correct 24 ms 26964 KB Output is correct
168 Correct 24 ms 26972 KB Output is correct
169 Correct 30 ms 29012 KB Output is correct
170 Correct 18 ms 25948 KB Output is correct
171 Correct 32 ms 29012 KB Output is correct
172 Correct 18 ms 25948 KB Output is correct
173 Correct 31 ms 29012 KB Output is correct
174 Correct 18 ms 25948 KB Output is correct
175 Correct 15 ms 25400 KB Output is correct
176 Correct 15 ms 25436 KB Output is correct
177 Correct 16 ms 25180 KB Output is correct
178 Correct 16 ms 25180 KB Output is correct
179 Correct 26 ms 27484 KB Output is correct
180 Correct 80 ms 27196 KB Output is correct
181 Correct 70 ms 24912 KB Output is correct
182 Correct 85 ms 25428 KB Output is correct
183 Correct 47 ms 24916 KB Output is correct
184 Correct 41 ms 24916 KB Output is correct
185 Correct 38 ms 30552 KB Output is correct
186 Correct 44 ms 32084 KB Output is correct
187 Correct 43 ms 31580 KB Output is correct
188 Correct 46 ms 28756 KB Output is correct
189 Correct 49 ms 32556 KB Output is correct
190 Correct 36 ms 29968 KB Output is correct
191 Correct 47 ms 32284 KB Output is correct
192 Correct 30 ms 27988 KB Output is correct
193 Correct 39 ms 30296 KB Output is correct
194 Correct 39 ms 29780 KB Output is correct
195 Correct 149 ms 29872 KB Output is correct
196 Correct 113 ms 25428 KB Output is correct
197 Correct 78 ms 25428 KB Output is correct
198 Correct 69 ms 25476 KB Output is correct
199 Correct 69 ms 25428 KB Output is correct
200 Correct 70 ms 38772 KB Output is correct
201 Correct 81 ms 38812 KB Output is correct
202 Correct 55 ms 38740 KB Output is correct
203 Correct 58 ms 38888 KB Output is correct
204 Correct 58 ms 38752 KB Output is correct
205 Correct 60 ms 38736 KB Output is correct
206 Correct 50 ms 35260 KB Output is correct
207 Correct 49 ms 36948 KB Output is correct
208 Correct 45 ms 35412 KB Output is correct
209 Correct 64 ms 36948 KB Output is correct
210 Correct 47 ms 35240 KB Output is correct
211 Correct 50 ms 37024 KB Output is correct
212 Correct 46 ms 36136 KB Output is correct
213 Correct 40 ms 32864 KB Output is correct
214 Correct 39 ms 32340 KB Output is correct
215 Correct 42 ms 32092 KB Output is correct