Submission #1000194

# Submission time Handle Problem Language Result Execution time Memory
1000194 2024-06-17T02:17:47 Z abczz Painting Walls (APIO20_paint) C++17
40 / 100
586 ms 524288 KB
#include "paint.h"
#include <iostream>
#include <vector>
#include <unordered_map>
#include <queue>
#include <array>
#include <algorithm>
#define ll long long

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;
}
# Verdict Execution time Memory Grader output
1 Correct 2 ms 8024 KB Output is correct
2 Correct 2 ms 8028 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 8276 KB Output is correct
7 Correct 2 ms 8272 KB Output is correct
8 Correct 2 ms 8280 KB Output is correct
9 Correct 2 ms 8284 KB Output is correct
10 Correct 2 ms 8284 KB Output is correct
11 Correct 2 ms 8280 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 8284 KB Output is correct
16 Correct 2 ms 8284 KB Output is correct
17 Correct 2 ms 8148 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 14 ms 12804 KB Output is correct
23 Correct 15 ms 12808 KB Output is correct
24 Correct 14 ms 12632 KB Output is correct
25 Correct 7 ms 11612 KB Output is correct
26 Correct 12 ms 11584 KB Output is correct
27 Correct 6 ms 11740 KB Output is correct
28 Correct 9 ms 11612 KB Output is correct
29 Correct 6 ms 11612 KB Output is correct
30 Correct 6 ms 11612 KB Output is correct
31 Correct 12 ms 12636 KB Output is correct
32 Correct 11 ms 12684 KB Output is correct
33 Correct 9 ms 12636 KB Output is correct
34 Correct 11 ms 12632 KB Output is correct
35 Correct 9 ms 12636 KB Output is correct
36 Correct 10 ms 12632 KB Output is correct
37 Correct 25 ms 16516 KB Output is correct
38 Correct 32 ms 16424 KB Output is correct
39 Correct 22 ms 16476 KB Output is correct
40 Correct 23 ms 23004 KB Output is correct
41 Correct 16 ms 17376 KB Output is correct
42 Correct 38 ms 25308 KB Output is correct
43 Correct 16 ms 19668 KB Output is correct
44 Correct 23 ms 18692 KB Output is correct
45 Correct 38 ms 25684 KB Output is correct
46 Correct 40 ms 31180 KB Output is correct
47 Correct 24 ms 22100 KB Output is correct
48 Correct 27 ms 24404 KB Output is correct
49 Correct 44 ms 27224 KB Output is correct
50 Correct 40 ms 28496 KB Output is correct
51 Correct 36 ms 26708 KB Output is correct
52 Correct 26 ms 24532 KB Output is correct
53 Correct 24 ms 24536 KB Output is correct
54 Correct 23 ms 25560 KB Output is correct
55 Correct 23 ms 25688 KB Output is correct
56 Correct 27 ms 25680 KB Output is correct
57 Correct 23 ms 25680 KB Output is correct
58 Correct 43 ms 33904 KB Output is correct
59 Correct 45 ms 34012 KB Output is correct
60 Correct 43 ms 34012 KB Output is correct
61 Correct 44 ms 33940 KB Output is correct
62 Correct 41 ms 34008 KB Output is correct
63 Correct 61 ms 34020 KB Output is correct
64 Correct 52 ms 35664 KB Output is correct
65 Correct 46 ms 35664 KB Output is correct
66 Correct 60 ms 35516 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 8024 KB Output is correct
2 Correct 2 ms 8028 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 8276 KB Output is correct
7 Correct 2 ms 8272 KB Output is correct
8 Correct 2 ms 8280 KB Output is correct
9 Correct 2 ms 8284 KB Output is correct
10 Correct 2 ms 8284 KB Output is correct
11 Correct 2 ms 8280 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 8284 KB Output is correct
16 Correct 2 ms 8284 KB Output is correct
17 Correct 2 ms 8148 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 8028 KB Output is correct
23 Correct 3 ms 8028 KB Output is correct
24 Correct 2 ms 8028 KB Output is correct
25 Correct 2 ms 8276 KB Output is correct
26 Correct 2 ms 8272 KB Output is correct
27 Correct 2 ms 8284 KB Output is correct
28 Correct 2 ms 8424 KB Output is correct
29 Correct 3 ms 8380 KB Output is correct
30 Correct 2 ms 8536 KB Output is correct
31 Correct 2 ms 8280 KB Output is correct
32 Correct 2 ms 8528 KB Output is correct
33 Correct 2 ms 8368 KB Output is correct
34 Correct 2 ms 8280 KB Output is correct
35 Correct 2 ms 8284 KB Output is correct
36 Correct 4 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 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 8284 KB Output is correct
43 Correct 2 ms 8284 KB Output is correct
44 Correct 2 ms 8284 KB Output is correct
45 Correct 3 ms 8796 KB Output is correct
46 Correct 4 ms 8800 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 8784 KB Output is correct
50 Correct 2 ms 8280 KB Output is correct
51 Correct 2 ms 8284 KB Output is correct
52 Correct 2 ms 8280 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 8284 KB Output is correct
58 Correct 2 ms 8112 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 8280 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 8028 KB Output is correct
2 Correct 3 ms 8028 KB Output is correct
3 Correct 2 ms 8024 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 8028 KB Output is correct
8 Correct 2 ms 8276 KB Output is correct
9 Correct 2 ms 8272 KB Output is correct
10 Correct 2 ms 8280 KB Output is correct
11 Correct 2 ms 8284 KB Output is correct
12 Correct 2 ms 8284 KB Output is correct
13 Correct 2 ms 8280 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 8284 KB Output is correct
18 Correct 2 ms 8284 KB Output is correct
19 Correct 2 ms 8148 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 8284 KB Output is correct
24 Correct 14 ms 12804 KB Output is correct
25 Correct 15 ms 12808 KB Output is correct
26 Correct 14 ms 12632 KB Output is correct
27 Correct 2 ms 8028 KB Output is correct
28 Correct 2 ms 8276 KB Output is correct
29 Correct 2 ms 8272 KB Output is correct
30 Correct 2 ms 8284 KB Output is correct
31 Correct 2 ms 8424 KB Output is correct
32 Correct 3 ms 8380 KB Output is correct
33 Correct 2 ms 8536 KB Output is correct
34 Correct 2 ms 8280 KB Output is correct
35 Correct 2 ms 8528 KB Output is correct
36 Correct 2 ms 8368 KB Output is correct
37 Correct 2 ms 8280 KB Output is correct
38 Correct 2 ms 8284 KB Output is correct
39 Correct 4 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 8284 KB Output is correct
43 Correct 2 ms 8284 KB Output is correct
44 Correct 2 ms 8284 KB Output is correct
45 Correct 2 ms 8284 KB Output is correct
46 Correct 2 ms 8284 KB Output is correct
47 Correct 2 ms 8284 KB Output is correct
48 Correct 3 ms 8796 KB Output is correct
49 Correct 4 ms 8800 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 8784 KB Output is correct
53 Correct 2 ms 8280 KB Output is correct
54 Correct 2 ms 8284 KB Output is correct
55 Correct 2 ms 8280 KB Output is correct
56 Correct 2 ms 8284 KB Output is correct
57 Correct 2 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 8112 KB Output is correct
62 Correct 2 ms 8284 KB Output is correct
63 Correct 3 ms 8284 KB Output is correct
64 Correct 2 ms 8280 KB Output is correct
65 Correct 5 ms 10076 KB Output is correct
66 Correct 3 ms 9040 KB Output is correct
67 Correct 5 ms 10588 KB Output is correct
68 Correct 4 ms 9820 KB Output is correct
69 Correct 6 ms 10332 KB Output is correct
70 Correct 4 ms 8796 KB Output is correct
71 Correct 4 ms 8796 KB Output is correct
72 Correct 3 ms 8796 KB Output is correct
73 Correct 3 ms 8540 KB Output is correct
74 Correct 3 ms 8796 KB Output is correct
75 Correct 3 ms 8796 KB Output is correct
76 Correct 15 ms 11716 KB Output is correct
77 Correct 15 ms 12376 KB Output is correct
78 Correct 19 ms 12884 KB Output is correct
79 Correct 9 ms 12380 KB Output is correct
80 Correct 8 ms 12360 KB Output is correct
81 Correct 8 ms 12380 KB Output is correct
82 Correct 8 ms 12376 KB Output is correct
83 Correct 8 ms 12380 KB Output is correct
84 Correct 4 ms 9132 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 9192 KB Output is correct
89 Correct 4 ms 9048 KB Output is correct
90 Correct 21 ms 13128 KB Output is correct
91 Correct 21 ms 13148 KB Output is correct
92 Correct 20 ms 13380 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 8028 KB Output is correct
2 Correct 3 ms 8028 KB Output is correct
3 Correct 2 ms 8024 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 8028 KB Output is correct
8 Correct 2 ms 8276 KB Output is correct
9 Correct 2 ms 8272 KB Output is correct
10 Correct 2 ms 8280 KB Output is correct
11 Correct 2 ms 8284 KB Output is correct
12 Correct 2 ms 8284 KB Output is correct
13 Correct 2 ms 8280 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 8284 KB Output is correct
18 Correct 2 ms 8284 KB Output is correct
19 Correct 2 ms 8148 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 8284 KB Output is correct
24 Correct 14 ms 12804 KB Output is correct
25 Correct 15 ms 12808 KB Output is correct
26 Correct 14 ms 12632 KB Output is correct
27 Correct 7 ms 11612 KB Output is correct
28 Correct 12 ms 11584 KB Output is correct
29 Correct 6 ms 11740 KB Output is correct
30 Correct 9 ms 11612 KB Output is correct
31 Correct 6 ms 11612 KB Output is correct
32 Correct 6 ms 11612 KB Output is correct
33 Correct 12 ms 12636 KB Output is correct
34 Correct 11 ms 12684 KB Output is correct
35 Correct 9 ms 12636 KB Output is correct
36 Correct 11 ms 12632 KB Output is correct
37 Correct 9 ms 12636 KB Output is correct
38 Correct 10 ms 12632 KB Output is correct
39 Correct 25 ms 16516 KB Output is correct
40 Correct 32 ms 16424 KB Output is correct
41 Correct 22 ms 16476 KB Output is correct
42 Correct 2 ms 8028 KB Output is correct
43 Correct 2 ms 8276 KB Output is correct
44 Correct 2 ms 8272 KB Output is correct
45 Correct 2 ms 8284 KB Output is correct
46 Correct 2 ms 8424 KB Output is correct
47 Correct 3 ms 8380 KB Output is correct
48 Correct 2 ms 8536 KB Output is correct
49 Correct 2 ms 8280 KB Output is correct
50 Correct 2 ms 8528 KB Output is correct
51 Correct 2 ms 8368 KB Output is correct
52 Correct 2 ms 8280 KB Output is correct
53 Correct 2 ms 8284 KB Output is correct
54 Correct 4 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 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
62 Correct 2 ms 8284 KB Output is correct
63 Correct 3 ms 8796 KB Output is correct
64 Correct 4 ms 8800 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 8784 KB Output is correct
68 Correct 2 ms 8280 KB Output is correct
69 Correct 2 ms 8284 KB Output is correct
70 Correct 2 ms 8280 KB Output is correct
71 Correct 2 ms 8284 KB Output is correct
72 Correct 2 ms 8284 KB Output is correct
73 Correct 2 ms 8284 KB Output is correct
74 Correct 2 ms 8284 KB Output is correct
75 Correct 2 ms 8284 KB Output is correct
76 Correct 2 ms 8112 KB Output is correct
77 Correct 2 ms 8284 KB Output is correct
78 Correct 3 ms 8284 KB Output is correct
79 Correct 2 ms 8280 KB Output is correct
80 Correct 5 ms 10076 KB Output is correct
81 Correct 3 ms 9040 KB Output is correct
82 Correct 5 ms 10588 KB Output is correct
83 Correct 4 ms 9820 KB Output is correct
84 Correct 6 ms 10332 KB Output is correct
85 Correct 4 ms 8796 KB Output is correct
86 Correct 4 ms 8796 KB Output is correct
87 Correct 3 ms 8796 KB Output is correct
88 Correct 3 ms 8540 KB Output is correct
89 Correct 3 ms 8796 KB Output is correct
90 Correct 3 ms 8796 KB Output is correct
91 Correct 15 ms 11716 KB Output is correct
92 Correct 15 ms 12376 KB Output is correct
93 Correct 19 ms 12884 KB Output is correct
94 Correct 9 ms 12380 KB Output is correct
95 Correct 8 ms 12360 KB Output is correct
96 Correct 8 ms 12380 KB Output is correct
97 Correct 8 ms 12376 KB Output is correct
98 Correct 8 ms 12380 KB Output is correct
99 Correct 4 ms 9132 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 9192 KB Output is correct
104 Correct 4 ms 9048 KB Output is correct
105 Correct 21 ms 13128 KB Output is correct
106 Correct 21 ms 13148 KB Output is correct
107 Correct 20 ms 13380 KB Output is correct
108 Correct 7 ms 12120 KB Output is correct
109 Correct 548 ms 415804 KB Output is correct
110 Correct 488 ms 326600 KB Output is correct
111 Correct 401 ms 230736 KB Output is correct
112 Correct 510 ms 285512 KB Output is correct
113 Correct 377 ms 202584 KB Output is correct
114 Correct 15 ms 13148 KB Output is correct
115 Correct 14 ms 13144 KB Output is correct
116 Correct 18 ms 14940 KB Output is correct
117 Correct 16 ms 13228 KB Output is correct
118 Correct 17 ms 13908 KB Output is correct
119 Correct 12 ms 12892 KB Output is correct
120 Correct 16 ms 13648 KB Output is correct
121 Correct 10 ms 11352 KB Output is correct
122 Correct 24 ms 14684 KB Output is correct
123 Correct 9 ms 11352 KB Output is correct
124 Correct 23 ms 16320 KB Output is correct
125 Correct 11 ms 13148 KB Output is correct
126 Correct 11 ms 11608 KB Output is correct
127 Correct 11 ms 12380 KB Output is correct
128 Correct 8 ms 11076 KB Output is correct
129 Correct 8 ms 11432 KB Output is correct
130 Correct 8 ms 12228 KB Output is correct
131 Runtime error 586 ms 524288 KB Execution killed with signal 9
132 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 2 ms 8028 KB Output is correct
2 Correct 3 ms 8028 KB Output is correct
3 Correct 2 ms 8024 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 8028 KB Output is correct
8 Correct 2 ms 8276 KB Output is correct
9 Correct 2 ms 8272 KB Output is correct
10 Correct 2 ms 8280 KB Output is correct
11 Correct 2 ms 8284 KB Output is correct
12 Correct 2 ms 8284 KB Output is correct
13 Correct 2 ms 8280 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 8284 KB Output is correct
18 Correct 2 ms 8284 KB Output is correct
19 Correct 2 ms 8148 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 8284 KB Output is correct
24 Correct 14 ms 12804 KB Output is correct
25 Correct 15 ms 12808 KB Output is correct
26 Correct 14 ms 12632 KB Output is correct
27 Correct 7 ms 11612 KB Output is correct
28 Correct 12 ms 11584 KB Output is correct
29 Correct 6 ms 11740 KB Output is correct
30 Correct 9 ms 11612 KB Output is correct
31 Correct 6 ms 11612 KB Output is correct
32 Correct 6 ms 11612 KB Output is correct
33 Correct 12 ms 12636 KB Output is correct
34 Correct 11 ms 12684 KB Output is correct
35 Correct 9 ms 12636 KB Output is correct
36 Correct 11 ms 12632 KB Output is correct
37 Correct 9 ms 12636 KB Output is correct
38 Correct 10 ms 12632 KB Output is correct
39 Correct 25 ms 16516 KB Output is correct
40 Correct 32 ms 16424 KB Output is correct
41 Correct 22 ms 16476 KB Output is correct
42 Correct 23 ms 23004 KB Output is correct
43 Correct 16 ms 17376 KB Output is correct
44 Correct 38 ms 25308 KB Output is correct
45 Correct 16 ms 19668 KB Output is correct
46 Correct 23 ms 18692 KB Output is correct
47 Correct 38 ms 25684 KB Output is correct
48 Correct 40 ms 31180 KB Output is correct
49 Correct 24 ms 22100 KB Output is correct
50 Correct 27 ms 24404 KB Output is correct
51 Correct 44 ms 27224 KB Output is correct
52 Correct 40 ms 28496 KB Output is correct
53 Correct 36 ms 26708 KB Output is correct
54 Correct 26 ms 24532 KB Output is correct
55 Correct 24 ms 24536 KB Output is correct
56 Correct 23 ms 25560 KB Output is correct
57 Correct 23 ms 25688 KB Output is correct
58 Correct 27 ms 25680 KB Output is correct
59 Correct 23 ms 25680 KB Output is correct
60 Correct 43 ms 33904 KB Output is correct
61 Correct 45 ms 34012 KB Output is correct
62 Correct 43 ms 34012 KB Output is correct
63 Correct 44 ms 33940 KB Output is correct
64 Correct 41 ms 34008 KB Output is correct
65 Correct 61 ms 34020 KB Output is correct
66 Correct 52 ms 35664 KB Output is correct
67 Correct 46 ms 35664 KB Output is correct
68 Correct 60 ms 35516 KB Output is correct
69 Correct 2 ms 8028 KB Output is correct
70 Correct 2 ms 8276 KB Output is correct
71 Correct 2 ms 8272 KB Output is correct
72 Correct 2 ms 8284 KB Output is correct
73 Correct 2 ms 8424 KB Output is correct
74 Correct 3 ms 8380 KB Output is correct
75 Correct 2 ms 8536 KB Output is correct
76 Correct 2 ms 8280 KB Output is correct
77 Correct 2 ms 8528 KB Output is correct
78 Correct 2 ms 8368 KB Output is correct
79 Correct 2 ms 8280 KB Output is correct
80 Correct 2 ms 8284 KB Output is correct
81 Correct 4 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 8284 KB Output is correct
85 Correct 2 ms 8284 KB Output is correct
86 Correct 2 ms 8284 KB Output is correct
87 Correct 2 ms 8284 KB Output is correct
88 Correct 2 ms 8284 KB Output is correct
89 Correct 2 ms 8284 KB Output is correct
90 Correct 3 ms 8796 KB Output is correct
91 Correct 4 ms 8800 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 8784 KB Output is correct
95 Correct 2 ms 8280 KB Output is correct
96 Correct 2 ms 8284 KB Output is correct
97 Correct 2 ms 8280 KB Output is correct
98 Correct 2 ms 8284 KB Output is correct
99 Correct 2 ms 8284 KB Output is correct
100 Correct 2 ms 8284 KB Output is correct
101 Correct 2 ms 8284 KB Output is correct
102 Correct 2 ms 8284 KB Output is correct
103 Correct 2 ms 8112 KB Output is correct
104 Correct 2 ms 8284 KB Output is correct
105 Correct 3 ms 8284 KB Output is correct
106 Correct 2 ms 8280 KB Output is correct
107 Correct 5 ms 10076 KB Output is correct
108 Correct 3 ms 9040 KB Output is correct
109 Correct 5 ms 10588 KB Output is correct
110 Correct 4 ms 9820 KB Output is correct
111 Correct 6 ms 10332 KB Output is correct
112 Correct 4 ms 8796 KB Output is correct
113 Correct 4 ms 8796 KB Output is correct
114 Correct 3 ms 8796 KB Output is correct
115 Correct 3 ms 8540 KB Output is correct
116 Correct 3 ms 8796 KB Output is correct
117 Correct 3 ms 8796 KB Output is correct
118 Correct 15 ms 11716 KB Output is correct
119 Correct 15 ms 12376 KB Output is correct
120 Correct 19 ms 12884 KB Output is correct
121 Correct 9 ms 12380 KB Output is correct
122 Correct 8 ms 12360 KB Output is correct
123 Correct 8 ms 12380 KB Output is correct
124 Correct 8 ms 12376 KB Output is correct
125 Correct 8 ms 12380 KB Output is correct
126 Correct 4 ms 9132 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 9192 KB Output is correct
131 Correct 4 ms 9048 KB Output is correct
132 Correct 21 ms 13128 KB Output is correct
133 Correct 21 ms 13148 KB Output is correct
134 Correct 20 ms 13380 KB Output is correct
135 Correct 7 ms 12120 KB Output is correct
136 Correct 548 ms 415804 KB Output is correct
137 Correct 488 ms 326600 KB Output is correct
138 Correct 401 ms 230736 KB Output is correct
139 Correct 510 ms 285512 KB Output is correct
140 Correct 377 ms 202584 KB Output is correct
141 Correct 15 ms 13148 KB Output is correct
142 Correct 14 ms 13144 KB Output is correct
143 Correct 18 ms 14940 KB Output is correct
144 Correct 16 ms 13228 KB Output is correct
145 Correct 17 ms 13908 KB Output is correct
146 Correct 12 ms 12892 KB Output is correct
147 Correct 16 ms 13648 KB Output is correct
148 Correct 10 ms 11352 KB Output is correct
149 Correct 24 ms 14684 KB Output is correct
150 Correct 9 ms 11352 KB Output is correct
151 Correct 23 ms 16320 KB Output is correct
152 Correct 11 ms 13148 KB Output is correct
153 Correct 11 ms 11608 KB Output is correct
154 Correct 11 ms 12380 KB Output is correct
155 Correct 8 ms 11076 KB Output is correct
156 Correct 8 ms 11432 KB Output is correct
157 Correct 8 ms 12228 KB Output is correct
158 Runtime error 586 ms 524288 KB Execution killed with signal 9
159 Halted 0 ms 0 KB -