답안 #1000195

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1000195 2024-06-17T02:19:43 Z abczz 벽 칠하기 (APIO20_paint) C++17
40 / 100
601 ms 524288 KB
#include "paint.h"
#include <iostream>
#include <vector>
#include <unordered_map>
#include <queue>
#include <array>
#include <algorithm>
#define ll int

using namespace std;

unordered_map <ll, ll> dp[100000];
ll p = -1;
vector <ll> color[100000], V;
bool X[100000];
int minimumInstructions(
    int N, int M, int K, std::vector<int> C,
    std::vector<int> A, std::vector<std::vector<int>> B) {
  for (int i=0; i<M; ++i) {
    for (int j=0; j<A[i]; ++j) {
      color[B[i][j]].push_back(i);
    }
  }
  for (int i=0; i<N; ++i) {
    for (auto u : color[C[i]]) {
      dp[i][u] = (i ? dp[i-1][(u+M-1)%M] : 0) + 1;
      if (dp[i][u] >= M) X[i-M+1] = 1;
    }
  }
  for (int i=0; i<N; ++i) {
    if (X[i]) V.push_back(i);
  }
  p = 0;
  int f = 0;
  while (p < N) {
    auto it = lower_bound(V.begin(), V.end(), p+1);
    if (it == V.begin()) return -1;
    it = prev(it);
    if (*it+M <= p) return -1;
    p = *it+M;
    ++f;
  }
  return f;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 8032 KB Output is correct
2 Correct 2 ms 8032 KB Output is correct
3 Correct 2 ms 8028 KB Output is correct
4 Correct 2 ms 8028 KB Output is correct
5 Correct 2 ms 8028 KB Output is correct
6 Correct 2 ms 8028 KB Output is correct
7 Correct 2 ms 8284 KB Output is correct
8 Correct 2 ms 8272 KB Output is correct
9 Correct 2 ms 8284 KB Output is correct
10 Correct 2 ms 8288 KB Output is correct
11 Correct 2 ms 8272 KB Output is correct
12 Correct 2 ms 8284 KB Output is correct
13 Correct 2 ms 8284 KB Output is correct
14 Correct 2 ms 8284 KB Output is correct
15 Correct 2 ms 8280 KB Output is correct
16 Correct 2 ms 8284 KB Output is correct
17 Correct 2 ms 8284 KB Output is correct
18 Correct 2 ms 8284 KB Output is correct
19 Correct 2 ms 8284 KB Output is correct
20 Correct 2 ms 8284 KB Output is correct
21 Correct 2 ms 8280 KB Output is correct
22 Correct 16 ms 12692 KB Output is correct
23 Correct 14 ms 12636 KB Output is correct
24 Correct 15 ms 12632 KB Output is correct
25 Correct 10 ms 11356 KB Output is correct
26 Correct 10 ms 11356 KB Output is correct
27 Correct 12 ms 11592 KB Output is correct
28 Correct 10 ms 11612 KB Output is correct
29 Correct 6 ms 11608 KB Output is correct
30 Correct 7 ms 11612 KB Output is correct
31 Correct 10 ms 12376 KB Output is correct
32 Correct 9 ms 12380 KB Output is correct
33 Correct 12 ms 12560 KB Output is correct
34 Correct 10 ms 12380 KB Output is correct
35 Correct 10 ms 12560 KB Output is correct
36 Correct 10 ms 12556 KB Output is correct
37 Correct 21 ms 16588 KB Output is correct
38 Correct 21 ms 16476 KB Output is correct
39 Correct 22 ms 16560 KB Output is correct
40 Correct 24 ms 22488 KB Output is correct
41 Correct 22 ms 17240 KB Output is correct
42 Correct 24 ms 25112 KB Output is correct
43 Correct 16 ms 19544 KB Output is correct
44 Correct 15 ms 18520 KB Output is correct
45 Correct 39 ms 25680 KB Output is correct
46 Correct 39 ms 30804 KB Output is correct
47 Correct 26 ms 21852 KB Output is correct
48 Correct 29 ms 24408 KB Output is correct
49 Correct 43 ms 27216 KB Output is correct
50 Correct 47 ms 28576 KB Output is correct
51 Correct 43 ms 26880 KB Output is correct
52 Correct 40 ms 23972 KB Output is correct
53 Correct 37 ms 24012 KB Output is correct
54 Correct 24 ms 25304 KB Output is correct
55 Correct 23 ms 25432 KB Output is correct
56 Correct 23 ms 25688 KB Output is correct
57 Correct 23 ms 25948 KB Output is correct
58 Correct 57 ms 33748 KB Output is correct
59 Correct 44 ms 33760 KB Output is correct
60 Correct 61 ms 33748 KB Output is correct
61 Correct 42 ms 33756 KB Output is correct
62 Correct 42 ms 33760 KB Output is correct
63 Correct 57 ms 33712 KB Output is correct
64 Correct 52 ms 35668 KB Output is correct
65 Correct 65 ms 35508 KB Output is correct
66 Correct 64 ms 35472 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 8032 KB Output is correct
2 Correct 2 ms 8032 KB Output is correct
3 Correct 2 ms 8028 KB Output is correct
4 Correct 2 ms 8028 KB Output is correct
5 Correct 2 ms 8028 KB Output is correct
6 Correct 2 ms 8028 KB Output is correct
7 Correct 2 ms 8284 KB Output is correct
8 Correct 2 ms 8272 KB Output is correct
9 Correct 2 ms 8284 KB Output is correct
10 Correct 2 ms 8288 KB Output is correct
11 Correct 2 ms 8272 KB Output is correct
12 Correct 2 ms 8284 KB Output is correct
13 Correct 2 ms 8284 KB Output is correct
14 Correct 2 ms 8284 KB Output is correct
15 Correct 2 ms 8280 KB Output is correct
16 Correct 2 ms 8284 KB Output is correct
17 Correct 2 ms 8284 KB Output is correct
18 Correct 2 ms 8284 KB Output is correct
19 Correct 2 ms 8284 KB Output is correct
20 Correct 2 ms 8284 KB Output is correct
21 Correct 2 ms 8280 KB Output is correct
22 Correct 2 ms 8284 KB Output is correct
23 Correct 2 ms 8028 KB Output is correct
24 Correct 2 ms 8028 KB Output is correct
25 Correct 3 ms 8280 KB Output is correct
26 Correct 2 ms 8028 KB Output is correct
27 Correct 2 ms 8284 KB Output is correct
28 Correct 2 ms 8540 KB Output is correct
29 Correct 2 ms 8540 KB Output is correct
30 Correct 2 ms 8540 KB Output is correct
31 Correct 2 ms 8284 KB Output is correct
32 Correct 3 ms 8536 KB Output is correct
33 Correct 3 ms 8284 KB Output is correct
34 Correct 3 ms 8284 KB Output is correct
35 Correct 2 ms 8284 KB Output is correct
36 Correct 2 ms 8284 KB Output is correct
37 Correct 2 ms 8284 KB Output is correct
38 Correct 2 ms 8284 KB Output is correct
39 Correct 2 ms 8348 KB Output is correct
40 Correct 2 ms 8280 KB Output is correct
41 Correct 2 ms 8336 KB Output is correct
42 Correct 2 ms 8284 KB Output is correct
43 Correct 2 ms 8280 KB Output is correct
44 Correct 2 ms 8284 KB Output is correct
45 Correct 3 ms 8796 KB Output is correct
46 Correct 3 ms 8796 KB Output is correct
47 Correct 3 ms 8796 KB Output is correct
48 Correct 3 ms 8796 KB Output is correct
49 Correct 3 ms 8796 KB Output is correct
50 Correct 2 ms 8284 KB Output is correct
51 Correct 3 ms 8284 KB Output is correct
52 Correct 2 ms 8284 KB Output is correct
53 Correct 2 ms 8284 KB Output is correct
54 Correct 2 ms 8284 KB Output is correct
55 Correct 4 ms 8284 KB Output is correct
56 Correct 2 ms 8284 KB Output is correct
57 Correct 3 ms 8284 KB Output is correct
58 Correct 2 ms 8284 KB Output is correct
59 Correct 2 ms 8284 KB Output is correct
60 Correct 2 ms 8284 KB Output is correct
61 Correct 2 ms 8284 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 8284 KB Output is correct
2 Correct 2 ms 8028 KB Output is correct
3 Correct 2 ms 8032 KB Output is correct
4 Correct 2 ms 8032 KB Output is correct
5 Correct 2 ms 8028 KB Output is correct
6 Correct 2 ms 8028 KB Output is correct
7 Correct 2 ms 8028 KB Output is correct
8 Correct 2 ms 8028 KB Output is correct
9 Correct 2 ms 8284 KB Output is correct
10 Correct 2 ms 8272 KB Output is correct
11 Correct 2 ms 8284 KB Output is correct
12 Correct 2 ms 8288 KB Output is correct
13 Correct 2 ms 8272 KB Output is correct
14 Correct 2 ms 8284 KB Output is correct
15 Correct 2 ms 8284 KB Output is correct
16 Correct 2 ms 8284 KB Output is correct
17 Correct 2 ms 8280 KB Output is correct
18 Correct 2 ms 8284 KB Output is correct
19 Correct 2 ms 8284 KB Output is correct
20 Correct 2 ms 8284 KB Output is correct
21 Correct 2 ms 8284 KB Output is correct
22 Correct 2 ms 8284 KB Output is correct
23 Correct 2 ms 8280 KB Output is correct
24 Correct 16 ms 12692 KB Output is correct
25 Correct 14 ms 12636 KB Output is correct
26 Correct 15 ms 12632 KB Output is correct
27 Correct 2 ms 8028 KB Output is correct
28 Correct 3 ms 8280 KB Output is correct
29 Correct 2 ms 8028 KB Output is correct
30 Correct 2 ms 8284 KB Output is correct
31 Correct 2 ms 8540 KB Output is correct
32 Correct 2 ms 8540 KB Output is correct
33 Correct 2 ms 8540 KB Output is correct
34 Correct 2 ms 8284 KB Output is correct
35 Correct 3 ms 8536 KB Output is correct
36 Correct 3 ms 8284 KB Output is correct
37 Correct 3 ms 8284 KB Output is correct
38 Correct 2 ms 8284 KB Output is correct
39 Correct 2 ms 8284 KB Output is correct
40 Correct 2 ms 8284 KB Output is correct
41 Correct 2 ms 8284 KB Output is correct
42 Correct 2 ms 8348 KB Output is correct
43 Correct 2 ms 8280 KB Output is correct
44 Correct 2 ms 8336 KB Output is correct
45 Correct 2 ms 8284 KB Output is correct
46 Correct 2 ms 8280 KB Output is correct
47 Correct 2 ms 8284 KB Output is correct
48 Correct 3 ms 8796 KB Output is correct
49 Correct 3 ms 8796 KB Output is correct
50 Correct 3 ms 8796 KB Output is correct
51 Correct 3 ms 8796 KB Output is correct
52 Correct 3 ms 8796 KB Output is correct
53 Correct 2 ms 8284 KB Output is correct
54 Correct 3 ms 8284 KB Output is correct
55 Correct 2 ms 8284 KB Output is correct
56 Correct 2 ms 8284 KB Output is correct
57 Correct 2 ms 8284 KB Output is correct
58 Correct 4 ms 8284 KB Output is correct
59 Correct 2 ms 8284 KB Output is correct
60 Correct 3 ms 8284 KB Output is correct
61 Correct 2 ms 8284 KB Output is correct
62 Correct 2 ms 8284 KB Output is correct
63 Correct 2 ms 8284 KB Output is correct
64 Correct 2 ms 8284 KB Output is correct
65 Correct 5 ms 10072 KB Output is correct
66 Correct 3 ms 9052 KB Output is correct
67 Correct 6 ms 10588 KB Output is correct
68 Correct 4 ms 10072 KB Output is correct
69 Correct 5 ms 10328 KB Output is correct
70 Correct 5 ms 8796 KB Output is correct
71 Correct 4 ms 8864 KB Output is correct
72 Correct 4 ms 8796 KB Output is correct
73 Correct 3 ms 8540 KB Output is correct
74 Correct 4 ms 8876 KB Output is correct
75 Correct 4 ms 8556 KB Output is correct
76 Correct 15 ms 11612 KB Output is correct
77 Correct 14 ms 12132 KB Output is correct
78 Correct 18 ms 12636 KB Output is correct
79 Correct 8 ms 12380 KB Output is correct
80 Correct 8 ms 12380 KB Output is correct
81 Correct 8 ms 12256 KB Output is correct
82 Correct 8 ms 12380 KB Output is correct
83 Correct 8 ms 12372 KB Output is correct
84 Correct 4 ms 9052 KB Output is correct
85 Correct 4 ms 9052 KB Output is correct
86 Correct 4 ms 9052 KB Output is correct
87 Correct 4 ms 9052 KB Output is correct
88 Correct 4 ms 9052 KB Output is correct
89 Correct 4 ms 8928 KB Output is correct
90 Correct 20 ms 12888 KB Output is correct
91 Correct 21 ms 12888 KB Output is correct
92 Correct 19 ms 12944 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 8284 KB Output is correct
2 Correct 2 ms 8028 KB Output is correct
3 Correct 2 ms 8032 KB Output is correct
4 Correct 2 ms 8032 KB Output is correct
5 Correct 2 ms 8028 KB Output is correct
6 Correct 2 ms 8028 KB Output is correct
7 Correct 2 ms 8028 KB Output is correct
8 Correct 2 ms 8028 KB Output is correct
9 Correct 2 ms 8284 KB Output is correct
10 Correct 2 ms 8272 KB Output is correct
11 Correct 2 ms 8284 KB Output is correct
12 Correct 2 ms 8288 KB Output is correct
13 Correct 2 ms 8272 KB Output is correct
14 Correct 2 ms 8284 KB Output is correct
15 Correct 2 ms 8284 KB Output is correct
16 Correct 2 ms 8284 KB Output is correct
17 Correct 2 ms 8280 KB Output is correct
18 Correct 2 ms 8284 KB Output is correct
19 Correct 2 ms 8284 KB Output is correct
20 Correct 2 ms 8284 KB Output is correct
21 Correct 2 ms 8284 KB Output is correct
22 Correct 2 ms 8284 KB Output is correct
23 Correct 2 ms 8280 KB Output is correct
24 Correct 16 ms 12692 KB Output is correct
25 Correct 14 ms 12636 KB Output is correct
26 Correct 15 ms 12632 KB Output is correct
27 Correct 10 ms 11356 KB Output is correct
28 Correct 10 ms 11356 KB Output is correct
29 Correct 12 ms 11592 KB Output is correct
30 Correct 10 ms 11612 KB Output is correct
31 Correct 6 ms 11608 KB Output is correct
32 Correct 7 ms 11612 KB Output is correct
33 Correct 10 ms 12376 KB Output is correct
34 Correct 9 ms 12380 KB Output is correct
35 Correct 12 ms 12560 KB Output is correct
36 Correct 10 ms 12380 KB Output is correct
37 Correct 10 ms 12560 KB Output is correct
38 Correct 10 ms 12556 KB Output is correct
39 Correct 21 ms 16588 KB Output is correct
40 Correct 21 ms 16476 KB Output is correct
41 Correct 22 ms 16560 KB Output is correct
42 Correct 2 ms 8028 KB Output is correct
43 Correct 3 ms 8280 KB Output is correct
44 Correct 2 ms 8028 KB Output is correct
45 Correct 2 ms 8284 KB Output is correct
46 Correct 2 ms 8540 KB Output is correct
47 Correct 2 ms 8540 KB Output is correct
48 Correct 2 ms 8540 KB Output is correct
49 Correct 2 ms 8284 KB Output is correct
50 Correct 3 ms 8536 KB Output is correct
51 Correct 3 ms 8284 KB Output is correct
52 Correct 3 ms 8284 KB Output is correct
53 Correct 2 ms 8284 KB Output is correct
54 Correct 2 ms 8284 KB Output is correct
55 Correct 2 ms 8284 KB Output is correct
56 Correct 2 ms 8284 KB Output is correct
57 Correct 2 ms 8348 KB Output is correct
58 Correct 2 ms 8280 KB Output is correct
59 Correct 2 ms 8336 KB Output is correct
60 Correct 2 ms 8284 KB Output is correct
61 Correct 2 ms 8280 KB Output is correct
62 Correct 2 ms 8284 KB Output is correct
63 Correct 3 ms 8796 KB Output is correct
64 Correct 3 ms 8796 KB Output is correct
65 Correct 3 ms 8796 KB Output is correct
66 Correct 3 ms 8796 KB Output is correct
67 Correct 3 ms 8796 KB Output is correct
68 Correct 2 ms 8284 KB Output is correct
69 Correct 3 ms 8284 KB Output is correct
70 Correct 2 ms 8284 KB Output is correct
71 Correct 2 ms 8284 KB Output is correct
72 Correct 2 ms 8284 KB Output is correct
73 Correct 4 ms 8284 KB Output is correct
74 Correct 2 ms 8284 KB Output is correct
75 Correct 3 ms 8284 KB Output is correct
76 Correct 2 ms 8284 KB Output is correct
77 Correct 2 ms 8284 KB Output is correct
78 Correct 2 ms 8284 KB Output is correct
79 Correct 2 ms 8284 KB Output is correct
80 Correct 5 ms 10072 KB Output is correct
81 Correct 3 ms 9052 KB Output is correct
82 Correct 6 ms 10588 KB Output is correct
83 Correct 4 ms 10072 KB Output is correct
84 Correct 5 ms 10328 KB Output is correct
85 Correct 5 ms 8796 KB Output is correct
86 Correct 4 ms 8864 KB Output is correct
87 Correct 4 ms 8796 KB Output is correct
88 Correct 3 ms 8540 KB Output is correct
89 Correct 4 ms 8876 KB Output is correct
90 Correct 4 ms 8556 KB Output is correct
91 Correct 15 ms 11612 KB Output is correct
92 Correct 14 ms 12132 KB Output is correct
93 Correct 18 ms 12636 KB Output is correct
94 Correct 8 ms 12380 KB Output is correct
95 Correct 8 ms 12380 KB Output is correct
96 Correct 8 ms 12256 KB Output is correct
97 Correct 8 ms 12380 KB Output is correct
98 Correct 8 ms 12372 KB Output is correct
99 Correct 4 ms 9052 KB Output is correct
100 Correct 4 ms 9052 KB Output is correct
101 Correct 4 ms 9052 KB Output is correct
102 Correct 4 ms 9052 KB Output is correct
103 Correct 4 ms 9052 KB Output is correct
104 Correct 4 ms 8928 KB Output is correct
105 Correct 20 ms 12888 KB Output is correct
106 Correct 21 ms 12888 KB Output is correct
107 Correct 19 ms 12944 KB Output is correct
108 Correct 7 ms 11868 KB Output is correct
109 Correct 545 ms 415552 KB Output is correct
110 Correct 486 ms 326480 KB Output is correct
111 Correct 364 ms 230500 KB Output is correct
112 Correct 490 ms 285508 KB Output is correct
113 Correct 367 ms 202580 KB Output is correct
114 Correct 13 ms 12636 KB Output is correct
115 Correct 14 ms 12632 KB Output is correct
116 Correct 16 ms 14544 KB Output is correct
117 Correct 14 ms 12636 KB Output is correct
118 Correct 16 ms 13404 KB Output is correct
119 Correct 11 ms 12636 KB Output is correct
120 Correct 15 ms 13432 KB Output is correct
121 Correct 8 ms 11356 KB Output is correct
122 Correct 19 ms 14172 KB Output is correct
123 Correct 7 ms 11100 KB Output is correct
124 Correct 22 ms 15852 KB Output is correct
125 Correct 12 ms 12892 KB Output is correct
126 Correct 9 ms 11612 KB Output is correct
127 Correct 14 ms 12376 KB Output is correct
128 Correct 8 ms 11096 KB Output is correct
129 Correct 10 ms 11352 KB Output is correct
130 Correct 9 ms 12124 KB Output is correct
131 Runtime error 601 ms 524288 KB Execution killed with signal 9
132 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 8284 KB Output is correct
2 Correct 2 ms 8028 KB Output is correct
3 Correct 2 ms 8032 KB Output is correct
4 Correct 2 ms 8032 KB Output is correct
5 Correct 2 ms 8028 KB Output is correct
6 Correct 2 ms 8028 KB Output is correct
7 Correct 2 ms 8028 KB Output is correct
8 Correct 2 ms 8028 KB Output is correct
9 Correct 2 ms 8284 KB Output is correct
10 Correct 2 ms 8272 KB Output is correct
11 Correct 2 ms 8284 KB Output is correct
12 Correct 2 ms 8288 KB Output is correct
13 Correct 2 ms 8272 KB Output is correct
14 Correct 2 ms 8284 KB Output is correct
15 Correct 2 ms 8284 KB Output is correct
16 Correct 2 ms 8284 KB Output is correct
17 Correct 2 ms 8280 KB Output is correct
18 Correct 2 ms 8284 KB Output is correct
19 Correct 2 ms 8284 KB Output is correct
20 Correct 2 ms 8284 KB Output is correct
21 Correct 2 ms 8284 KB Output is correct
22 Correct 2 ms 8284 KB Output is correct
23 Correct 2 ms 8280 KB Output is correct
24 Correct 16 ms 12692 KB Output is correct
25 Correct 14 ms 12636 KB Output is correct
26 Correct 15 ms 12632 KB Output is correct
27 Correct 10 ms 11356 KB Output is correct
28 Correct 10 ms 11356 KB Output is correct
29 Correct 12 ms 11592 KB Output is correct
30 Correct 10 ms 11612 KB Output is correct
31 Correct 6 ms 11608 KB Output is correct
32 Correct 7 ms 11612 KB Output is correct
33 Correct 10 ms 12376 KB Output is correct
34 Correct 9 ms 12380 KB Output is correct
35 Correct 12 ms 12560 KB Output is correct
36 Correct 10 ms 12380 KB Output is correct
37 Correct 10 ms 12560 KB Output is correct
38 Correct 10 ms 12556 KB Output is correct
39 Correct 21 ms 16588 KB Output is correct
40 Correct 21 ms 16476 KB Output is correct
41 Correct 22 ms 16560 KB Output is correct
42 Correct 24 ms 22488 KB Output is correct
43 Correct 22 ms 17240 KB Output is correct
44 Correct 24 ms 25112 KB Output is correct
45 Correct 16 ms 19544 KB Output is correct
46 Correct 15 ms 18520 KB Output is correct
47 Correct 39 ms 25680 KB Output is correct
48 Correct 39 ms 30804 KB Output is correct
49 Correct 26 ms 21852 KB Output is correct
50 Correct 29 ms 24408 KB Output is correct
51 Correct 43 ms 27216 KB Output is correct
52 Correct 47 ms 28576 KB Output is correct
53 Correct 43 ms 26880 KB Output is correct
54 Correct 40 ms 23972 KB Output is correct
55 Correct 37 ms 24012 KB Output is correct
56 Correct 24 ms 25304 KB Output is correct
57 Correct 23 ms 25432 KB Output is correct
58 Correct 23 ms 25688 KB Output is correct
59 Correct 23 ms 25948 KB Output is correct
60 Correct 57 ms 33748 KB Output is correct
61 Correct 44 ms 33760 KB Output is correct
62 Correct 61 ms 33748 KB Output is correct
63 Correct 42 ms 33756 KB Output is correct
64 Correct 42 ms 33760 KB Output is correct
65 Correct 57 ms 33712 KB Output is correct
66 Correct 52 ms 35668 KB Output is correct
67 Correct 65 ms 35508 KB Output is correct
68 Correct 64 ms 35472 KB Output is correct
69 Correct 2 ms 8028 KB Output is correct
70 Correct 3 ms 8280 KB Output is correct
71 Correct 2 ms 8028 KB Output is correct
72 Correct 2 ms 8284 KB Output is correct
73 Correct 2 ms 8540 KB Output is correct
74 Correct 2 ms 8540 KB Output is correct
75 Correct 2 ms 8540 KB Output is correct
76 Correct 2 ms 8284 KB Output is correct
77 Correct 3 ms 8536 KB Output is correct
78 Correct 3 ms 8284 KB Output is correct
79 Correct 3 ms 8284 KB Output is correct
80 Correct 2 ms 8284 KB Output is correct
81 Correct 2 ms 8284 KB Output is correct
82 Correct 2 ms 8284 KB Output is correct
83 Correct 2 ms 8284 KB Output is correct
84 Correct 2 ms 8348 KB Output is correct
85 Correct 2 ms 8280 KB Output is correct
86 Correct 2 ms 8336 KB Output is correct
87 Correct 2 ms 8284 KB Output is correct
88 Correct 2 ms 8280 KB Output is correct
89 Correct 2 ms 8284 KB Output is correct
90 Correct 3 ms 8796 KB Output is correct
91 Correct 3 ms 8796 KB Output is correct
92 Correct 3 ms 8796 KB Output is correct
93 Correct 3 ms 8796 KB Output is correct
94 Correct 3 ms 8796 KB Output is correct
95 Correct 2 ms 8284 KB Output is correct
96 Correct 3 ms 8284 KB Output is correct
97 Correct 2 ms 8284 KB Output is correct
98 Correct 2 ms 8284 KB Output is correct
99 Correct 2 ms 8284 KB Output is correct
100 Correct 4 ms 8284 KB Output is correct
101 Correct 2 ms 8284 KB Output is correct
102 Correct 3 ms 8284 KB Output is correct
103 Correct 2 ms 8284 KB Output is correct
104 Correct 2 ms 8284 KB Output is correct
105 Correct 2 ms 8284 KB Output is correct
106 Correct 2 ms 8284 KB Output is correct
107 Correct 5 ms 10072 KB Output is correct
108 Correct 3 ms 9052 KB Output is correct
109 Correct 6 ms 10588 KB Output is correct
110 Correct 4 ms 10072 KB Output is correct
111 Correct 5 ms 10328 KB Output is correct
112 Correct 5 ms 8796 KB Output is correct
113 Correct 4 ms 8864 KB Output is correct
114 Correct 4 ms 8796 KB Output is correct
115 Correct 3 ms 8540 KB Output is correct
116 Correct 4 ms 8876 KB Output is correct
117 Correct 4 ms 8556 KB Output is correct
118 Correct 15 ms 11612 KB Output is correct
119 Correct 14 ms 12132 KB Output is correct
120 Correct 18 ms 12636 KB Output is correct
121 Correct 8 ms 12380 KB Output is correct
122 Correct 8 ms 12380 KB Output is correct
123 Correct 8 ms 12256 KB Output is correct
124 Correct 8 ms 12380 KB Output is correct
125 Correct 8 ms 12372 KB Output is correct
126 Correct 4 ms 9052 KB Output is correct
127 Correct 4 ms 9052 KB Output is correct
128 Correct 4 ms 9052 KB Output is correct
129 Correct 4 ms 9052 KB Output is correct
130 Correct 4 ms 9052 KB Output is correct
131 Correct 4 ms 8928 KB Output is correct
132 Correct 20 ms 12888 KB Output is correct
133 Correct 21 ms 12888 KB Output is correct
134 Correct 19 ms 12944 KB Output is correct
135 Correct 7 ms 11868 KB Output is correct
136 Correct 545 ms 415552 KB Output is correct
137 Correct 486 ms 326480 KB Output is correct
138 Correct 364 ms 230500 KB Output is correct
139 Correct 490 ms 285508 KB Output is correct
140 Correct 367 ms 202580 KB Output is correct
141 Correct 13 ms 12636 KB Output is correct
142 Correct 14 ms 12632 KB Output is correct
143 Correct 16 ms 14544 KB Output is correct
144 Correct 14 ms 12636 KB Output is correct
145 Correct 16 ms 13404 KB Output is correct
146 Correct 11 ms 12636 KB Output is correct
147 Correct 15 ms 13432 KB Output is correct
148 Correct 8 ms 11356 KB Output is correct
149 Correct 19 ms 14172 KB Output is correct
150 Correct 7 ms 11100 KB Output is correct
151 Correct 22 ms 15852 KB Output is correct
152 Correct 12 ms 12892 KB Output is correct
153 Correct 9 ms 11612 KB Output is correct
154 Correct 14 ms 12376 KB Output is correct
155 Correct 8 ms 11096 KB Output is correct
156 Correct 10 ms 11352 KB Output is correct
157 Correct 9 ms 12124 KB Output is correct
158 Runtime error 601 ms 524288 KB Execution killed with signal 9
159 Halted 0 ms 0 KB -