답안 #717251

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
717251 2023-04-01T17:49:05 Z LittleCube 벽 칠하기 (APIO20_paint) C++14
100 / 100
1248 ms 265448 KB
#pragma GCC optimize("Ofast,unroll-loops")
#include "paint.h"
#ifndef EVAL
#include "grader.cpp"
#endif
#include <bits/stdc++.h>
#define pii pair<int, int>
#define F first
#define S second
using namespace std;

vector<int> acc[100000];
vector<int> match[50000];
int minimumInstructions(
    int N, int M, int K, vector<int> C, vector<int> A, vector<vector<int>> B)
{
  for (int i = 0; i < M; i++)
    for (int j : B[i])
      acc[j].emplace_back(i);
  for (int i = 0; i < N; i++)
    for (int j : acc[C[i]])
      match[((j - i) % M + M) % M].emplace_back(i);

  vector<int> cover(N, 0), dp(N, 0);
  for (int x = 0; x < M; x++)
  {
    for (int l = 0; l + M - 1 < match[x].size(); l++)
      if (match[x][l] + M - 1 == match[x][l + M - 1])
      {
        //cerr << x << ' ' << match[x][l] << '\n';
        cover[match[x][l]] = 1;
      }
  }
  for (int i = 0; i < N; i++)
    dp[i] = (cover[i] ? i : (i ? dp[i - 1] : -1e9));

  int cur = 0, ans = 0;
  while (cur < N)
  {
    if (dp[cur] + M <= cur)
      break;
    cur = max(cur, dp[cur] + M), ans++;
  }
  return (cur < N ? -1 : ans);
}

Compilation message

paint.cpp: In function 'int minimumInstructions(int, int, int, std::vector<int>, std::vector<int>, std::vector<std::vector<int> >)':
paint.cpp:27:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   27 |     for (int l = 0; l + M - 1 < match[x].size(); l++)
      |                     ~~~~~~~~~~^~~~~~~~~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 3796 KB Output is correct
2 Correct 3 ms 3796 KB Output is correct
3 Correct 2 ms 3796 KB Output is correct
4 Correct 2 ms 3796 KB Output is correct
5 Correct 2 ms 3796 KB Output is correct
6 Correct 2 ms 3796 KB Output is correct
7 Correct 2 ms 3796 KB Output is correct
8 Correct 3 ms 3820 KB Output is correct
9 Correct 3 ms 3796 KB Output is correct
10 Correct 3 ms 3796 KB Output is correct
11 Correct 2 ms 3796 KB Output is correct
12 Correct 3 ms 3828 KB Output is correct
13 Correct 3 ms 3832 KB Output is correct
14 Correct 3 ms 3796 KB Output is correct
15 Correct 4 ms 3796 KB Output is correct
16 Correct 3 ms 3796 KB Output is correct
17 Correct 3 ms 3796 KB Output is correct
18 Correct 3 ms 3796 KB Output is correct
19 Correct 3 ms 3832 KB Output is correct
20 Correct 3 ms 3796 KB Output is correct
21 Correct 3 ms 3796 KB Output is correct
22 Correct 21 ms 8280 KB Output is correct
23 Correct 20 ms 8240 KB Output is correct
24 Correct 20 ms 8268 KB Output is correct
25 Correct 5 ms 4220 KB Output is correct
26 Correct 5 ms 4192 KB Output is correct
27 Correct 5 ms 4180 KB Output is correct
28 Correct 5 ms 4208 KB Output is correct
29 Correct 6 ms 4308 KB Output is correct
30 Correct 5 ms 4180 KB Output is correct
31 Correct 12 ms 5300 KB Output is correct
32 Correct 11 ms 5332 KB Output is correct
33 Correct 11 ms 5292 KB Output is correct
34 Correct 10 ms 5288 KB Output is correct
35 Correct 13 ms 5328 KB Output is correct
36 Correct 9 ms 5332 KB Output is correct
37 Correct 23 ms 9036 KB Output is correct
38 Correct 30 ms 8996 KB Output is correct
39 Correct 27 ms 9028 KB Output is correct
40 Correct 18 ms 5836 KB Output is correct
41 Correct 9 ms 5200 KB Output is correct
42 Correct 15 ms 6128 KB Output is correct
43 Correct 10 ms 5352 KB Output is correct
44 Correct 10 ms 5200 KB Output is correct
45 Correct 14 ms 6124 KB Output is correct
46 Correct 45 ms 15024 KB Output is correct
47 Correct 28 ms 10232 KB Output is correct
48 Correct 41 ms 12860 KB Output is correct
49 Correct 54 ms 13772 KB Output is correct
50 Correct 48 ms 13596 KB Output is correct
51 Correct 42 ms 11112 KB Output is correct
52 Correct 18 ms 6068 KB Output is correct
53 Correct 15 ms 6000 KB Output is correct
54 Correct 14 ms 6008 KB Output is correct
55 Correct 12 ms 6212 KB Output is correct
56 Correct 12 ms 6100 KB Output is correct
57 Correct 14 ms 6228 KB Output is correct
58 Correct 49 ms 16124 KB Output is correct
59 Correct 49 ms 16068 KB Output is correct
60 Correct 54 ms 16068 KB Output is correct
61 Correct 51 ms 16028 KB Output is correct
62 Correct 48 ms 16068 KB Output is correct
63 Correct 48 ms 16032 KB Output is correct
64 Correct 64 ms 16028 KB Output is correct
65 Correct 89 ms 16036 KB Output is correct
66 Correct 71 ms 16084 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 3796 KB Output is correct
2 Correct 3 ms 3796 KB Output is correct
3 Correct 2 ms 3796 KB Output is correct
4 Correct 2 ms 3796 KB Output is correct
5 Correct 2 ms 3796 KB Output is correct
6 Correct 2 ms 3796 KB Output is correct
7 Correct 2 ms 3796 KB Output is correct
8 Correct 3 ms 3820 KB Output is correct
9 Correct 3 ms 3796 KB Output is correct
10 Correct 3 ms 3796 KB Output is correct
11 Correct 2 ms 3796 KB Output is correct
12 Correct 3 ms 3828 KB Output is correct
13 Correct 3 ms 3832 KB Output is correct
14 Correct 3 ms 3796 KB Output is correct
15 Correct 4 ms 3796 KB Output is correct
16 Correct 3 ms 3796 KB Output is correct
17 Correct 3 ms 3796 KB Output is correct
18 Correct 3 ms 3796 KB Output is correct
19 Correct 3 ms 3832 KB Output is correct
20 Correct 3 ms 3796 KB Output is correct
21 Correct 3 ms 3796 KB Output is correct
22 Correct 2 ms 3796 KB Output is correct
23 Correct 3 ms 3796 KB Output is correct
24 Correct 3 ms 3796 KB Output is correct
25 Correct 2 ms 3820 KB Output is correct
26 Correct 2 ms 3796 KB Output is correct
27 Correct 3 ms 3796 KB Output is correct
28 Correct 3 ms 3796 KB Output is correct
29 Correct 3 ms 3796 KB Output is correct
30 Correct 3 ms 3796 KB Output is correct
31 Correct 3 ms 3796 KB Output is correct
32 Correct 3 ms 3796 KB Output is correct
33 Correct 3 ms 3796 KB Output is correct
34 Correct 3 ms 3832 KB Output is correct
35 Correct 3 ms 3796 KB Output is correct
36 Correct 3 ms 3828 KB Output is correct
37 Correct 3 ms 3824 KB Output is correct
38 Correct 3 ms 3796 KB Output is correct
39 Correct 3 ms 3820 KB Output is correct
40 Correct 3 ms 3796 KB Output is correct
41 Correct 3 ms 3796 KB Output is correct
42 Correct 3 ms 3796 KB Output is correct
43 Correct 3 ms 3796 KB Output is correct
44 Correct 2 ms 3788 KB Output is correct
45 Correct 3 ms 3824 KB Output is correct
46 Correct 3 ms 3824 KB Output is correct
47 Correct 3 ms 3796 KB Output is correct
48 Correct 3 ms 3828 KB Output is correct
49 Correct 3 ms 3796 KB Output is correct
50 Correct 3 ms 3796 KB Output is correct
51 Correct 3 ms 3832 KB Output is correct
52 Correct 3 ms 3824 KB Output is correct
53 Correct 3 ms 3796 KB Output is correct
54 Correct 3 ms 3796 KB Output is correct
55 Correct 3 ms 3780 KB Output is correct
56 Correct 3 ms 3796 KB Output is correct
57 Correct 3 ms 3796 KB Output is correct
58 Correct 4 ms 3924 KB Output is correct
59 Correct 2 ms 3796 KB Output is correct
60 Correct 3 ms 3796 KB Output is correct
61 Correct 3 ms 3796 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 3796 KB Output is correct
2 Correct 3 ms 3796 KB Output is correct
3 Correct 2 ms 3796 KB Output is correct
4 Correct 3 ms 3796 KB Output is correct
5 Correct 2 ms 3796 KB Output is correct
6 Correct 2 ms 3796 KB Output is correct
7 Correct 2 ms 3796 KB Output is correct
8 Correct 2 ms 3796 KB Output is correct
9 Correct 2 ms 3796 KB Output is correct
10 Correct 3 ms 3820 KB Output is correct
11 Correct 3 ms 3796 KB Output is correct
12 Correct 3 ms 3796 KB Output is correct
13 Correct 2 ms 3796 KB Output is correct
14 Correct 3 ms 3828 KB Output is correct
15 Correct 3 ms 3832 KB Output is correct
16 Correct 3 ms 3796 KB Output is correct
17 Correct 4 ms 3796 KB Output is correct
18 Correct 3 ms 3796 KB Output is correct
19 Correct 3 ms 3796 KB Output is correct
20 Correct 3 ms 3796 KB Output is correct
21 Correct 3 ms 3832 KB Output is correct
22 Correct 3 ms 3796 KB Output is correct
23 Correct 3 ms 3796 KB Output is correct
24 Correct 21 ms 8280 KB Output is correct
25 Correct 20 ms 8240 KB Output is correct
26 Correct 20 ms 8268 KB Output is correct
27 Correct 3 ms 3796 KB Output is correct
28 Correct 2 ms 3820 KB Output is correct
29 Correct 2 ms 3796 KB Output is correct
30 Correct 3 ms 3796 KB Output is correct
31 Correct 3 ms 3796 KB Output is correct
32 Correct 3 ms 3796 KB Output is correct
33 Correct 3 ms 3796 KB Output is correct
34 Correct 3 ms 3796 KB Output is correct
35 Correct 3 ms 3796 KB Output is correct
36 Correct 3 ms 3796 KB Output is correct
37 Correct 3 ms 3832 KB Output is correct
38 Correct 3 ms 3796 KB Output is correct
39 Correct 3 ms 3828 KB Output is correct
40 Correct 3 ms 3824 KB Output is correct
41 Correct 3 ms 3796 KB Output is correct
42 Correct 3 ms 3820 KB Output is correct
43 Correct 3 ms 3796 KB Output is correct
44 Correct 3 ms 3796 KB Output is correct
45 Correct 3 ms 3796 KB Output is correct
46 Correct 3 ms 3796 KB Output is correct
47 Correct 2 ms 3788 KB Output is correct
48 Correct 3 ms 3824 KB Output is correct
49 Correct 3 ms 3824 KB Output is correct
50 Correct 3 ms 3796 KB Output is correct
51 Correct 3 ms 3828 KB Output is correct
52 Correct 3 ms 3796 KB Output is correct
53 Correct 3 ms 3796 KB Output is correct
54 Correct 3 ms 3832 KB Output is correct
55 Correct 3 ms 3824 KB Output is correct
56 Correct 3 ms 3796 KB Output is correct
57 Correct 3 ms 3796 KB Output is correct
58 Correct 3 ms 3780 KB Output is correct
59 Correct 3 ms 3796 KB Output is correct
60 Correct 3 ms 3796 KB Output is correct
61 Correct 4 ms 3924 KB Output is correct
62 Correct 2 ms 3796 KB Output is correct
63 Correct 3 ms 3796 KB Output is correct
64 Correct 3 ms 3796 KB Output is correct
65 Correct 4 ms 4052 KB Output is correct
66 Correct 3 ms 3924 KB Output is correct
67 Correct 4 ms 4052 KB Output is correct
68 Correct 3 ms 3924 KB Output is correct
69 Correct 4 ms 4052 KB Output is correct
70 Correct 5 ms 4052 KB Output is correct
71 Correct 4 ms 4088 KB Output is correct
72 Correct 4 ms 4088 KB Output is correct
73 Correct 4 ms 4000 KB Output is correct
74 Correct 4 ms 4052 KB Output is correct
75 Correct 4 ms 4052 KB Output is correct
76 Correct 26 ms 7052 KB Output is correct
77 Correct 28 ms 7552 KB Output is correct
78 Correct 26 ms 8096 KB Output is correct
79 Correct 4 ms 4180 KB Output is correct
80 Correct 4 ms 4216 KB Output is correct
81 Correct 5 ms 4180 KB Output is correct
82 Correct 4 ms 4208 KB Output is correct
83 Correct 4 ms 4260 KB Output is correct
84 Correct 4 ms 4180 KB Output is correct
85 Correct 5 ms 4212 KB Output is correct
86 Correct 6 ms 4176 KB Output is correct
87 Correct 5 ms 4180 KB Output is correct
88 Correct 5 ms 4088 KB Output is correct
89 Correct 7 ms 4180 KB Output is correct
90 Correct 38 ms 8360 KB Output is correct
91 Correct 27 ms 8404 KB Output is correct
92 Correct 30 ms 8408 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 3796 KB Output is correct
2 Correct 3 ms 3796 KB Output is correct
3 Correct 2 ms 3796 KB Output is correct
4 Correct 3 ms 3796 KB Output is correct
5 Correct 2 ms 3796 KB Output is correct
6 Correct 2 ms 3796 KB Output is correct
7 Correct 2 ms 3796 KB Output is correct
8 Correct 2 ms 3796 KB Output is correct
9 Correct 2 ms 3796 KB Output is correct
10 Correct 3 ms 3820 KB Output is correct
11 Correct 3 ms 3796 KB Output is correct
12 Correct 3 ms 3796 KB Output is correct
13 Correct 2 ms 3796 KB Output is correct
14 Correct 3 ms 3828 KB Output is correct
15 Correct 3 ms 3832 KB Output is correct
16 Correct 3 ms 3796 KB Output is correct
17 Correct 4 ms 3796 KB Output is correct
18 Correct 3 ms 3796 KB Output is correct
19 Correct 3 ms 3796 KB Output is correct
20 Correct 3 ms 3796 KB Output is correct
21 Correct 3 ms 3832 KB Output is correct
22 Correct 3 ms 3796 KB Output is correct
23 Correct 3 ms 3796 KB Output is correct
24 Correct 21 ms 8280 KB Output is correct
25 Correct 20 ms 8240 KB Output is correct
26 Correct 20 ms 8268 KB Output is correct
27 Correct 5 ms 4220 KB Output is correct
28 Correct 5 ms 4192 KB Output is correct
29 Correct 5 ms 4180 KB Output is correct
30 Correct 5 ms 4208 KB Output is correct
31 Correct 6 ms 4308 KB Output is correct
32 Correct 5 ms 4180 KB Output is correct
33 Correct 12 ms 5300 KB Output is correct
34 Correct 11 ms 5332 KB Output is correct
35 Correct 11 ms 5292 KB Output is correct
36 Correct 10 ms 5288 KB Output is correct
37 Correct 13 ms 5328 KB Output is correct
38 Correct 9 ms 5332 KB Output is correct
39 Correct 23 ms 9036 KB Output is correct
40 Correct 30 ms 8996 KB Output is correct
41 Correct 27 ms 9028 KB Output is correct
42 Correct 3 ms 3796 KB Output is correct
43 Correct 2 ms 3820 KB Output is correct
44 Correct 2 ms 3796 KB Output is correct
45 Correct 3 ms 3796 KB Output is correct
46 Correct 3 ms 3796 KB Output is correct
47 Correct 3 ms 3796 KB Output is correct
48 Correct 3 ms 3796 KB Output is correct
49 Correct 3 ms 3796 KB Output is correct
50 Correct 3 ms 3796 KB Output is correct
51 Correct 3 ms 3796 KB Output is correct
52 Correct 3 ms 3832 KB Output is correct
53 Correct 3 ms 3796 KB Output is correct
54 Correct 3 ms 3828 KB Output is correct
55 Correct 3 ms 3824 KB Output is correct
56 Correct 3 ms 3796 KB Output is correct
57 Correct 3 ms 3820 KB Output is correct
58 Correct 3 ms 3796 KB Output is correct
59 Correct 3 ms 3796 KB Output is correct
60 Correct 3 ms 3796 KB Output is correct
61 Correct 3 ms 3796 KB Output is correct
62 Correct 2 ms 3788 KB Output is correct
63 Correct 3 ms 3824 KB Output is correct
64 Correct 3 ms 3824 KB Output is correct
65 Correct 3 ms 3796 KB Output is correct
66 Correct 3 ms 3828 KB Output is correct
67 Correct 3 ms 3796 KB Output is correct
68 Correct 3 ms 3796 KB Output is correct
69 Correct 3 ms 3832 KB Output is correct
70 Correct 3 ms 3824 KB Output is correct
71 Correct 3 ms 3796 KB Output is correct
72 Correct 3 ms 3796 KB Output is correct
73 Correct 3 ms 3780 KB Output is correct
74 Correct 3 ms 3796 KB Output is correct
75 Correct 3 ms 3796 KB Output is correct
76 Correct 4 ms 3924 KB Output is correct
77 Correct 2 ms 3796 KB Output is correct
78 Correct 3 ms 3796 KB Output is correct
79 Correct 3 ms 3796 KB Output is correct
80 Correct 4 ms 4052 KB Output is correct
81 Correct 3 ms 3924 KB Output is correct
82 Correct 4 ms 4052 KB Output is correct
83 Correct 3 ms 3924 KB Output is correct
84 Correct 4 ms 4052 KB Output is correct
85 Correct 5 ms 4052 KB Output is correct
86 Correct 4 ms 4088 KB Output is correct
87 Correct 4 ms 4088 KB Output is correct
88 Correct 4 ms 4000 KB Output is correct
89 Correct 4 ms 4052 KB Output is correct
90 Correct 4 ms 4052 KB Output is correct
91 Correct 26 ms 7052 KB Output is correct
92 Correct 28 ms 7552 KB Output is correct
93 Correct 26 ms 8096 KB Output is correct
94 Correct 4 ms 4180 KB Output is correct
95 Correct 4 ms 4216 KB Output is correct
96 Correct 5 ms 4180 KB Output is correct
97 Correct 4 ms 4208 KB Output is correct
98 Correct 4 ms 4260 KB Output is correct
99 Correct 4 ms 4180 KB Output is correct
100 Correct 5 ms 4212 KB Output is correct
101 Correct 6 ms 4176 KB Output is correct
102 Correct 5 ms 4180 KB Output is correct
103 Correct 5 ms 4088 KB Output is correct
104 Correct 7 ms 4180 KB Output is correct
105 Correct 38 ms 8360 KB Output is correct
106 Correct 27 ms 8404 KB Output is correct
107 Correct 30 ms 8408 KB Output is correct
108 Correct 5 ms 4308 KB Output is correct
109 Correct 171 ms 43108 KB Output is correct
110 Correct 86 ms 26484 KB Output is correct
111 Correct 66 ms 25016 KB Output is correct
112 Correct 77 ms 27416 KB Output is correct
113 Correct 53 ms 20404 KB Output is correct
114 Correct 13 ms 5772 KB Output is correct
115 Correct 14 ms 5756 KB Output is correct
116 Correct 18 ms 6272 KB Output is correct
117 Correct 20 ms 5752 KB Output is correct
118 Correct 15 ms 5972 KB Output is correct
119 Correct 14 ms 5568 KB Output is correct
120 Correct 19 ms 7124 KB Output is correct
121 Correct 7 ms 4728 KB Output is correct
122 Correct 33 ms 7372 KB Output is correct
123 Correct 6 ms 4564 KB Output is correct
124 Correct 26 ms 8084 KB Output is correct
125 Correct 12 ms 5076 KB Output is correct
126 Correct 13 ms 5076 KB Output is correct
127 Correct 11 ms 5332 KB Output is correct
128 Correct 9 ms 4948 KB Output is correct
129 Correct 8 ms 4988 KB Output is correct
130 Correct 5 ms 4308 KB Output is correct
131 Correct 240 ms 70848 KB Output is correct
132 Correct 164 ms 53088 KB Output is correct
133 Correct 130 ms 36520 KB Output is correct
134 Correct 115 ms 37368 KB Output is correct
135 Correct 104 ms 37356 KB Output is correct
136 Correct 19 ms 6484 KB Output is correct
137 Correct 21 ms 6384 KB Output is correct
138 Correct 19 ms 6420 KB Output is correct
139 Correct 21 ms 6524 KB Output is correct
140 Correct 17 ms 6484 KB Output is correct
141 Correct 17 ms 6436 KB Output is correct
142 Correct 31 ms 9268 KB Output is correct
143 Correct 10 ms 5372 KB Output is correct
144 Correct 33 ms 9236 KB Output is correct
145 Correct 11 ms 5368 KB Output is correct
146 Correct 30 ms 9200 KB Output is correct
147 Correct 11 ms 5332 KB Output is correct
148 Correct 13 ms 5588 KB Output is correct
149 Correct 13 ms 5460 KB Output is correct
150 Correct 10 ms 5476 KB Output is correct
151 Correct 10 ms 5332 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 3796 KB Output is correct
2 Correct 3 ms 3796 KB Output is correct
3 Correct 2 ms 3796 KB Output is correct
4 Correct 3 ms 3796 KB Output is correct
5 Correct 2 ms 3796 KB Output is correct
6 Correct 2 ms 3796 KB Output is correct
7 Correct 2 ms 3796 KB Output is correct
8 Correct 2 ms 3796 KB Output is correct
9 Correct 2 ms 3796 KB Output is correct
10 Correct 3 ms 3820 KB Output is correct
11 Correct 3 ms 3796 KB Output is correct
12 Correct 3 ms 3796 KB Output is correct
13 Correct 2 ms 3796 KB Output is correct
14 Correct 3 ms 3828 KB Output is correct
15 Correct 3 ms 3832 KB Output is correct
16 Correct 3 ms 3796 KB Output is correct
17 Correct 4 ms 3796 KB Output is correct
18 Correct 3 ms 3796 KB Output is correct
19 Correct 3 ms 3796 KB Output is correct
20 Correct 3 ms 3796 KB Output is correct
21 Correct 3 ms 3832 KB Output is correct
22 Correct 3 ms 3796 KB Output is correct
23 Correct 3 ms 3796 KB Output is correct
24 Correct 21 ms 8280 KB Output is correct
25 Correct 20 ms 8240 KB Output is correct
26 Correct 20 ms 8268 KB Output is correct
27 Correct 5 ms 4220 KB Output is correct
28 Correct 5 ms 4192 KB Output is correct
29 Correct 5 ms 4180 KB Output is correct
30 Correct 5 ms 4208 KB Output is correct
31 Correct 6 ms 4308 KB Output is correct
32 Correct 5 ms 4180 KB Output is correct
33 Correct 12 ms 5300 KB Output is correct
34 Correct 11 ms 5332 KB Output is correct
35 Correct 11 ms 5292 KB Output is correct
36 Correct 10 ms 5288 KB Output is correct
37 Correct 13 ms 5328 KB Output is correct
38 Correct 9 ms 5332 KB Output is correct
39 Correct 23 ms 9036 KB Output is correct
40 Correct 30 ms 8996 KB Output is correct
41 Correct 27 ms 9028 KB Output is correct
42 Correct 18 ms 5836 KB Output is correct
43 Correct 9 ms 5200 KB Output is correct
44 Correct 15 ms 6128 KB Output is correct
45 Correct 10 ms 5352 KB Output is correct
46 Correct 10 ms 5200 KB Output is correct
47 Correct 14 ms 6124 KB Output is correct
48 Correct 45 ms 15024 KB Output is correct
49 Correct 28 ms 10232 KB Output is correct
50 Correct 41 ms 12860 KB Output is correct
51 Correct 54 ms 13772 KB Output is correct
52 Correct 48 ms 13596 KB Output is correct
53 Correct 42 ms 11112 KB Output is correct
54 Correct 18 ms 6068 KB Output is correct
55 Correct 15 ms 6000 KB Output is correct
56 Correct 14 ms 6008 KB Output is correct
57 Correct 12 ms 6212 KB Output is correct
58 Correct 12 ms 6100 KB Output is correct
59 Correct 14 ms 6228 KB Output is correct
60 Correct 49 ms 16124 KB Output is correct
61 Correct 49 ms 16068 KB Output is correct
62 Correct 54 ms 16068 KB Output is correct
63 Correct 51 ms 16028 KB Output is correct
64 Correct 48 ms 16068 KB Output is correct
65 Correct 48 ms 16032 KB Output is correct
66 Correct 64 ms 16028 KB Output is correct
67 Correct 89 ms 16036 KB Output is correct
68 Correct 71 ms 16084 KB Output is correct
69 Correct 3 ms 3796 KB Output is correct
70 Correct 2 ms 3820 KB Output is correct
71 Correct 2 ms 3796 KB Output is correct
72 Correct 3 ms 3796 KB Output is correct
73 Correct 3 ms 3796 KB Output is correct
74 Correct 3 ms 3796 KB Output is correct
75 Correct 3 ms 3796 KB Output is correct
76 Correct 3 ms 3796 KB Output is correct
77 Correct 3 ms 3796 KB Output is correct
78 Correct 3 ms 3796 KB Output is correct
79 Correct 3 ms 3832 KB Output is correct
80 Correct 3 ms 3796 KB Output is correct
81 Correct 3 ms 3828 KB Output is correct
82 Correct 3 ms 3824 KB Output is correct
83 Correct 3 ms 3796 KB Output is correct
84 Correct 3 ms 3820 KB Output is correct
85 Correct 3 ms 3796 KB Output is correct
86 Correct 3 ms 3796 KB Output is correct
87 Correct 3 ms 3796 KB Output is correct
88 Correct 3 ms 3796 KB Output is correct
89 Correct 2 ms 3788 KB Output is correct
90 Correct 3 ms 3824 KB Output is correct
91 Correct 3 ms 3824 KB Output is correct
92 Correct 3 ms 3796 KB Output is correct
93 Correct 3 ms 3828 KB Output is correct
94 Correct 3 ms 3796 KB Output is correct
95 Correct 3 ms 3796 KB Output is correct
96 Correct 3 ms 3832 KB Output is correct
97 Correct 3 ms 3824 KB Output is correct
98 Correct 3 ms 3796 KB Output is correct
99 Correct 3 ms 3796 KB Output is correct
100 Correct 3 ms 3780 KB Output is correct
101 Correct 3 ms 3796 KB Output is correct
102 Correct 3 ms 3796 KB Output is correct
103 Correct 4 ms 3924 KB Output is correct
104 Correct 2 ms 3796 KB Output is correct
105 Correct 3 ms 3796 KB Output is correct
106 Correct 3 ms 3796 KB Output is correct
107 Correct 4 ms 4052 KB Output is correct
108 Correct 3 ms 3924 KB Output is correct
109 Correct 4 ms 4052 KB Output is correct
110 Correct 3 ms 3924 KB Output is correct
111 Correct 4 ms 4052 KB Output is correct
112 Correct 5 ms 4052 KB Output is correct
113 Correct 4 ms 4088 KB Output is correct
114 Correct 4 ms 4088 KB Output is correct
115 Correct 4 ms 4000 KB Output is correct
116 Correct 4 ms 4052 KB Output is correct
117 Correct 4 ms 4052 KB Output is correct
118 Correct 26 ms 7052 KB Output is correct
119 Correct 28 ms 7552 KB Output is correct
120 Correct 26 ms 8096 KB Output is correct
121 Correct 4 ms 4180 KB Output is correct
122 Correct 4 ms 4216 KB Output is correct
123 Correct 5 ms 4180 KB Output is correct
124 Correct 4 ms 4208 KB Output is correct
125 Correct 4 ms 4260 KB Output is correct
126 Correct 4 ms 4180 KB Output is correct
127 Correct 5 ms 4212 KB Output is correct
128 Correct 6 ms 4176 KB Output is correct
129 Correct 5 ms 4180 KB Output is correct
130 Correct 5 ms 4088 KB Output is correct
131 Correct 7 ms 4180 KB Output is correct
132 Correct 38 ms 8360 KB Output is correct
133 Correct 27 ms 8404 KB Output is correct
134 Correct 30 ms 8408 KB Output is correct
135 Correct 5 ms 4308 KB Output is correct
136 Correct 171 ms 43108 KB Output is correct
137 Correct 86 ms 26484 KB Output is correct
138 Correct 66 ms 25016 KB Output is correct
139 Correct 77 ms 27416 KB Output is correct
140 Correct 53 ms 20404 KB Output is correct
141 Correct 13 ms 5772 KB Output is correct
142 Correct 14 ms 5756 KB Output is correct
143 Correct 18 ms 6272 KB Output is correct
144 Correct 20 ms 5752 KB Output is correct
145 Correct 15 ms 5972 KB Output is correct
146 Correct 14 ms 5568 KB Output is correct
147 Correct 19 ms 7124 KB Output is correct
148 Correct 7 ms 4728 KB Output is correct
149 Correct 33 ms 7372 KB Output is correct
150 Correct 6 ms 4564 KB Output is correct
151 Correct 26 ms 8084 KB Output is correct
152 Correct 12 ms 5076 KB Output is correct
153 Correct 13 ms 5076 KB Output is correct
154 Correct 11 ms 5332 KB Output is correct
155 Correct 9 ms 4948 KB Output is correct
156 Correct 8 ms 4988 KB Output is correct
157 Correct 5 ms 4308 KB Output is correct
158 Correct 240 ms 70848 KB Output is correct
159 Correct 164 ms 53088 KB Output is correct
160 Correct 130 ms 36520 KB Output is correct
161 Correct 115 ms 37368 KB Output is correct
162 Correct 104 ms 37356 KB Output is correct
163 Correct 19 ms 6484 KB Output is correct
164 Correct 21 ms 6384 KB Output is correct
165 Correct 19 ms 6420 KB Output is correct
166 Correct 21 ms 6524 KB Output is correct
167 Correct 17 ms 6484 KB Output is correct
168 Correct 17 ms 6436 KB Output is correct
169 Correct 31 ms 9268 KB Output is correct
170 Correct 10 ms 5372 KB Output is correct
171 Correct 33 ms 9236 KB Output is correct
172 Correct 11 ms 5368 KB Output is correct
173 Correct 30 ms 9200 KB Output is correct
174 Correct 11 ms 5332 KB Output is correct
175 Correct 13 ms 5588 KB Output is correct
176 Correct 13 ms 5460 KB Output is correct
177 Correct 10 ms 5476 KB Output is correct
178 Correct 10 ms 5332 KB Output is correct
179 Correct 10 ms 5608 KB Output is correct
180 Correct 513 ms 111580 KB Output is correct
181 Correct 525 ms 144948 KB Output is correct
182 Correct 673 ms 179016 KB Output is correct
183 Correct 326 ms 103416 KB Output is correct
184 Correct 274 ms 78092 KB Output is correct
185 Correct 32 ms 8868 KB Output is correct
186 Correct 28 ms 10320 KB Output is correct
187 Correct 33 ms 9840 KB Output is correct
188 Correct 36 ms 9804 KB Output is correct
189 Correct 34 ms 9784 KB Output is correct
190 Correct 47 ms 11344 KB Output is correct
191 Correct 43 ms 10636 KB Output is correct
192 Correct 39 ms 8540 KB Output is correct
193 Correct 35 ms 8160 KB Output is correct
194 Correct 15 ms 6600 KB Output is correct
195 Correct 1248 ms 265448 KB Output is correct
196 Correct 824 ms 206468 KB Output is correct
197 Correct 695 ms 193896 KB Output is correct
198 Correct 575 ms 160248 KB Output is correct
199 Correct 544 ms 164108 KB Output is correct
200 Correct 71 ms 17228 KB Output is correct
201 Correct 84 ms 17200 KB Output is correct
202 Correct 64 ms 17232 KB Output is correct
203 Correct 63 ms 17240 KB Output is correct
204 Correct 68 ms 17224 KB Output is correct
205 Correct 69 ms 17232 KB Output is correct
206 Correct 100 ms 16800 KB Output is correct
207 Correct 67 ms 16244 KB Output is correct
208 Correct 72 ms 16884 KB Output is correct
209 Correct 65 ms 16212 KB Output is correct
210 Correct 86 ms 16828 KB Output is correct
211 Correct 67 ms 16224 KB Output is correct
212 Correct 53 ms 16624 KB Output is correct
213 Correct 50 ms 13684 KB Output is correct
214 Correct 59 ms 13328 KB Output is correct
215 Correct 63 ms 13108 KB Output is correct