답안 #430163

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
430163 2021-06-16T11:49:37 Z marcipan5000 벽 칠하기 (APIO20_paint) C++14
51 / 100
596 ms 31008 KB
#include "paint.h"
#include <bits/stdc++.h>

using namespace std;

int n,m,k;
vector<int> c;
vector<int> a;
vector<vector<int> > b;
vector<vector<int> > sz;
int co[100001];
int mc;
vector<int> ans;

int bias(int a,int b) {
    return((a-b+n*m)%m);
}

int minimumInstructions(int N1, int M1, int K1, vector<int> C1, vector<int> A1, vector<vector<int> > B1) {
    n=N1;
    m=M1;
    k=K1;
    c=C1;
    a=A1;
    b=B1;
    sz.resize(k);
    for (int i=0;i<b.size();i++) {
        for (int j=0;j<b[i].size();j++) {
            sz[b[i][j]].push_back(i);
        }
    }
    for (int i=0;i<m;i++) {
        for (int j=0;j<sz[c[i]].size();j++) {
            co[bias(sz[c[i]][j],i)]++;
            if (co[bias(sz[c[i]][j],i)]==m) {
                mc++;
            }
        }
    }
    if (mc>0) {
        ans.push_back(0);
    }
    for (int i=m;i<n;i++) {
        for (int j=0;j<sz[c[i-m]].size();j++) {
            co[bias(sz[c[i-m]][j],i-m)]--;
            if (co[bias(sz[c[i-m]][j],i-m)]==m-1) {
                mc--;
            }
        }
        for (int j=0;j<sz[c[i]].size();j++) {
            co[bias(sz[c[i]][j],i)]++;
            if (co[bias(sz[c[i]][j],i)]==m) {
                mc++;
            }
        }
        if (mc>0) {
            ans.push_back(i-m+1);
        }
    }
    int l=0;
    int h=0;
    int an=0;
    if ((ans.size()==0)||(ans[0]>0)) {
        return(-1);
    }
    while (h<n) {
        while ((l<ans.size())&&(ans[l]<=h)) {
            l++;
        }
        if (ans[l-1]==h-m) {
            return(-1);
        }
        h=ans[l-1]+m;
        an++;
    }
    return(an);
}

Compilation message

paint.cpp: In function 'int minimumInstructions(int, int, int, std::vector<int>, std::vector<int>, std::vector<std::vector<int> >)':
paint.cpp:27:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   27 |     for (int i=0;i<b.size();i++) {
      |                  ~^~~~~~~~~
paint.cpp:28:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   28 |         for (int j=0;j<b[i].size();j++) {
      |                      ~^~~~~~~~~~~~
paint.cpp:33:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   33 |         for (int j=0;j<sz[c[i]].size();j++) {
      |                      ~^~~~~~~~~~~~~~~~
paint.cpp:44:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   44 |         for (int j=0;j<sz[c[i-m]].size();j++) {
      |                      ~^~~~~~~~~~~~~~~~~~
paint.cpp:50:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   50 |         for (int j=0;j<sz[c[i]].size();j++) {
      |                      ~^~~~~~~~~~~~~~~~
paint.cpp:67:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   67 |         while ((l<ans.size())&&(ans[l]<=h)) {
      |                 ~^~~~~~~~~~~
# 결과 실행 시간 메모리 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 204 KB Output is correct
7 Correct 1 ms 320 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 2636 KB Output is correct
16 Correct 3 ms 2636 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 2 ms 2656 KB Output is correct
21 Correct 2 ms 2740 KB Output is correct
22 Correct 27 ms 7568 KB Output is correct
23 Correct 27 ms 7496 KB Output is correct
24 Correct 27 ms 7536 KB Output is correct
25 Correct 4 ms 716 KB Output is correct
26 Correct 4 ms 716 KB Output is correct
27 Correct 4 ms 588 KB Output is correct
28 Correct 5 ms 588 KB Output is correct
29 Correct 4 ms 544 KB Output is correct
30 Correct 4 ms 564 KB Output is correct
31 Correct 12 ms 4284 KB Output is correct
32 Correct 12 ms 4300 KB Output is correct
33 Correct 12 ms 4328 KB Output is correct
34 Correct 15 ms 4300 KB Output is correct
35 Correct 12 ms 4360 KB Output is correct
36 Correct 12 ms 4360 KB Output is correct
37 Correct 43 ms 8032 KB Output is correct
38 Correct 36 ms 8092 KB Output is correct
39 Correct 36 ms 8000 KB Output is correct
40 Correct 14 ms 2120 KB Output is correct
41 Correct 11 ms 1408 KB Output is correct
42 Correct 17 ms 2044 KB Output is correct
43 Correct 11 ms 1208 KB Output is correct
44 Correct 9 ms 1100 KB Output is correct
45 Correct 15 ms 1612 KB Output is correct
46 Runtime error 62 ms 31008 KB Execution killed with signal 11
47 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 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 204 KB Output is correct
7 Correct 1 ms 320 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 2636 KB Output is correct
16 Correct 3 ms 2636 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 2 ms 2656 KB Output is correct
21 Correct 2 ms 2740 KB Output is correct
22 Correct 1 ms 296 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 204 KB Output is correct
26 Correct 1 ms 204 KB Output is correct
27 Correct 1 ms 204 KB Output is correct
28 Correct 1 ms 204 KB Output is correct
29 Correct 1 ms 204 KB Output is correct
30 Correct 1 ms 204 KB Output is correct
31 Correct 1 ms 204 KB Output is correct
32 Correct 1 ms 204 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 3 ms 2636 KB Output is correct
37 Correct 2 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 2 ms 2124 KB Output is correct
41 Correct 1 ms 332 KB Output is correct
42 Correct 2 ms 2508 KB Output is correct
43 Correct 2 ms 2508 KB Output is correct
44 Correct 1 ms 204 KB Output is correct
45 Correct 2 ms 204 KB Output is correct
46 Correct 1 ms 204 KB Output is correct
47 Correct 1 ms 204 KB Output is correct
48 Correct 1 ms 204 KB Output is correct
49 Correct 1 ms 204 KB Output is correct
50 Correct 3 ms 2636 KB Output is correct
51 Correct 3 ms 2636 KB Output is correct
52 Correct 2 ms 2608 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 2 ms 2636 KB Output is correct
57 Correct 1 ms 332 KB Output is correct
58 Correct 2 ms 2636 KB Output is correct
59 Correct 1 ms 332 KB Output is correct
60 Correct 2 ms 2636 KB Output is correct
61 Correct 1 ms 332 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 296 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 204 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 320 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 2636 KB Output is correct
18 Correct 3 ms 2636 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 2 ms 2656 KB Output is correct
23 Correct 2 ms 2740 KB Output is correct
24 Correct 27 ms 7568 KB Output is correct
25 Correct 27 ms 7496 KB Output is correct
26 Correct 27 ms 7536 KB Output is correct
27 Correct 1 ms 204 KB Output is correct
28 Correct 1 ms 204 KB Output is correct
29 Correct 1 ms 204 KB Output is correct
30 Correct 1 ms 204 KB Output is correct
31 Correct 1 ms 204 KB Output is correct
32 Correct 1 ms 204 KB Output is correct
33 Correct 1 ms 204 KB Output is correct
34 Correct 1 ms 204 KB Output is correct
35 Correct 1 ms 204 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 3 ms 2636 KB Output is correct
40 Correct 2 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 2 ms 2124 KB Output is correct
44 Correct 1 ms 332 KB Output is correct
45 Correct 2 ms 2508 KB Output is correct
46 Correct 2 ms 2508 KB Output is correct
47 Correct 1 ms 204 KB Output is correct
48 Correct 2 ms 204 KB Output is correct
49 Correct 1 ms 204 KB Output is correct
50 Correct 1 ms 204 KB Output is correct
51 Correct 1 ms 204 KB Output is correct
52 Correct 1 ms 204 KB Output is correct
53 Correct 3 ms 2636 KB Output is correct
54 Correct 3 ms 2636 KB Output is correct
55 Correct 2 ms 2608 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 2 ms 2636 KB Output is correct
60 Correct 1 ms 332 KB Output is correct
61 Correct 2 ms 2636 KB Output is correct
62 Correct 1 ms 332 KB Output is correct
63 Correct 2 ms 2636 KB Output is correct
64 Correct 1 ms 332 KB Output is correct
65 Correct 2 ms 332 KB Output is correct
66 Correct 2 ms 204 KB Output is correct
67 Correct 3 ms 332 KB Output is correct
68 Correct 2 ms 204 KB Output is correct
69 Correct 3 ms 332 KB Output is correct
70 Correct 4 ms 2508 KB Output is correct
71 Correct 4 ms 2228 KB Output is correct
72 Correct 5 ms 1996 KB Output is correct
73 Correct 3 ms 2124 KB Output is correct
74 Correct 4 ms 2380 KB Output is correct
75 Correct 4 ms 2764 KB Output is correct
76 Correct 26 ms 5624 KB Output is correct
77 Correct 25 ms 6536 KB Output is correct
78 Correct 40 ms 7484 KB Output is correct
79 Correct 4 ms 332 KB Output is correct
80 Correct 5 ms 332 KB Output is correct
81 Correct 4 ms 332 KB Output is correct
82 Correct 4 ms 332 KB Output is correct
83 Correct 4 ms 332 KB Output is correct
84 Correct 5 ms 3020 KB Output is correct
85 Correct 5 ms 3020 KB Output is correct
86 Correct 5 ms 2996 KB Output is correct
87 Correct 5 ms 3020 KB Output is correct
88 Correct 5 ms 3020 KB Output is correct
89 Correct 5 ms 2996 KB Output is correct
90 Correct 45 ms 7952 KB Output is correct
91 Correct 52 ms 7916 KB Output is correct
92 Correct 43 ms 7816 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 296 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 204 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 320 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 2636 KB Output is correct
18 Correct 3 ms 2636 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 2 ms 2656 KB Output is correct
23 Correct 2 ms 2740 KB Output is correct
24 Correct 27 ms 7568 KB Output is correct
25 Correct 27 ms 7496 KB Output is correct
26 Correct 27 ms 7536 KB Output is correct
27 Correct 4 ms 716 KB Output is correct
28 Correct 4 ms 716 KB Output is correct
29 Correct 4 ms 588 KB Output is correct
30 Correct 5 ms 588 KB Output is correct
31 Correct 4 ms 544 KB Output is correct
32 Correct 4 ms 564 KB Output is correct
33 Correct 12 ms 4284 KB Output is correct
34 Correct 12 ms 4300 KB Output is correct
35 Correct 12 ms 4328 KB Output is correct
36 Correct 15 ms 4300 KB Output is correct
37 Correct 12 ms 4360 KB Output is correct
38 Correct 12 ms 4360 KB Output is correct
39 Correct 43 ms 8032 KB Output is correct
40 Correct 36 ms 8092 KB Output is correct
41 Correct 36 ms 8000 KB Output is correct
42 Correct 1 ms 204 KB Output is correct
43 Correct 1 ms 204 KB Output is correct
44 Correct 1 ms 204 KB Output is correct
45 Correct 1 ms 204 KB Output is correct
46 Correct 1 ms 204 KB Output is correct
47 Correct 1 ms 204 KB Output is correct
48 Correct 1 ms 204 KB Output is correct
49 Correct 1 ms 204 KB Output is correct
50 Correct 1 ms 204 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 3 ms 2636 KB Output is correct
55 Correct 2 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 2 ms 2124 KB Output is correct
59 Correct 1 ms 332 KB Output is correct
60 Correct 2 ms 2508 KB Output is correct
61 Correct 2 ms 2508 KB Output is correct
62 Correct 1 ms 204 KB Output is correct
63 Correct 2 ms 204 KB Output is correct
64 Correct 1 ms 204 KB Output is correct
65 Correct 1 ms 204 KB Output is correct
66 Correct 1 ms 204 KB Output is correct
67 Correct 1 ms 204 KB Output is correct
68 Correct 3 ms 2636 KB Output is correct
69 Correct 3 ms 2636 KB Output is correct
70 Correct 2 ms 2608 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 2 ms 2636 KB Output is correct
75 Correct 1 ms 332 KB Output is correct
76 Correct 2 ms 2636 KB Output is correct
77 Correct 1 ms 332 KB Output is correct
78 Correct 2 ms 2636 KB Output is correct
79 Correct 1 ms 332 KB Output is correct
80 Correct 2 ms 332 KB Output is correct
81 Correct 2 ms 204 KB Output is correct
82 Correct 3 ms 332 KB Output is correct
83 Correct 2 ms 204 KB Output is correct
84 Correct 3 ms 332 KB Output is correct
85 Correct 4 ms 2508 KB Output is correct
86 Correct 4 ms 2228 KB Output is correct
87 Correct 5 ms 1996 KB Output is correct
88 Correct 3 ms 2124 KB Output is correct
89 Correct 4 ms 2380 KB Output is correct
90 Correct 4 ms 2764 KB Output is correct
91 Correct 26 ms 5624 KB Output is correct
92 Correct 25 ms 6536 KB Output is correct
93 Correct 40 ms 7484 KB Output is correct
94 Correct 4 ms 332 KB Output is correct
95 Correct 5 ms 332 KB Output is correct
96 Correct 4 ms 332 KB Output is correct
97 Correct 4 ms 332 KB Output is correct
98 Correct 4 ms 332 KB Output is correct
99 Correct 5 ms 3020 KB Output is correct
100 Correct 5 ms 3020 KB Output is correct
101 Correct 5 ms 2996 KB Output is correct
102 Correct 5 ms 3020 KB Output is correct
103 Correct 5 ms 3020 KB Output is correct
104 Correct 5 ms 2996 KB Output is correct
105 Correct 45 ms 7952 KB Output is correct
106 Correct 52 ms 7916 KB Output is correct
107 Correct 43 ms 7816 KB Output is correct
108 Correct 4 ms 692 KB Output is correct
109 Correct 422 ms 696 KB Output is correct
110 Correct 220 ms 460 KB Output is correct
111 Correct 168 ms 588 KB Output is correct
112 Correct 196 ms 640 KB Output is correct
113 Correct 126 ms 620 KB Output is correct
114 Correct 19 ms 4556 KB Output is correct
115 Correct 18 ms 4208 KB Output is correct
116 Correct 23 ms 4912 KB Output is correct
117 Correct 17 ms 3916 KB Output is correct
118 Correct 21 ms 4504 KB Output is correct
119 Correct 16 ms 4300 KB Output is correct
120 Correct 25 ms 5324 KB Output is correct
121 Correct 7 ms 1476 KB Output is correct
122 Correct 36 ms 5512 KB Output is correct
123 Correct 6 ms 1276 KB Output is correct
124 Correct 34 ms 6612 KB Output is correct
125 Correct 10 ms 1908 KB Output is correct
126 Correct 12 ms 2808 KB Output is correct
127 Correct 13 ms 3660 KB Output is correct
128 Correct 9 ms 3020 KB Output is correct
129 Correct 10 ms 2584 KB Output is correct
130 Correct 5 ms 716 KB Output is correct
131 Correct 596 ms 860 KB Output is correct
132 Correct 416 ms 716 KB Output is correct
133 Correct 347 ms 716 KB Output is correct
134 Correct 297 ms 768 KB Output is correct
135 Correct 267 ms 760 KB Output is correct
136 Correct 26 ms 5424 KB Output is correct
137 Correct 26 ms 5444 KB Output is correct
138 Correct 29 ms 5400 KB Output is correct
139 Correct 26 ms 5380 KB Output is correct
140 Correct 27 ms 5436 KB Output is correct
141 Correct 26 ms 5452 KB Output is correct
142 Correct 49 ms 8480 KB Output is correct
143 Correct 11 ms 2252 KB Output is correct
144 Correct 60 ms 8516 KB Output is correct
145 Correct 11 ms 2232 KB Output is correct
146 Correct 44 ms 8408 KB Output is correct
147 Correct 13 ms 2264 KB Output is correct
148 Correct 14 ms 4376 KB Output is correct
149 Correct 16 ms 4300 KB Output is correct
150 Correct 20 ms 4220 KB Output is correct
151 Correct 14 ms 4172 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 296 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 204 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 320 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 2636 KB Output is correct
18 Correct 3 ms 2636 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 2 ms 2656 KB Output is correct
23 Correct 2 ms 2740 KB Output is correct
24 Correct 27 ms 7568 KB Output is correct
25 Correct 27 ms 7496 KB Output is correct
26 Correct 27 ms 7536 KB Output is correct
27 Correct 4 ms 716 KB Output is correct
28 Correct 4 ms 716 KB Output is correct
29 Correct 4 ms 588 KB Output is correct
30 Correct 5 ms 588 KB Output is correct
31 Correct 4 ms 544 KB Output is correct
32 Correct 4 ms 564 KB Output is correct
33 Correct 12 ms 4284 KB Output is correct
34 Correct 12 ms 4300 KB Output is correct
35 Correct 12 ms 4328 KB Output is correct
36 Correct 15 ms 4300 KB Output is correct
37 Correct 12 ms 4360 KB Output is correct
38 Correct 12 ms 4360 KB Output is correct
39 Correct 43 ms 8032 KB Output is correct
40 Correct 36 ms 8092 KB Output is correct
41 Correct 36 ms 8000 KB Output is correct
42 Correct 14 ms 2120 KB Output is correct
43 Correct 11 ms 1408 KB Output is correct
44 Correct 17 ms 2044 KB Output is correct
45 Correct 11 ms 1208 KB Output is correct
46 Correct 9 ms 1100 KB Output is correct
47 Correct 15 ms 1612 KB Output is correct
48 Runtime error 62 ms 31008 KB Execution killed with signal 11
49 Halted 0 ms 0 KB -