답안 #414196

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
414196 2021-05-30T08:46:10 Z prvocislo 벽 칠하기 (APIO20_paint) C++17
63 / 100
993 ms 524292 KB
#include <vector>
using namespace std;

int minimumInstructions(int n, int m, int k, vector<int> c, vector<int> a, vector<vector<int>> b) {
  vector<vector<int> > f(k); // ktorym kontraktorom sa paci tato farba
  for (int i = 0; i < m; i++) for (int j : b[i]) f[j].push_back(i), f[j].push_back(i + m);
  const int off = n + 5, maxi = 2 * m + n + 10; 
  vector<vector<int> > s(maxi); // ktore indexy maju toto cislo
  for (int i = 0; i < n;i++)
  {
    for (int j : f[c[i]]) s[off + j - i].push_back(i);
  }
  vector<int> st(n, 0); // mozeme na tomto indexe zacat
  for (int i = 0; i < maxi; i++)
  {
    if (s[i].empty()) continue;
    int miss = s[i][0]-1; // posledne ktore nam chyba
    for (int j = 0; j < s[i].size(); j++)
    {
      if (j && s[i][j - 1] != s[i][j] - 1) miss = s[i][j] - 1;
      if (miss + m <= s[i][j])
        st[s[i][j] - (m - 1)] = 1;
    }
  }
  int last = -1; // posledne zafarbene
  int best = -1e9; // najlepsie ktore mozeme zobrat
  int ans = 0;
  for (int i = 0; i < n; i++)
  {
    if (st[i]) best = i;
    if (last < i)
    {
      if (best + m - 1 < i)
       return -1;
      ans ++;
      last = best + m - 1;
    }
  }
  return 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:18:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   18 |     for (int j = 0; j < s[i].size(); j++)
      |                     ~~^~~~~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Correct 1 ms 204 KB Output is correct
4 Correct 1 ms 276 KB Output is correct
5 Correct 1 ms 204 KB Output is correct
6 Correct 1 ms 204 KB Output is correct
7 Correct 1 ms 284 KB Output is correct
8 Correct 1 ms 204 KB Output is correct
9 Correct 1 ms 204 KB Output is correct
10 Correct 1 ms 204 KB Output is correct
11 Correct 1 ms 204 KB Output is correct
12 Correct 1 ms 204 KB Output is correct
13 Correct 2 ms 2636 KB Output is correct
14 Correct 2 ms 2636 KB Output is correct
15 Correct 2 ms 2716 KB Output is correct
16 Correct 2 ms 2716 KB Output is correct
17 Correct 2 ms 2636 KB Output is correct
18 Correct 2 ms 2636 KB Output is correct
19 Correct 3 ms 2636 KB Output is correct
20 Correct 3 ms 2720 KB Output is correct
21 Correct 3 ms 2636 KB Output is correct
22 Correct 35 ms 7076 KB Output is correct
23 Correct 30 ms 7092 KB Output is correct
24 Correct 29 ms 7084 KB Output is correct
25 Correct 6 ms 1548 KB Output is correct
26 Correct 6 ms 1548 KB Output is correct
27 Correct 6 ms 1612 KB Output is correct
28 Correct 6 ms 1612 KB Output is correct
29 Correct 6 ms 1484 KB Output is correct
30 Correct 7 ms 1484 KB Output is correct
31 Correct 14 ms 4684 KB Output is correct
32 Correct 16 ms 4688 KB Output is correct
33 Correct 15 ms 4688 KB Output is correct
34 Correct 15 ms 4768 KB Output is correct
35 Correct 13 ms 4684 KB Output is correct
36 Correct 13 ms 4684 KB Output is correct
37 Correct 38 ms 8780 KB Output is correct
38 Correct 39 ms 8776 KB Output is correct
39 Correct 38 ms 8728 KB Output is correct
40 Correct 25 ms 6384 KB Output is correct
41 Correct 18 ms 4168 KB Output is correct
42 Correct 27 ms 6760 KB Output is correct
43 Correct 19 ms 4556 KB Output is correct
44 Correct 17 ms 4160 KB Output is correct
45 Correct 26 ms 6800 KB Output is correct
46 Correct 65 ms 18084 KB Output is correct
47 Correct 39 ms 11220 KB Output is correct
48 Correct 44 ms 14720 KB Output is correct
49 Correct 78 ms 16728 KB Output is correct
50 Correct 79 ms 16508 KB Output is correct
51 Correct 62 ms 13172 KB Output is correct
52 Correct 28 ms 7020 KB Output is correct
53 Correct 25 ms 7084 KB Output is correct
54 Correct 31 ms 6856 KB Output is correct
55 Correct 27 ms 6816 KB Output is correct
56 Correct 26 ms 6860 KB Output is correct
57 Correct 27 ms 6768 KB Output is correct
58 Correct 68 ms 19708 KB Output is correct
59 Correct 68 ms 19772 KB Output is correct
60 Correct 70 ms 19748 KB Output is correct
61 Correct 70 ms 19796 KB Output is correct
62 Correct 70 ms 19556 KB Output is correct
63 Correct 67 ms 19772 KB Output is correct
64 Correct 123 ms 21068 KB Output is correct
65 Correct 106 ms 21072 KB Output is correct
66 Correct 105 ms 21112 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Correct 1 ms 204 KB Output is correct
4 Correct 1 ms 276 KB Output is correct
5 Correct 1 ms 204 KB Output is correct
6 Correct 1 ms 204 KB Output is correct
7 Correct 1 ms 284 KB Output is correct
8 Correct 1 ms 204 KB Output is correct
9 Correct 1 ms 204 KB Output is correct
10 Correct 1 ms 204 KB Output is correct
11 Correct 1 ms 204 KB Output is correct
12 Correct 1 ms 204 KB Output is correct
13 Correct 2 ms 2636 KB Output is correct
14 Correct 2 ms 2636 KB Output is correct
15 Correct 2 ms 2716 KB Output is correct
16 Correct 2 ms 2716 KB Output is correct
17 Correct 2 ms 2636 KB Output is correct
18 Correct 2 ms 2636 KB Output is correct
19 Correct 3 ms 2636 KB Output is correct
20 Correct 3 ms 2720 KB Output is correct
21 Correct 3 ms 2636 KB Output is correct
22 Correct 1 ms 204 KB Output is correct
23 Correct 1 ms 204 KB Output is correct
24 Correct 1 ms 204 KB Output is correct
25 Correct 1 ms 280 KB Output is correct
26 Correct 1 ms 276 KB Output is correct
27 Correct 1 ms 280 KB Output is correct
28 Correct 1 ms 332 KB Output is correct
29 Correct 1 ms 332 KB Output is correct
30 Correct 1 ms 332 KB Output is correct
31 Correct 1 ms 332 KB Output is correct
32 Correct 1 ms 280 KB Output is correct
33 Correct 2 ms 2252 KB Output is correct
34 Correct 2 ms 1740 KB Output is correct
35 Correct 2 ms 1612 KB Output is correct
36 Correct 2 ms 2636 KB Output is correct
37 Correct 3 ms 2124 KB Output is correct
38 Correct 2 ms 2380 KB Output is correct
39 Correct 1 ms 204 KB Output is correct
40 Correct 3 ms 2124 KB Output is correct
41 Correct 1 ms 332 KB Output is correct
42 Correct 3 ms 2456 KB Output is correct
43 Correct 3 ms 2456 KB Output is correct
44 Correct 1 ms 204 KB Output is correct
45 Correct 1 ms 332 KB Output is correct
46 Correct 1 ms 332 KB Output is correct
47 Correct 1 ms 460 KB Output is correct
48 Correct 2 ms 428 KB Output is correct
49 Correct 1 ms 276 KB Output is correct
50 Correct 2 ms 2636 KB Output is correct
51 Correct 2 ms 2720 KB Output is correct
52 Correct 2 ms 2636 KB Output is correct
53 Correct 2 ms 2636 KB Output is correct
54 Correct 2 ms 2636 KB Output is correct
55 Correct 2 ms 2636 KB Output is correct
56 Correct 3 ms 2636 KB Output is correct
57 Correct 1 ms 332 KB Output is correct
58 Correct 3 ms 2636 KB Output is correct
59 Correct 1 ms 288 KB Output is correct
60 Correct 3 ms 2708 KB Output is correct
61 Correct 1 ms 284 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Correct 1 ms 204 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Correct 1 ms 204 KB Output is correct
6 Correct 1 ms 276 KB Output is correct
7 Correct 1 ms 204 KB Output is correct
8 Correct 1 ms 204 KB Output is correct
9 Correct 1 ms 284 KB Output is correct
10 Correct 1 ms 204 KB Output is correct
11 Correct 1 ms 204 KB Output is correct
12 Correct 1 ms 204 KB Output is correct
13 Correct 1 ms 204 KB Output is correct
14 Correct 1 ms 204 KB Output is correct
15 Correct 2 ms 2636 KB Output is correct
16 Correct 2 ms 2636 KB Output is correct
17 Correct 2 ms 2716 KB Output is correct
18 Correct 2 ms 2716 KB Output is correct
19 Correct 2 ms 2636 KB Output is correct
20 Correct 2 ms 2636 KB Output is correct
21 Correct 3 ms 2636 KB Output is correct
22 Correct 3 ms 2720 KB Output is correct
23 Correct 3 ms 2636 KB Output is correct
24 Correct 35 ms 7076 KB Output is correct
25 Correct 30 ms 7092 KB Output is correct
26 Correct 29 ms 7084 KB Output is correct
27 Correct 1 ms 204 KB Output is correct
28 Correct 1 ms 280 KB Output is correct
29 Correct 1 ms 276 KB Output is correct
30 Correct 1 ms 280 KB Output is correct
31 Correct 1 ms 332 KB Output is correct
32 Correct 1 ms 332 KB Output is correct
33 Correct 1 ms 332 KB Output is correct
34 Correct 1 ms 332 KB Output is correct
35 Correct 1 ms 280 KB Output is correct
36 Correct 2 ms 2252 KB Output is correct
37 Correct 2 ms 1740 KB Output is correct
38 Correct 2 ms 1612 KB Output is correct
39 Correct 2 ms 2636 KB Output is correct
40 Correct 3 ms 2124 KB Output is correct
41 Correct 2 ms 2380 KB Output is correct
42 Correct 1 ms 204 KB Output is correct
43 Correct 3 ms 2124 KB Output is correct
44 Correct 1 ms 332 KB Output is correct
45 Correct 3 ms 2456 KB Output is correct
46 Correct 3 ms 2456 KB Output is correct
47 Correct 1 ms 204 KB Output is correct
48 Correct 1 ms 332 KB Output is correct
49 Correct 1 ms 332 KB Output is correct
50 Correct 1 ms 460 KB Output is correct
51 Correct 2 ms 428 KB Output is correct
52 Correct 1 ms 276 KB Output is correct
53 Correct 2 ms 2636 KB Output is correct
54 Correct 2 ms 2720 KB Output is correct
55 Correct 2 ms 2636 KB Output is correct
56 Correct 2 ms 2636 KB Output is correct
57 Correct 2 ms 2636 KB Output is correct
58 Correct 2 ms 2636 KB Output is correct
59 Correct 3 ms 2636 KB Output is correct
60 Correct 1 ms 332 KB Output is correct
61 Correct 3 ms 2636 KB Output is correct
62 Correct 1 ms 288 KB Output is correct
63 Correct 3 ms 2708 KB Output is correct
64 Correct 1 ms 284 KB Output is correct
65 Correct 2 ms 716 KB Output is correct
66 Correct 2 ms 460 KB Output is correct
67 Correct 3 ms 844 KB Output is correct
68 Correct 2 ms 716 KB Output is correct
69 Correct 2 ms 844 KB Output is correct
70 Correct 4 ms 2636 KB Output is correct
71 Correct 4 ms 2380 KB Output is correct
72 Correct 4 ms 2124 KB Output is correct
73 Correct 3 ms 2124 KB Output is correct
74 Correct 4 ms 2508 KB Output is correct
75 Correct 4 ms 2852 KB Output is correct
76 Correct 28 ms 5516 KB Output is correct
77 Correct 33 ms 6512 KB Output is correct
78 Correct 36 ms 7100 KB Output is correct
79 Correct 4 ms 1484 KB Output is correct
80 Correct 5 ms 1484 KB Output is correct
81 Correct 4 ms 1484 KB Output is correct
82 Correct 4 ms 1432 KB Output is correct
83 Correct 4 ms 1484 KB Output is correct
84 Correct 5 ms 3148 KB Output is correct
85 Correct 5 ms 3148 KB Output is correct
86 Correct 5 ms 3148 KB Output is correct
87 Correct 5 ms 3148 KB Output is correct
88 Correct 5 ms 3108 KB Output is correct
89 Correct 5 ms 3112 KB Output is correct
90 Correct 40 ms 7556 KB Output is correct
91 Correct 40 ms 7580 KB Output is correct
92 Correct 40 ms 7620 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Correct 1 ms 204 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Correct 1 ms 204 KB Output is correct
6 Correct 1 ms 276 KB Output is correct
7 Correct 1 ms 204 KB Output is correct
8 Correct 1 ms 204 KB Output is correct
9 Correct 1 ms 284 KB Output is correct
10 Correct 1 ms 204 KB Output is correct
11 Correct 1 ms 204 KB Output is correct
12 Correct 1 ms 204 KB Output is correct
13 Correct 1 ms 204 KB Output is correct
14 Correct 1 ms 204 KB Output is correct
15 Correct 2 ms 2636 KB Output is correct
16 Correct 2 ms 2636 KB Output is correct
17 Correct 2 ms 2716 KB Output is correct
18 Correct 2 ms 2716 KB Output is correct
19 Correct 2 ms 2636 KB Output is correct
20 Correct 2 ms 2636 KB Output is correct
21 Correct 3 ms 2636 KB Output is correct
22 Correct 3 ms 2720 KB Output is correct
23 Correct 3 ms 2636 KB Output is correct
24 Correct 35 ms 7076 KB Output is correct
25 Correct 30 ms 7092 KB Output is correct
26 Correct 29 ms 7084 KB Output is correct
27 Correct 6 ms 1548 KB Output is correct
28 Correct 6 ms 1548 KB Output is correct
29 Correct 6 ms 1612 KB Output is correct
30 Correct 6 ms 1612 KB Output is correct
31 Correct 6 ms 1484 KB Output is correct
32 Correct 7 ms 1484 KB Output is correct
33 Correct 14 ms 4684 KB Output is correct
34 Correct 16 ms 4688 KB Output is correct
35 Correct 15 ms 4688 KB Output is correct
36 Correct 15 ms 4768 KB Output is correct
37 Correct 13 ms 4684 KB Output is correct
38 Correct 13 ms 4684 KB Output is correct
39 Correct 38 ms 8780 KB Output is correct
40 Correct 39 ms 8776 KB Output is correct
41 Correct 38 ms 8728 KB Output is correct
42 Correct 1 ms 204 KB Output is correct
43 Correct 1 ms 280 KB Output is correct
44 Correct 1 ms 276 KB Output is correct
45 Correct 1 ms 280 KB Output is correct
46 Correct 1 ms 332 KB Output is correct
47 Correct 1 ms 332 KB Output is correct
48 Correct 1 ms 332 KB Output is correct
49 Correct 1 ms 332 KB Output is correct
50 Correct 1 ms 280 KB Output is correct
51 Correct 2 ms 2252 KB Output is correct
52 Correct 2 ms 1740 KB Output is correct
53 Correct 2 ms 1612 KB Output is correct
54 Correct 2 ms 2636 KB Output is correct
55 Correct 3 ms 2124 KB Output is correct
56 Correct 2 ms 2380 KB Output is correct
57 Correct 1 ms 204 KB Output is correct
58 Correct 3 ms 2124 KB Output is correct
59 Correct 1 ms 332 KB Output is correct
60 Correct 3 ms 2456 KB Output is correct
61 Correct 3 ms 2456 KB Output is correct
62 Correct 1 ms 204 KB Output is correct
63 Correct 1 ms 332 KB Output is correct
64 Correct 1 ms 332 KB Output is correct
65 Correct 1 ms 460 KB Output is correct
66 Correct 2 ms 428 KB Output is correct
67 Correct 1 ms 276 KB Output is correct
68 Correct 2 ms 2636 KB Output is correct
69 Correct 2 ms 2720 KB Output is correct
70 Correct 2 ms 2636 KB Output is correct
71 Correct 2 ms 2636 KB Output is correct
72 Correct 2 ms 2636 KB Output is correct
73 Correct 2 ms 2636 KB Output is correct
74 Correct 3 ms 2636 KB Output is correct
75 Correct 1 ms 332 KB Output is correct
76 Correct 3 ms 2636 KB Output is correct
77 Correct 1 ms 288 KB Output is correct
78 Correct 3 ms 2708 KB Output is correct
79 Correct 1 ms 284 KB Output is correct
80 Correct 2 ms 716 KB Output is correct
81 Correct 2 ms 460 KB Output is correct
82 Correct 3 ms 844 KB Output is correct
83 Correct 2 ms 716 KB Output is correct
84 Correct 2 ms 844 KB Output is correct
85 Correct 4 ms 2636 KB Output is correct
86 Correct 4 ms 2380 KB Output is correct
87 Correct 4 ms 2124 KB Output is correct
88 Correct 3 ms 2124 KB Output is correct
89 Correct 4 ms 2508 KB Output is correct
90 Correct 4 ms 2852 KB Output is correct
91 Correct 28 ms 5516 KB Output is correct
92 Correct 33 ms 6512 KB Output is correct
93 Correct 36 ms 7100 KB Output is correct
94 Correct 4 ms 1484 KB Output is correct
95 Correct 5 ms 1484 KB Output is correct
96 Correct 4 ms 1484 KB Output is correct
97 Correct 4 ms 1432 KB Output is correct
98 Correct 4 ms 1484 KB Output is correct
99 Correct 5 ms 3148 KB Output is correct
100 Correct 5 ms 3148 KB Output is correct
101 Correct 5 ms 3148 KB Output is correct
102 Correct 5 ms 3148 KB Output is correct
103 Correct 5 ms 3108 KB Output is correct
104 Correct 5 ms 3112 KB Output is correct
105 Correct 40 ms 7556 KB Output is correct
106 Correct 40 ms 7580 KB Output is correct
107 Correct 40 ms 7620 KB Output is correct
108 Correct 7 ms 1612 KB Output is correct
109 Correct 270 ms 117016 KB Output is correct
110 Correct 125 ms 51256 KB Output is correct
111 Correct 107 ms 46964 KB Output is correct
112 Correct 126 ms 59528 KB Output is correct
113 Correct 81 ms 30508 KB Output is correct
114 Correct 18 ms 5424 KB Output is correct
115 Correct 19 ms 5288 KB Output is correct
116 Correct 23 ms 6088 KB Output is correct
117 Correct 18 ms 4808 KB Output is correct
118 Correct 21 ms 5620 KB Output is correct
119 Correct 17 ms 5144 KB Output is correct
120 Correct 29 ms 5844 KB Output is correct
121 Correct 9 ms 2124 KB Output is correct
122 Correct 35 ms 6144 KB Output is correct
123 Correct 10 ms 1868 KB Output is correct
124 Correct 40 ms 7488 KB Output is correct
125 Correct 12 ms 2868 KB Output is correct
126 Correct 12 ms 3264 KB Output is correct
127 Correct 13 ms 4300 KB Output is correct
128 Correct 10 ms 3488 KB Output is correct
129 Correct 11 ms 3020 KB Output is correct
130 Correct 7 ms 1580 KB Output is correct
131 Correct 414 ms 161560 KB Output is correct
132 Correct 219 ms 83288 KB Output is correct
133 Correct 195 ms 82384 KB Output is correct
134 Correct 186 ms 81160 KB Output is correct
135 Correct 190 ms 80148 KB Output is correct
136 Correct 32 ms 6596 KB Output is correct
137 Correct 29 ms 6648 KB Output is correct
138 Correct 26 ms 6656 KB Output is correct
139 Correct 27 ms 6596 KB Output is correct
140 Correct 27 ms 6628 KB Output is correct
141 Correct 28 ms 6560 KB Output is correct
142 Correct 51 ms 9368 KB Output is correct
143 Correct 16 ms 3180 KB Output is correct
144 Correct 51 ms 9284 KB Output is correct
145 Correct 14 ms 3228 KB Output is correct
146 Correct 52 ms 9280 KB Output is correct
147 Correct 15 ms 3216 KB Output is correct
148 Correct 15 ms 5068 KB Output is correct
149 Correct 15 ms 4900 KB Output is correct
150 Correct 16 ms 4936 KB Output is correct
151 Correct 14 ms 4824 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Correct 1 ms 204 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Correct 1 ms 204 KB Output is correct
6 Correct 1 ms 276 KB Output is correct
7 Correct 1 ms 204 KB Output is correct
8 Correct 1 ms 204 KB Output is correct
9 Correct 1 ms 284 KB Output is correct
10 Correct 1 ms 204 KB Output is correct
11 Correct 1 ms 204 KB Output is correct
12 Correct 1 ms 204 KB Output is correct
13 Correct 1 ms 204 KB Output is correct
14 Correct 1 ms 204 KB Output is correct
15 Correct 2 ms 2636 KB Output is correct
16 Correct 2 ms 2636 KB Output is correct
17 Correct 2 ms 2716 KB Output is correct
18 Correct 2 ms 2716 KB Output is correct
19 Correct 2 ms 2636 KB Output is correct
20 Correct 2 ms 2636 KB Output is correct
21 Correct 3 ms 2636 KB Output is correct
22 Correct 3 ms 2720 KB Output is correct
23 Correct 3 ms 2636 KB Output is correct
24 Correct 35 ms 7076 KB Output is correct
25 Correct 30 ms 7092 KB Output is correct
26 Correct 29 ms 7084 KB Output is correct
27 Correct 6 ms 1548 KB Output is correct
28 Correct 6 ms 1548 KB Output is correct
29 Correct 6 ms 1612 KB Output is correct
30 Correct 6 ms 1612 KB Output is correct
31 Correct 6 ms 1484 KB Output is correct
32 Correct 7 ms 1484 KB Output is correct
33 Correct 14 ms 4684 KB Output is correct
34 Correct 16 ms 4688 KB Output is correct
35 Correct 15 ms 4688 KB Output is correct
36 Correct 15 ms 4768 KB Output is correct
37 Correct 13 ms 4684 KB Output is correct
38 Correct 13 ms 4684 KB Output is correct
39 Correct 38 ms 8780 KB Output is correct
40 Correct 39 ms 8776 KB Output is correct
41 Correct 38 ms 8728 KB Output is correct
42 Correct 25 ms 6384 KB Output is correct
43 Correct 18 ms 4168 KB Output is correct
44 Correct 27 ms 6760 KB Output is correct
45 Correct 19 ms 4556 KB Output is correct
46 Correct 17 ms 4160 KB Output is correct
47 Correct 26 ms 6800 KB Output is correct
48 Correct 65 ms 18084 KB Output is correct
49 Correct 39 ms 11220 KB Output is correct
50 Correct 44 ms 14720 KB Output is correct
51 Correct 78 ms 16728 KB Output is correct
52 Correct 79 ms 16508 KB Output is correct
53 Correct 62 ms 13172 KB Output is correct
54 Correct 28 ms 7020 KB Output is correct
55 Correct 25 ms 7084 KB Output is correct
56 Correct 31 ms 6856 KB Output is correct
57 Correct 27 ms 6816 KB Output is correct
58 Correct 26 ms 6860 KB Output is correct
59 Correct 27 ms 6768 KB Output is correct
60 Correct 68 ms 19708 KB Output is correct
61 Correct 68 ms 19772 KB Output is correct
62 Correct 70 ms 19748 KB Output is correct
63 Correct 70 ms 19796 KB Output is correct
64 Correct 70 ms 19556 KB Output is correct
65 Correct 67 ms 19772 KB Output is correct
66 Correct 123 ms 21068 KB Output is correct
67 Correct 106 ms 21072 KB Output is correct
68 Correct 105 ms 21112 KB Output is correct
69 Correct 1 ms 204 KB Output is correct
70 Correct 1 ms 280 KB Output is correct
71 Correct 1 ms 276 KB Output is correct
72 Correct 1 ms 280 KB Output is correct
73 Correct 1 ms 332 KB Output is correct
74 Correct 1 ms 332 KB Output is correct
75 Correct 1 ms 332 KB Output is correct
76 Correct 1 ms 332 KB Output is correct
77 Correct 1 ms 280 KB Output is correct
78 Correct 2 ms 2252 KB Output is correct
79 Correct 2 ms 1740 KB Output is correct
80 Correct 2 ms 1612 KB Output is correct
81 Correct 2 ms 2636 KB Output is correct
82 Correct 3 ms 2124 KB Output is correct
83 Correct 2 ms 2380 KB Output is correct
84 Correct 1 ms 204 KB Output is correct
85 Correct 3 ms 2124 KB Output is correct
86 Correct 1 ms 332 KB Output is correct
87 Correct 3 ms 2456 KB Output is correct
88 Correct 3 ms 2456 KB Output is correct
89 Correct 1 ms 204 KB Output is correct
90 Correct 1 ms 332 KB Output is correct
91 Correct 1 ms 332 KB Output is correct
92 Correct 1 ms 460 KB Output is correct
93 Correct 2 ms 428 KB Output is correct
94 Correct 1 ms 276 KB Output is correct
95 Correct 2 ms 2636 KB Output is correct
96 Correct 2 ms 2720 KB Output is correct
97 Correct 2 ms 2636 KB Output is correct
98 Correct 2 ms 2636 KB Output is correct
99 Correct 2 ms 2636 KB Output is correct
100 Correct 2 ms 2636 KB Output is correct
101 Correct 3 ms 2636 KB Output is correct
102 Correct 1 ms 332 KB Output is correct
103 Correct 3 ms 2636 KB Output is correct
104 Correct 1 ms 288 KB Output is correct
105 Correct 3 ms 2708 KB Output is correct
106 Correct 1 ms 284 KB Output is correct
107 Correct 2 ms 716 KB Output is correct
108 Correct 2 ms 460 KB Output is correct
109 Correct 3 ms 844 KB Output is correct
110 Correct 2 ms 716 KB Output is correct
111 Correct 2 ms 844 KB Output is correct
112 Correct 4 ms 2636 KB Output is correct
113 Correct 4 ms 2380 KB Output is correct
114 Correct 4 ms 2124 KB Output is correct
115 Correct 3 ms 2124 KB Output is correct
116 Correct 4 ms 2508 KB Output is correct
117 Correct 4 ms 2852 KB Output is correct
118 Correct 28 ms 5516 KB Output is correct
119 Correct 33 ms 6512 KB Output is correct
120 Correct 36 ms 7100 KB Output is correct
121 Correct 4 ms 1484 KB Output is correct
122 Correct 5 ms 1484 KB Output is correct
123 Correct 4 ms 1484 KB Output is correct
124 Correct 4 ms 1432 KB Output is correct
125 Correct 4 ms 1484 KB Output is correct
126 Correct 5 ms 3148 KB Output is correct
127 Correct 5 ms 3148 KB Output is correct
128 Correct 5 ms 3148 KB Output is correct
129 Correct 5 ms 3148 KB Output is correct
130 Correct 5 ms 3108 KB Output is correct
131 Correct 5 ms 3112 KB Output is correct
132 Correct 40 ms 7556 KB Output is correct
133 Correct 40 ms 7580 KB Output is correct
134 Correct 40 ms 7620 KB Output is correct
135 Correct 7 ms 1612 KB Output is correct
136 Correct 270 ms 117016 KB Output is correct
137 Correct 125 ms 51256 KB Output is correct
138 Correct 107 ms 46964 KB Output is correct
139 Correct 126 ms 59528 KB Output is correct
140 Correct 81 ms 30508 KB Output is correct
141 Correct 18 ms 5424 KB Output is correct
142 Correct 19 ms 5288 KB Output is correct
143 Correct 23 ms 6088 KB Output is correct
144 Correct 18 ms 4808 KB Output is correct
145 Correct 21 ms 5620 KB Output is correct
146 Correct 17 ms 5144 KB Output is correct
147 Correct 29 ms 5844 KB Output is correct
148 Correct 9 ms 2124 KB Output is correct
149 Correct 35 ms 6144 KB Output is correct
150 Correct 10 ms 1868 KB Output is correct
151 Correct 40 ms 7488 KB Output is correct
152 Correct 12 ms 2868 KB Output is correct
153 Correct 12 ms 3264 KB Output is correct
154 Correct 13 ms 4300 KB Output is correct
155 Correct 10 ms 3488 KB Output is correct
156 Correct 11 ms 3020 KB Output is correct
157 Correct 7 ms 1580 KB Output is correct
158 Correct 414 ms 161560 KB Output is correct
159 Correct 219 ms 83288 KB Output is correct
160 Correct 195 ms 82384 KB Output is correct
161 Correct 186 ms 81160 KB Output is correct
162 Correct 190 ms 80148 KB Output is correct
163 Correct 32 ms 6596 KB Output is correct
164 Correct 29 ms 6648 KB Output is correct
165 Correct 26 ms 6656 KB Output is correct
166 Correct 27 ms 6596 KB Output is correct
167 Correct 27 ms 6628 KB Output is correct
168 Correct 28 ms 6560 KB Output is correct
169 Correct 51 ms 9368 KB Output is correct
170 Correct 16 ms 3180 KB Output is correct
171 Correct 51 ms 9284 KB Output is correct
172 Correct 14 ms 3228 KB Output is correct
173 Correct 52 ms 9280 KB Output is correct
174 Correct 15 ms 3216 KB Output is correct
175 Correct 15 ms 5068 KB Output is correct
176 Correct 15 ms 4900 KB Output is correct
177 Correct 16 ms 4936 KB Output is correct
178 Correct 14 ms 4824 KB Output is correct
179 Correct 20 ms 4496 KB Output is correct
180 Correct 635 ms 213112 KB Output is correct
181 Correct 732 ms 306584 KB Output is correct
182 Correct 993 ms 403160 KB Output is correct
183 Correct 585 ms 254148 KB Output is correct
184 Correct 408 ms 130692 KB Output is correct
185 Correct 43 ms 8448 KB Output is correct
186 Correct 40 ms 11012 KB Output is correct
187 Correct 49 ms 10012 KB Output is correct
188 Correct 71 ms 12052 KB Output is correct
189 Correct 75 ms 12640 KB Output is correct
190 Correct 89 ms 13944 KB Output is correct
191 Correct 75 ms 13356 KB Output is correct
192 Correct 53 ms 9796 KB Output is correct
193 Correct 48 ms 9392 KB Output is correct
194 Correct 31 ms 7028 KB Output is correct
195 Runtime error 918 ms 524292 KB Execution killed with signal 9
196 Halted 0 ms 0 KB -