답안 #315123

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
315123 2020-10-22T02:54:21 Z neihcr7j 벽 칠하기 (APIO20_paint) C++14
40 / 100
1417 ms 524292 KB
#include<bits/stdc++.h>
#include "paint.h"

#define oo 1000000000
#define maxn 100005

using namespace std;
typedef long long ll;

unordered_map < int, int > d[maxn];

int ok[maxn], las[maxn];
vector < int > g[maxn];

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 (auto x : b[i])
      g[x].push_back(i);

  for (int i = n - 1; i >= 0; --i)
    for (auto x : g[c[i]]) {
      d[i][x] = 1;

      if (i < n - 1 && d[i + 1].find((x + 1) % m) != d[i + 1].end())
        d[i][x] = max(d[i][x], d[i + 1][(x + 1) % m] + 1);

      if (d[i][x] >= m)
        ok[i + 1] = 1;
    }

  for (int i = 1; i <= n; ++i)
    las[i] = (ok[i] ? i : las[i - 1]);

  int x = 0, cnt = 0;

  while (x < n) {
    cnt++;
    int i = las[x + 1];

    if (i == 0 || i + m - 1 <= x) return -1;

    x = i + m - 1;
  }


  if (x != n)
    return -1;

  return cnt;

  return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 8192 KB Output is correct
2 Correct 6 ms 8192 KB Output is correct
3 Correct 6 ms 8192 KB Output is correct
4 Correct 6 ms 8192 KB Output is correct
5 Correct 6 ms 8192 KB Output is correct
6 Correct 6 ms 8192 KB Output is correct
7 Correct 6 ms 8192 KB Output is correct
8 Correct 6 ms 8192 KB Output is correct
9 Correct 6 ms 8192 KB Output is correct
10 Correct 6 ms 8192 KB Output is correct
11 Correct 6 ms 8192 KB Output is correct
12 Correct 6 ms 8192 KB Output is correct
13 Correct 6 ms 8192 KB Output is correct
14 Correct 6 ms 8192 KB Output is correct
15 Correct 6 ms 8320 KB Output is correct
16 Correct 7 ms 8192 KB Output is correct
17 Correct 6 ms 8192 KB Output is correct
18 Correct 7 ms 8192 KB Output is correct
19 Correct 6 ms 8192 KB Output is correct
20 Correct 6 ms 8192 KB Output is correct
21 Correct 6 ms 8192 KB Output is correct
22 Correct 32 ms 12692 KB Output is correct
23 Correct 30 ms 12664 KB Output is correct
24 Correct 30 ms 12664 KB Output is correct
25 Correct 13 ms 9728 KB Output is correct
26 Correct 13 ms 9728 KB Output is correct
27 Correct 13 ms 9728 KB Output is correct
28 Correct 13 ms 9728 KB Output is correct
29 Correct 13 ms 9728 KB Output is correct
30 Correct 13 ms 9728 KB Output is correct
31 Correct 21 ms 10880 KB Output is correct
32 Correct 21 ms 10880 KB Output is correct
33 Correct 21 ms 10880 KB Output is correct
34 Correct 21 ms 10880 KB Output is correct
35 Correct 21 ms 10880 KB Output is correct
36 Correct 21 ms 10880 KB Output is correct
37 Correct 42 ms 14464 KB Output is correct
38 Correct 43 ms 14456 KB Output is correct
39 Correct 43 ms 14456 KB Output is correct
40 Correct 35 ms 15480 KB Output is correct
41 Correct 25 ms 12800 KB Output is correct
42 Correct 39 ms 16120 KB Output is correct
43 Correct 28 ms 13440 KB Output is correct
44 Correct 26 ms 12920 KB Output is correct
45 Correct 38 ms 15992 KB Output is correct
46 Correct 83 ms 24184 KB Output is correct
47 Correct 57 ms 17784 KB Output is correct
48 Correct 60 ms 20216 KB Output is correct
49 Correct 71 ms 20760 KB Output is correct
50 Correct 75 ms 21112 KB Output is correct
51 Correct 64 ms 19064 KB Output is correct
52 Correct 39 ms 16128 KB Output is correct
53 Correct 40 ms 16120 KB Output is correct
54 Correct 39 ms 16212 KB Output is correct
55 Correct 39 ms 16120 KB Output is correct
56 Correct 41 ms 16212 KB Output is correct
57 Correct 38 ms 16120 KB Output is correct
58 Correct 96 ms 25976 KB Output is correct
59 Correct 94 ms 26104 KB Output is correct
60 Correct 94 ms 26104 KB Output is correct
61 Correct 93 ms 25976 KB Output is correct
62 Correct 95 ms 26104 KB Output is correct
63 Correct 92 ms 25976 KB Output is correct
64 Correct 104 ms 25068 KB Output is correct
65 Correct 102 ms 25080 KB Output is correct
66 Correct 97 ms 25084 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 8192 KB Output is correct
2 Correct 6 ms 8192 KB Output is correct
3 Correct 6 ms 8192 KB Output is correct
4 Correct 6 ms 8192 KB Output is correct
5 Correct 6 ms 8192 KB Output is correct
6 Correct 6 ms 8192 KB Output is correct
7 Correct 6 ms 8192 KB Output is correct
8 Correct 6 ms 8192 KB Output is correct
9 Correct 6 ms 8192 KB Output is correct
10 Correct 6 ms 8192 KB Output is correct
11 Correct 6 ms 8192 KB Output is correct
12 Correct 6 ms 8192 KB Output is correct
13 Correct 6 ms 8192 KB Output is correct
14 Correct 6 ms 8192 KB Output is correct
15 Correct 6 ms 8192 KB Output is correct
16 Correct 6 ms 8192 KB Output is correct
17 Correct 6 ms 8320 KB Output is correct
18 Correct 7 ms 8192 KB Output is correct
19 Correct 6 ms 8192 KB Output is correct
20 Correct 7 ms 8192 KB Output is correct
21 Correct 6 ms 8192 KB Output is correct
22 Correct 6 ms 8192 KB Output is correct
23 Correct 6 ms 8192 KB Output is correct
24 Correct 6 ms 8192 KB Output is correct
25 Correct 6 ms 8192 KB Output is correct
26 Correct 6 ms 8192 KB Output is correct
27 Correct 6 ms 8192 KB Output is correct
28 Correct 8 ms 8576 KB Output is correct
29 Correct 7 ms 8320 KB Output is correct
30 Correct 7 ms 8320 KB Output is correct
31 Correct 6 ms 8320 KB Output is correct
32 Correct 6 ms 8320 KB Output is correct
33 Correct 6 ms 8192 KB Output is correct
34 Correct 6 ms 8192 KB Output is correct
35 Correct 6 ms 8192 KB Output is correct
36 Correct 6 ms 8192 KB Output is correct
37 Correct 6 ms 8192 KB Output is correct
38 Correct 6 ms 8192 KB Output is correct
39 Correct 6 ms 8192 KB Output is correct
40 Correct 6 ms 8192 KB Output is correct
41 Correct 6 ms 8192 KB Output is correct
42 Correct 6 ms 8192 KB Output is correct
43 Correct 6 ms 8192 KB Output is correct
44 Correct 6 ms 8192 KB Output is correct
45 Correct 8 ms 8832 KB Output is correct
46 Correct 8 ms 8704 KB Output is correct
47 Correct 7 ms 8576 KB Output is correct
48 Correct 7 ms 8448 KB Output is correct
49 Correct 7 ms 8448 KB Output is correct
50 Correct 6 ms 8192 KB Output is correct
51 Correct 6 ms 8192 KB Output is correct
52 Correct 6 ms 8192 KB Output is correct
53 Correct 6 ms 8192 KB Output is correct
54 Correct 7 ms 8192 KB Output is correct
55 Correct 6 ms 8192 KB Output is correct
56 Correct 6 ms 8192 KB Output is correct
57 Correct 6 ms 8192 KB Output is correct
58 Correct 6 ms 8192 KB Output is correct
59 Correct 6 ms 8192 KB Output is correct
60 Correct 7 ms 8320 KB Output is correct
61 Correct 8 ms 8192 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 8192 KB Output is correct
2 Correct 6 ms 8192 KB Output is correct
3 Correct 6 ms 8192 KB Output is correct
4 Correct 6 ms 8192 KB Output is correct
5 Correct 6 ms 8192 KB Output is correct
6 Correct 6 ms 8192 KB Output is correct
7 Correct 6 ms 8192 KB Output is correct
8 Correct 6 ms 8192 KB Output is correct
9 Correct 6 ms 8192 KB Output is correct
10 Correct 6 ms 8192 KB Output is correct
11 Correct 6 ms 8192 KB Output is correct
12 Correct 6 ms 8192 KB Output is correct
13 Correct 6 ms 8192 KB Output is correct
14 Correct 6 ms 8192 KB Output is correct
15 Correct 6 ms 8192 KB Output is correct
16 Correct 6 ms 8192 KB Output is correct
17 Correct 6 ms 8320 KB Output is correct
18 Correct 7 ms 8192 KB Output is correct
19 Correct 6 ms 8192 KB Output is correct
20 Correct 7 ms 8192 KB Output is correct
21 Correct 6 ms 8192 KB Output is correct
22 Correct 6 ms 8192 KB Output is correct
23 Correct 6 ms 8192 KB Output is correct
24 Correct 32 ms 12692 KB Output is correct
25 Correct 30 ms 12664 KB Output is correct
26 Correct 30 ms 12664 KB Output is correct
27 Correct 6 ms 8192 KB Output is correct
28 Correct 6 ms 8192 KB Output is correct
29 Correct 6 ms 8192 KB Output is correct
30 Correct 6 ms 8192 KB Output is correct
31 Correct 8 ms 8576 KB Output is correct
32 Correct 7 ms 8320 KB Output is correct
33 Correct 7 ms 8320 KB Output is correct
34 Correct 6 ms 8320 KB Output is correct
35 Correct 6 ms 8320 KB Output is correct
36 Correct 6 ms 8192 KB Output is correct
37 Correct 6 ms 8192 KB Output is correct
38 Correct 6 ms 8192 KB Output is correct
39 Correct 6 ms 8192 KB Output is correct
40 Correct 6 ms 8192 KB Output is correct
41 Correct 6 ms 8192 KB Output is correct
42 Correct 6 ms 8192 KB Output is correct
43 Correct 6 ms 8192 KB Output is correct
44 Correct 6 ms 8192 KB Output is correct
45 Correct 6 ms 8192 KB Output is correct
46 Correct 6 ms 8192 KB Output is correct
47 Correct 6 ms 8192 KB Output is correct
48 Correct 8 ms 8832 KB Output is correct
49 Correct 8 ms 8704 KB Output is correct
50 Correct 7 ms 8576 KB Output is correct
51 Correct 7 ms 8448 KB Output is correct
52 Correct 7 ms 8448 KB Output is correct
53 Correct 6 ms 8192 KB Output is correct
54 Correct 6 ms 8192 KB Output is correct
55 Correct 6 ms 8192 KB Output is correct
56 Correct 6 ms 8192 KB Output is correct
57 Correct 7 ms 8192 KB Output is correct
58 Correct 6 ms 8192 KB Output is correct
59 Correct 6 ms 8192 KB Output is correct
60 Correct 6 ms 8192 KB Output is correct
61 Correct 6 ms 8192 KB Output is correct
62 Correct 6 ms 8192 KB Output is correct
63 Correct 7 ms 8320 KB Output is correct
64 Correct 8 ms 8192 KB Output is correct
65 Correct 12 ms 10112 KB Output is correct
66 Correct 9 ms 8960 KB Output is correct
67 Correct 17 ms 11008 KB Output is correct
68 Correct 11 ms 9600 KB Output is correct
69 Correct 14 ms 10496 KB Output is correct
70 Correct 10 ms 8832 KB Output is correct
71 Correct 10 ms 8960 KB Output is correct
72 Correct 10 ms 8832 KB Output is correct
73 Correct 8 ms 8576 KB Output is correct
74 Correct 10 ms 8832 KB Output is correct
75 Correct 9 ms 8704 KB Output is correct
76 Correct 31 ms 11512 KB Output is correct
77 Correct 29 ms 12024 KB Output is correct
78 Correct 37 ms 12536 KB Output is correct
79 Correct 22 ms 12928 KB Output is correct
80 Correct 21 ms 12928 KB Output is correct
81 Correct 21 ms 12928 KB Output is correct
82 Correct 21 ms 12928 KB Output is correct
83 Correct 21 ms 12928 KB Output is correct
84 Correct 11 ms 9088 KB Output is correct
85 Correct 11 ms 9088 KB Output is correct
86 Correct 11 ms 9088 KB Output is correct
87 Correct 11 ms 9088 KB Output is correct
88 Correct 11 ms 9088 KB Output is correct
89 Correct 10 ms 9088 KB Output is correct
90 Correct 47 ms 12804 KB Output is correct
91 Correct 47 ms 12792 KB Output is correct
92 Correct 49 ms 12920 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 8192 KB Output is correct
2 Correct 6 ms 8192 KB Output is correct
3 Correct 6 ms 8192 KB Output is correct
4 Correct 6 ms 8192 KB Output is correct
5 Correct 6 ms 8192 KB Output is correct
6 Correct 6 ms 8192 KB Output is correct
7 Correct 6 ms 8192 KB Output is correct
8 Correct 6 ms 8192 KB Output is correct
9 Correct 6 ms 8192 KB Output is correct
10 Correct 6 ms 8192 KB Output is correct
11 Correct 6 ms 8192 KB Output is correct
12 Correct 6 ms 8192 KB Output is correct
13 Correct 6 ms 8192 KB Output is correct
14 Correct 6 ms 8192 KB Output is correct
15 Correct 6 ms 8192 KB Output is correct
16 Correct 6 ms 8192 KB Output is correct
17 Correct 6 ms 8320 KB Output is correct
18 Correct 7 ms 8192 KB Output is correct
19 Correct 6 ms 8192 KB Output is correct
20 Correct 7 ms 8192 KB Output is correct
21 Correct 6 ms 8192 KB Output is correct
22 Correct 6 ms 8192 KB Output is correct
23 Correct 6 ms 8192 KB Output is correct
24 Correct 32 ms 12692 KB Output is correct
25 Correct 30 ms 12664 KB Output is correct
26 Correct 30 ms 12664 KB Output is correct
27 Correct 13 ms 9728 KB Output is correct
28 Correct 13 ms 9728 KB Output is correct
29 Correct 13 ms 9728 KB Output is correct
30 Correct 13 ms 9728 KB Output is correct
31 Correct 13 ms 9728 KB Output is correct
32 Correct 13 ms 9728 KB Output is correct
33 Correct 21 ms 10880 KB Output is correct
34 Correct 21 ms 10880 KB Output is correct
35 Correct 21 ms 10880 KB Output is correct
36 Correct 21 ms 10880 KB Output is correct
37 Correct 21 ms 10880 KB Output is correct
38 Correct 21 ms 10880 KB Output is correct
39 Correct 42 ms 14464 KB Output is correct
40 Correct 43 ms 14456 KB Output is correct
41 Correct 43 ms 14456 KB Output is correct
42 Correct 6 ms 8192 KB Output is correct
43 Correct 6 ms 8192 KB Output is correct
44 Correct 6 ms 8192 KB Output is correct
45 Correct 6 ms 8192 KB Output is correct
46 Correct 8 ms 8576 KB Output is correct
47 Correct 7 ms 8320 KB Output is correct
48 Correct 7 ms 8320 KB Output is correct
49 Correct 6 ms 8320 KB Output is correct
50 Correct 6 ms 8320 KB Output is correct
51 Correct 6 ms 8192 KB Output is correct
52 Correct 6 ms 8192 KB Output is correct
53 Correct 6 ms 8192 KB Output is correct
54 Correct 6 ms 8192 KB Output is correct
55 Correct 6 ms 8192 KB Output is correct
56 Correct 6 ms 8192 KB Output is correct
57 Correct 6 ms 8192 KB Output is correct
58 Correct 6 ms 8192 KB Output is correct
59 Correct 6 ms 8192 KB Output is correct
60 Correct 6 ms 8192 KB Output is correct
61 Correct 6 ms 8192 KB Output is correct
62 Correct 6 ms 8192 KB Output is correct
63 Correct 8 ms 8832 KB Output is correct
64 Correct 8 ms 8704 KB Output is correct
65 Correct 7 ms 8576 KB Output is correct
66 Correct 7 ms 8448 KB Output is correct
67 Correct 7 ms 8448 KB Output is correct
68 Correct 6 ms 8192 KB Output is correct
69 Correct 6 ms 8192 KB Output is correct
70 Correct 6 ms 8192 KB Output is correct
71 Correct 6 ms 8192 KB Output is correct
72 Correct 7 ms 8192 KB Output is correct
73 Correct 6 ms 8192 KB Output is correct
74 Correct 6 ms 8192 KB Output is correct
75 Correct 6 ms 8192 KB Output is correct
76 Correct 6 ms 8192 KB Output is correct
77 Correct 6 ms 8192 KB Output is correct
78 Correct 7 ms 8320 KB Output is correct
79 Correct 8 ms 8192 KB Output is correct
80 Correct 12 ms 10112 KB Output is correct
81 Correct 9 ms 8960 KB Output is correct
82 Correct 17 ms 11008 KB Output is correct
83 Correct 11 ms 9600 KB Output is correct
84 Correct 14 ms 10496 KB Output is correct
85 Correct 10 ms 8832 KB Output is correct
86 Correct 10 ms 8960 KB Output is correct
87 Correct 10 ms 8832 KB Output is correct
88 Correct 8 ms 8576 KB Output is correct
89 Correct 10 ms 8832 KB Output is correct
90 Correct 9 ms 8704 KB Output is correct
91 Correct 31 ms 11512 KB Output is correct
92 Correct 29 ms 12024 KB Output is correct
93 Correct 37 ms 12536 KB Output is correct
94 Correct 22 ms 12928 KB Output is correct
95 Correct 21 ms 12928 KB Output is correct
96 Correct 21 ms 12928 KB Output is correct
97 Correct 21 ms 12928 KB Output is correct
98 Correct 21 ms 12928 KB Output is correct
99 Correct 11 ms 9088 KB Output is correct
100 Correct 11 ms 9088 KB Output is correct
101 Correct 11 ms 9088 KB Output is correct
102 Correct 11 ms 9088 KB Output is correct
103 Correct 11 ms 9088 KB Output is correct
104 Correct 10 ms 9088 KB Output is correct
105 Correct 47 ms 12804 KB Output is correct
106 Correct 47 ms 12792 KB Output is correct
107 Correct 49 ms 12920 KB Output is correct
108 Correct 15 ms 10368 KB Output is correct
109 Correct 1176 ms 383736 KB Output is correct
110 Correct 672 ms 200184 KB Output is correct
111 Correct 528 ms 158328 KB Output is correct
112 Correct 626 ms 187896 KB Output is correct
113 Correct 424 ms 128760 KB Output is correct
114 Correct 32 ms 12032 KB Output is correct
115 Correct 32 ms 12536 KB Output is correct
116 Correct 42 ms 13304 KB Output is correct
117 Correct 31 ms 11896 KB Output is correct
118 Correct 35 ms 12544 KB Output is correct
119 Correct 28 ms 11640 KB Output is correct
120 Correct 33 ms 12160 KB Output is correct
121 Correct 16 ms 10112 KB Output is correct
122 Correct 39 ms 12700 KB Output is correct
123 Correct 15 ms 9856 KB Output is correct
124 Correct 48 ms 13688 KB Output is correct
125 Correct 21 ms 11000 KB Output is correct
126 Correct 20 ms 10368 KB Output is correct
127 Correct 24 ms 11008 KB Output is correct
128 Correct 19 ms 10240 KB Output is correct
129 Correct 18 ms 10368 KB Output is correct
130 Correct 14 ms 10368 KB Output is correct
131 Runtime error 1417 ms 524292 KB Execution killed with signal 9 (could be triggered by violating memory limits)
132 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 8192 KB Output is correct
2 Correct 6 ms 8192 KB Output is correct
3 Correct 6 ms 8192 KB Output is correct
4 Correct 6 ms 8192 KB Output is correct
5 Correct 6 ms 8192 KB Output is correct
6 Correct 6 ms 8192 KB Output is correct
7 Correct 6 ms 8192 KB Output is correct
8 Correct 6 ms 8192 KB Output is correct
9 Correct 6 ms 8192 KB Output is correct
10 Correct 6 ms 8192 KB Output is correct
11 Correct 6 ms 8192 KB Output is correct
12 Correct 6 ms 8192 KB Output is correct
13 Correct 6 ms 8192 KB Output is correct
14 Correct 6 ms 8192 KB Output is correct
15 Correct 6 ms 8192 KB Output is correct
16 Correct 6 ms 8192 KB Output is correct
17 Correct 6 ms 8320 KB Output is correct
18 Correct 7 ms 8192 KB Output is correct
19 Correct 6 ms 8192 KB Output is correct
20 Correct 7 ms 8192 KB Output is correct
21 Correct 6 ms 8192 KB Output is correct
22 Correct 6 ms 8192 KB Output is correct
23 Correct 6 ms 8192 KB Output is correct
24 Correct 32 ms 12692 KB Output is correct
25 Correct 30 ms 12664 KB Output is correct
26 Correct 30 ms 12664 KB Output is correct
27 Correct 13 ms 9728 KB Output is correct
28 Correct 13 ms 9728 KB Output is correct
29 Correct 13 ms 9728 KB Output is correct
30 Correct 13 ms 9728 KB Output is correct
31 Correct 13 ms 9728 KB Output is correct
32 Correct 13 ms 9728 KB Output is correct
33 Correct 21 ms 10880 KB Output is correct
34 Correct 21 ms 10880 KB Output is correct
35 Correct 21 ms 10880 KB Output is correct
36 Correct 21 ms 10880 KB Output is correct
37 Correct 21 ms 10880 KB Output is correct
38 Correct 21 ms 10880 KB Output is correct
39 Correct 42 ms 14464 KB Output is correct
40 Correct 43 ms 14456 KB Output is correct
41 Correct 43 ms 14456 KB Output is correct
42 Correct 35 ms 15480 KB Output is correct
43 Correct 25 ms 12800 KB Output is correct
44 Correct 39 ms 16120 KB Output is correct
45 Correct 28 ms 13440 KB Output is correct
46 Correct 26 ms 12920 KB Output is correct
47 Correct 38 ms 15992 KB Output is correct
48 Correct 83 ms 24184 KB Output is correct
49 Correct 57 ms 17784 KB Output is correct
50 Correct 60 ms 20216 KB Output is correct
51 Correct 71 ms 20760 KB Output is correct
52 Correct 75 ms 21112 KB Output is correct
53 Correct 64 ms 19064 KB Output is correct
54 Correct 39 ms 16128 KB Output is correct
55 Correct 40 ms 16120 KB Output is correct
56 Correct 39 ms 16212 KB Output is correct
57 Correct 39 ms 16120 KB Output is correct
58 Correct 41 ms 16212 KB Output is correct
59 Correct 38 ms 16120 KB Output is correct
60 Correct 96 ms 25976 KB Output is correct
61 Correct 94 ms 26104 KB Output is correct
62 Correct 94 ms 26104 KB Output is correct
63 Correct 93 ms 25976 KB Output is correct
64 Correct 95 ms 26104 KB Output is correct
65 Correct 92 ms 25976 KB Output is correct
66 Correct 104 ms 25068 KB Output is correct
67 Correct 102 ms 25080 KB Output is correct
68 Correct 97 ms 25084 KB Output is correct
69 Correct 6 ms 8192 KB Output is correct
70 Correct 6 ms 8192 KB Output is correct
71 Correct 6 ms 8192 KB Output is correct
72 Correct 6 ms 8192 KB Output is correct
73 Correct 8 ms 8576 KB Output is correct
74 Correct 7 ms 8320 KB Output is correct
75 Correct 7 ms 8320 KB Output is correct
76 Correct 6 ms 8320 KB Output is correct
77 Correct 6 ms 8320 KB Output is correct
78 Correct 6 ms 8192 KB Output is correct
79 Correct 6 ms 8192 KB Output is correct
80 Correct 6 ms 8192 KB Output is correct
81 Correct 6 ms 8192 KB Output is correct
82 Correct 6 ms 8192 KB Output is correct
83 Correct 6 ms 8192 KB Output is correct
84 Correct 6 ms 8192 KB Output is correct
85 Correct 6 ms 8192 KB Output is correct
86 Correct 6 ms 8192 KB Output is correct
87 Correct 6 ms 8192 KB Output is correct
88 Correct 6 ms 8192 KB Output is correct
89 Correct 6 ms 8192 KB Output is correct
90 Correct 8 ms 8832 KB Output is correct
91 Correct 8 ms 8704 KB Output is correct
92 Correct 7 ms 8576 KB Output is correct
93 Correct 7 ms 8448 KB Output is correct
94 Correct 7 ms 8448 KB Output is correct
95 Correct 6 ms 8192 KB Output is correct
96 Correct 6 ms 8192 KB Output is correct
97 Correct 6 ms 8192 KB Output is correct
98 Correct 6 ms 8192 KB Output is correct
99 Correct 7 ms 8192 KB Output is correct
100 Correct 6 ms 8192 KB Output is correct
101 Correct 6 ms 8192 KB Output is correct
102 Correct 6 ms 8192 KB Output is correct
103 Correct 6 ms 8192 KB Output is correct
104 Correct 6 ms 8192 KB Output is correct
105 Correct 7 ms 8320 KB Output is correct
106 Correct 8 ms 8192 KB Output is correct
107 Correct 12 ms 10112 KB Output is correct
108 Correct 9 ms 8960 KB Output is correct
109 Correct 17 ms 11008 KB Output is correct
110 Correct 11 ms 9600 KB Output is correct
111 Correct 14 ms 10496 KB Output is correct
112 Correct 10 ms 8832 KB Output is correct
113 Correct 10 ms 8960 KB Output is correct
114 Correct 10 ms 8832 KB Output is correct
115 Correct 8 ms 8576 KB Output is correct
116 Correct 10 ms 8832 KB Output is correct
117 Correct 9 ms 8704 KB Output is correct
118 Correct 31 ms 11512 KB Output is correct
119 Correct 29 ms 12024 KB Output is correct
120 Correct 37 ms 12536 KB Output is correct
121 Correct 22 ms 12928 KB Output is correct
122 Correct 21 ms 12928 KB Output is correct
123 Correct 21 ms 12928 KB Output is correct
124 Correct 21 ms 12928 KB Output is correct
125 Correct 21 ms 12928 KB Output is correct
126 Correct 11 ms 9088 KB Output is correct
127 Correct 11 ms 9088 KB Output is correct
128 Correct 11 ms 9088 KB Output is correct
129 Correct 11 ms 9088 KB Output is correct
130 Correct 11 ms 9088 KB Output is correct
131 Correct 10 ms 9088 KB Output is correct
132 Correct 47 ms 12804 KB Output is correct
133 Correct 47 ms 12792 KB Output is correct
134 Correct 49 ms 12920 KB Output is correct
135 Correct 15 ms 10368 KB Output is correct
136 Correct 1176 ms 383736 KB Output is correct
137 Correct 672 ms 200184 KB Output is correct
138 Correct 528 ms 158328 KB Output is correct
139 Correct 626 ms 187896 KB Output is correct
140 Correct 424 ms 128760 KB Output is correct
141 Correct 32 ms 12032 KB Output is correct
142 Correct 32 ms 12536 KB Output is correct
143 Correct 42 ms 13304 KB Output is correct
144 Correct 31 ms 11896 KB Output is correct
145 Correct 35 ms 12544 KB Output is correct
146 Correct 28 ms 11640 KB Output is correct
147 Correct 33 ms 12160 KB Output is correct
148 Correct 16 ms 10112 KB Output is correct
149 Correct 39 ms 12700 KB Output is correct
150 Correct 15 ms 9856 KB Output is correct
151 Correct 48 ms 13688 KB Output is correct
152 Correct 21 ms 11000 KB Output is correct
153 Correct 20 ms 10368 KB Output is correct
154 Correct 24 ms 11008 KB Output is correct
155 Correct 19 ms 10240 KB Output is correct
156 Correct 18 ms 10368 KB Output is correct
157 Correct 14 ms 10368 KB Output is correct
158 Runtime error 1417 ms 524292 KB Execution killed with signal 9 (could be triggered by violating memory limits)
159 Halted 0 ms 0 KB -