#include "paint.h"
#include<bits/stdc++.h>
using namespace std;
#define lli int
#define rep(i,a,b) for (int i = (a); i <= (b); i++)
#define repa(i,a,b) for (int i = (a); i >= (b); i--)
#define debug(a) cout << #a << " = " << a << endl
#define debugsl(a) cout << #a << " = " << a << ", "
#define MAX 100000
#define MK 100000
lli n,m,k,res,pos,mejor,dif,a,last;
//valores de 0 a m
map<int, int> lejos[MAX+2];
bitset<MK> tabla[2002];
vector<int> contratistas[MK];
lli top[MAX+2];
//checar memoria
int minimumInstructions(int N, int M, int K, std::vector<int> C,std::vector<int> A, std::vector<std::vector<int>> B) {
n = N;
m = M;
k = K;
rep(i,0,m-1) {
rep(j,0,A[i]-1) {
contratistas[B[i][j]].push_back(i);
}
}
repa(i,n-1,0) {
top[i] = 0;
for(auto cont : contratistas[C[i]]) {
int sigcont = (cont < m - 1) ? cont + 1 : 0;
int v = (lejos[i+1].count(sigcont)) ? lejos[i+1][sigcont] + 1 : 1;
lejos[i][cont] = min(m, v);
top[i] = max(top[i], min(m, v));
}
}
if (top[0] < m) return -1;
pos = m;
last = 0;
res = 1;
rep(i,1,n-1) {
if (top[i] == m) last = i;
if (i == pos) {
pos = last + m;
res++;
}
}
if (pos < n) return -1;
else return res;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
3 ms |
7252 KB |
Output is correct |
2 |
Correct |
4 ms |
7252 KB |
Output is correct |
3 |
Correct |
4 ms |
7252 KB |
Output is correct |
4 |
Correct |
3 ms |
7252 KB |
Output is correct |
5 |
Correct |
4 ms |
7252 KB |
Output is correct |
6 |
Correct |
4 ms |
7252 KB |
Output is correct |
7 |
Correct |
4 ms |
7380 KB |
Output is correct |
8 |
Correct |
3 ms |
7380 KB |
Output is correct |
9 |
Correct |
4 ms |
7380 KB |
Output is correct |
10 |
Correct |
3 ms |
7380 KB |
Output is correct |
11 |
Correct |
4 ms |
7396 KB |
Output is correct |
12 |
Correct |
4 ms |
7380 KB |
Output is correct |
13 |
Correct |
4 ms |
7348 KB |
Output is correct |
14 |
Correct |
4 ms |
7380 KB |
Output is correct |
15 |
Correct |
5 ms |
7380 KB |
Output is correct |
16 |
Correct |
4 ms |
7380 KB |
Output is correct |
17 |
Correct |
4 ms |
7364 KB |
Output is correct |
18 |
Correct |
4 ms |
7380 KB |
Output is correct |
19 |
Correct |
4 ms |
7380 KB |
Output is correct |
20 |
Correct |
4 ms |
7380 KB |
Output is correct |
21 |
Correct |
5 ms |
7396 KB |
Output is correct |
22 |
Correct |
20 ms |
11296 KB |
Output is correct |
23 |
Correct |
19 ms |
11220 KB |
Output is correct |
24 |
Correct |
19 ms |
11168 KB |
Output is correct |
25 |
Correct |
7 ms |
8404 KB |
Output is correct |
26 |
Correct |
6 ms |
8404 KB |
Output is correct |
27 |
Correct |
7 ms |
8472 KB |
Output is correct |
28 |
Correct |
9 ms |
8404 KB |
Output is correct |
29 |
Correct |
7 ms |
8404 KB |
Output is correct |
30 |
Correct |
7 ms |
8460 KB |
Output is correct |
31 |
Correct |
11 ms |
9428 KB |
Output is correct |
32 |
Correct |
11 ms |
9428 KB |
Output is correct |
33 |
Correct |
10 ms |
9428 KB |
Output is correct |
34 |
Correct |
14 ms |
9368 KB |
Output is correct |
35 |
Correct |
11 ms |
9348 KB |
Output is correct |
36 |
Correct |
10 ms |
9356 KB |
Output is correct |
37 |
Correct |
26 ms |
12544 KB |
Output is correct |
38 |
Correct |
24 ms |
12472 KB |
Output is correct |
39 |
Correct |
24 ms |
12556 KB |
Output is correct |
40 |
Correct |
17 ms |
12592 KB |
Output is correct |
41 |
Correct |
12 ms |
10700 KB |
Output is correct |
42 |
Correct |
18 ms |
13268 KB |
Output is correct |
43 |
Correct |
14 ms |
11340 KB |
Output is correct |
44 |
Correct |
18 ms |
10964 KB |
Output is correct |
45 |
Correct |
19 ms |
13396 KB |
Output is correct |
46 |
Correct |
44 ms |
21868 KB |
Output is correct |
47 |
Correct |
30 ms |
15816 KB |
Output is correct |
48 |
Correct |
34 ms |
18360 KB |
Output is correct |
49 |
Correct |
41 ms |
18928 KB |
Output is correct |
50 |
Correct |
44 ms |
19144 KB |
Output is correct |
51 |
Correct |
40 ms |
17052 KB |
Output is correct |
52 |
Correct |
17 ms |
13324 KB |
Output is correct |
53 |
Correct |
18 ms |
13332 KB |
Output is correct |
54 |
Correct |
19 ms |
13396 KB |
Output is correct |
55 |
Correct |
22 ms |
13512 KB |
Output is correct |
56 |
Correct |
21 ms |
13328 KB |
Output is correct |
57 |
Correct |
19 ms |
13364 KB |
Output is correct |
58 |
Correct |
49 ms |
23364 KB |
Output is correct |
59 |
Correct |
53 ms |
23436 KB |
Output is correct |
60 |
Correct |
53 ms |
23360 KB |
Output is correct |
61 |
Correct |
50 ms |
23464 KB |
Output is correct |
62 |
Correct |
50 ms |
23420 KB |
Output is correct |
63 |
Correct |
55 ms |
23448 KB |
Output is correct |
64 |
Correct |
55 ms |
22584 KB |
Output is correct |
65 |
Correct |
55 ms |
22588 KB |
Output is correct |
66 |
Correct |
56 ms |
22596 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
3 ms |
7252 KB |
Output is correct |
2 |
Correct |
4 ms |
7252 KB |
Output is correct |
3 |
Correct |
4 ms |
7252 KB |
Output is correct |
4 |
Correct |
3 ms |
7252 KB |
Output is correct |
5 |
Correct |
4 ms |
7252 KB |
Output is correct |
6 |
Correct |
4 ms |
7252 KB |
Output is correct |
7 |
Correct |
4 ms |
7380 KB |
Output is correct |
8 |
Correct |
3 ms |
7380 KB |
Output is correct |
9 |
Correct |
4 ms |
7380 KB |
Output is correct |
10 |
Correct |
3 ms |
7380 KB |
Output is correct |
11 |
Correct |
4 ms |
7396 KB |
Output is correct |
12 |
Correct |
4 ms |
7380 KB |
Output is correct |
13 |
Correct |
4 ms |
7348 KB |
Output is correct |
14 |
Correct |
4 ms |
7380 KB |
Output is correct |
15 |
Correct |
5 ms |
7380 KB |
Output is correct |
16 |
Correct |
4 ms |
7380 KB |
Output is correct |
17 |
Correct |
4 ms |
7364 KB |
Output is correct |
18 |
Correct |
4 ms |
7380 KB |
Output is correct |
19 |
Correct |
4 ms |
7380 KB |
Output is correct |
20 |
Correct |
4 ms |
7380 KB |
Output is correct |
21 |
Correct |
5 ms |
7396 KB |
Output is correct |
22 |
Correct |
3 ms |
7252 KB |
Output is correct |
23 |
Correct |
4 ms |
7292 KB |
Output is correct |
24 |
Correct |
3 ms |
7252 KB |
Output is correct |
25 |
Correct |
3 ms |
7252 KB |
Output is correct |
26 |
Correct |
4 ms |
7252 KB |
Output is correct |
27 |
Correct |
4 ms |
7380 KB |
Output is correct |
28 |
Correct |
5 ms |
7764 KB |
Output is correct |
29 |
Correct |
5 ms |
7508 KB |
Output is correct |
30 |
Correct |
4 ms |
7508 KB |
Output is correct |
31 |
Correct |
4 ms |
7508 KB |
Output is correct |
32 |
Correct |
4 ms |
7508 KB |
Output is correct |
33 |
Correct |
4 ms |
7380 KB |
Output is correct |
34 |
Correct |
4 ms |
7380 KB |
Output is correct |
35 |
Correct |
5 ms |
7380 KB |
Output is correct |
36 |
Correct |
4 ms |
7380 KB |
Output is correct |
37 |
Correct |
4 ms |
7380 KB |
Output is correct |
38 |
Correct |
4 ms |
7380 KB |
Output is correct |
39 |
Correct |
4 ms |
7380 KB |
Output is correct |
40 |
Correct |
4 ms |
7380 KB |
Output is correct |
41 |
Correct |
4 ms |
7380 KB |
Output is correct |
42 |
Correct |
4 ms |
7380 KB |
Output is correct |
43 |
Correct |
4 ms |
7380 KB |
Output is correct |
44 |
Correct |
4 ms |
7380 KB |
Output is correct |
45 |
Correct |
6 ms |
8020 KB |
Output is correct |
46 |
Correct |
5 ms |
7836 KB |
Output is correct |
47 |
Correct |
4 ms |
7764 KB |
Output is correct |
48 |
Correct |
4 ms |
7636 KB |
Output is correct |
49 |
Correct |
4 ms |
7636 KB |
Output is correct |
50 |
Correct |
3 ms |
7380 KB |
Output is correct |
51 |
Correct |
4 ms |
7380 KB |
Output is correct |
52 |
Correct |
4 ms |
7344 KB |
Output is correct |
53 |
Correct |
4 ms |
7380 KB |
Output is correct |
54 |
Correct |
4 ms |
7380 KB |
Output is correct |
55 |
Correct |
4 ms |
7380 KB |
Output is correct |
56 |
Correct |
4 ms |
7380 KB |
Output is correct |
57 |
Correct |
4 ms |
7380 KB |
Output is correct |
58 |
Correct |
4 ms |
7380 KB |
Output is correct |
59 |
Correct |
4 ms |
7380 KB |
Output is correct |
60 |
Correct |
4 ms |
7380 KB |
Output is correct |
61 |
Correct |
4 ms |
7380 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
3 ms |
7252 KB |
Output is correct |
2 |
Correct |
4 ms |
7292 KB |
Output is correct |
3 |
Correct |
3 ms |
7252 KB |
Output is correct |
4 |
Correct |
4 ms |
7252 KB |
Output is correct |
5 |
Correct |
4 ms |
7252 KB |
Output is correct |
6 |
Correct |
3 ms |
7252 KB |
Output is correct |
7 |
Correct |
4 ms |
7252 KB |
Output is correct |
8 |
Correct |
4 ms |
7252 KB |
Output is correct |
9 |
Correct |
4 ms |
7380 KB |
Output is correct |
10 |
Correct |
3 ms |
7380 KB |
Output is correct |
11 |
Correct |
4 ms |
7380 KB |
Output is correct |
12 |
Correct |
3 ms |
7380 KB |
Output is correct |
13 |
Correct |
4 ms |
7396 KB |
Output is correct |
14 |
Correct |
4 ms |
7380 KB |
Output is correct |
15 |
Correct |
4 ms |
7348 KB |
Output is correct |
16 |
Correct |
4 ms |
7380 KB |
Output is correct |
17 |
Correct |
5 ms |
7380 KB |
Output is correct |
18 |
Correct |
4 ms |
7380 KB |
Output is correct |
19 |
Correct |
4 ms |
7364 KB |
Output is correct |
20 |
Correct |
4 ms |
7380 KB |
Output is correct |
21 |
Correct |
4 ms |
7380 KB |
Output is correct |
22 |
Correct |
4 ms |
7380 KB |
Output is correct |
23 |
Correct |
5 ms |
7396 KB |
Output is correct |
24 |
Correct |
20 ms |
11296 KB |
Output is correct |
25 |
Correct |
19 ms |
11220 KB |
Output is correct |
26 |
Correct |
19 ms |
11168 KB |
Output is correct |
27 |
Correct |
3 ms |
7252 KB |
Output is correct |
28 |
Correct |
3 ms |
7252 KB |
Output is correct |
29 |
Correct |
4 ms |
7252 KB |
Output is correct |
30 |
Correct |
4 ms |
7380 KB |
Output is correct |
31 |
Correct |
5 ms |
7764 KB |
Output is correct |
32 |
Correct |
5 ms |
7508 KB |
Output is correct |
33 |
Correct |
4 ms |
7508 KB |
Output is correct |
34 |
Correct |
4 ms |
7508 KB |
Output is correct |
35 |
Correct |
4 ms |
7508 KB |
Output is correct |
36 |
Correct |
4 ms |
7380 KB |
Output is correct |
37 |
Correct |
4 ms |
7380 KB |
Output is correct |
38 |
Correct |
5 ms |
7380 KB |
Output is correct |
39 |
Correct |
4 ms |
7380 KB |
Output is correct |
40 |
Correct |
4 ms |
7380 KB |
Output is correct |
41 |
Correct |
4 ms |
7380 KB |
Output is correct |
42 |
Correct |
4 ms |
7380 KB |
Output is correct |
43 |
Correct |
4 ms |
7380 KB |
Output is correct |
44 |
Correct |
4 ms |
7380 KB |
Output is correct |
45 |
Correct |
4 ms |
7380 KB |
Output is correct |
46 |
Correct |
4 ms |
7380 KB |
Output is correct |
47 |
Correct |
4 ms |
7380 KB |
Output is correct |
48 |
Correct |
6 ms |
8020 KB |
Output is correct |
49 |
Correct |
5 ms |
7836 KB |
Output is correct |
50 |
Correct |
4 ms |
7764 KB |
Output is correct |
51 |
Correct |
4 ms |
7636 KB |
Output is correct |
52 |
Correct |
4 ms |
7636 KB |
Output is correct |
53 |
Correct |
3 ms |
7380 KB |
Output is correct |
54 |
Correct |
4 ms |
7380 KB |
Output is correct |
55 |
Correct |
4 ms |
7344 KB |
Output is correct |
56 |
Correct |
4 ms |
7380 KB |
Output is correct |
57 |
Correct |
4 ms |
7380 KB |
Output is correct |
58 |
Correct |
4 ms |
7380 KB |
Output is correct |
59 |
Correct |
4 ms |
7380 KB |
Output is correct |
60 |
Correct |
4 ms |
7380 KB |
Output is correct |
61 |
Correct |
4 ms |
7380 KB |
Output is correct |
62 |
Correct |
4 ms |
7380 KB |
Output is correct |
63 |
Correct |
4 ms |
7380 KB |
Output is correct |
64 |
Correct |
4 ms |
7380 KB |
Output is correct |
65 |
Correct |
11 ms |
9556 KB |
Output is correct |
66 |
Correct |
6 ms |
8148 KB |
Output is correct |
67 |
Correct |
12 ms |
10196 KB |
Output is correct |
68 |
Correct |
9 ms |
8916 KB |
Output is correct |
69 |
Correct |
12 ms |
9812 KB |
Output is correct |
70 |
Correct |
6 ms |
7892 KB |
Output is correct |
71 |
Correct |
6 ms |
8020 KB |
Output is correct |
72 |
Correct |
6 ms |
7956 KB |
Output is correct |
73 |
Correct |
6 ms |
7636 KB |
Output is correct |
74 |
Correct |
6 ms |
7892 KB |
Output is correct |
75 |
Correct |
6 ms |
7764 KB |
Output is correct |
76 |
Correct |
21 ms |
10008 KB |
Output is correct |
77 |
Correct |
19 ms |
10452 KB |
Output is correct |
78 |
Correct |
23 ms |
10768 KB |
Output is correct |
79 |
Correct |
19 ms |
11992 KB |
Output is correct |
80 |
Correct |
19 ms |
12020 KB |
Output is correct |
81 |
Correct |
19 ms |
12056 KB |
Output is correct |
82 |
Correct |
19 ms |
11980 KB |
Output is correct |
83 |
Correct |
19 ms |
12012 KB |
Output is correct |
84 |
Correct |
7 ms |
8148 KB |
Output is correct |
85 |
Correct |
7 ms |
8148 KB |
Output is correct |
86 |
Correct |
7 ms |
8148 KB |
Output is correct |
87 |
Correct |
7 ms |
8148 KB |
Output is correct |
88 |
Correct |
7 ms |
8148 KB |
Output is correct |
89 |
Correct |
9 ms |
8148 KB |
Output is correct |
90 |
Correct |
26 ms |
11132 KB |
Output is correct |
91 |
Correct |
26 ms |
11004 KB |
Output is correct |
92 |
Correct |
27 ms |
11152 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
3 ms |
7252 KB |
Output is correct |
2 |
Correct |
4 ms |
7292 KB |
Output is correct |
3 |
Correct |
3 ms |
7252 KB |
Output is correct |
4 |
Correct |
4 ms |
7252 KB |
Output is correct |
5 |
Correct |
4 ms |
7252 KB |
Output is correct |
6 |
Correct |
3 ms |
7252 KB |
Output is correct |
7 |
Correct |
4 ms |
7252 KB |
Output is correct |
8 |
Correct |
4 ms |
7252 KB |
Output is correct |
9 |
Correct |
4 ms |
7380 KB |
Output is correct |
10 |
Correct |
3 ms |
7380 KB |
Output is correct |
11 |
Correct |
4 ms |
7380 KB |
Output is correct |
12 |
Correct |
3 ms |
7380 KB |
Output is correct |
13 |
Correct |
4 ms |
7396 KB |
Output is correct |
14 |
Correct |
4 ms |
7380 KB |
Output is correct |
15 |
Correct |
4 ms |
7348 KB |
Output is correct |
16 |
Correct |
4 ms |
7380 KB |
Output is correct |
17 |
Correct |
5 ms |
7380 KB |
Output is correct |
18 |
Correct |
4 ms |
7380 KB |
Output is correct |
19 |
Correct |
4 ms |
7364 KB |
Output is correct |
20 |
Correct |
4 ms |
7380 KB |
Output is correct |
21 |
Correct |
4 ms |
7380 KB |
Output is correct |
22 |
Correct |
4 ms |
7380 KB |
Output is correct |
23 |
Correct |
5 ms |
7396 KB |
Output is correct |
24 |
Correct |
20 ms |
11296 KB |
Output is correct |
25 |
Correct |
19 ms |
11220 KB |
Output is correct |
26 |
Correct |
19 ms |
11168 KB |
Output is correct |
27 |
Correct |
7 ms |
8404 KB |
Output is correct |
28 |
Correct |
6 ms |
8404 KB |
Output is correct |
29 |
Correct |
7 ms |
8472 KB |
Output is correct |
30 |
Correct |
9 ms |
8404 KB |
Output is correct |
31 |
Correct |
7 ms |
8404 KB |
Output is correct |
32 |
Correct |
7 ms |
8460 KB |
Output is correct |
33 |
Correct |
11 ms |
9428 KB |
Output is correct |
34 |
Correct |
11 ms |
9428 KB |
Output is correct |
35 |
Correct |
10 ms |
9428 KB |
Output is correct |
36 |
Correct |
14 ms |
9368 KB |
Output is correct |
37 |
Correct |
11 ms |
9348 KB |
Output is correct |
38 |
Correct |
10 ms |
9356 KB |
Output is correct |
39 |
Correct |
26 ms |
12544 KB |
Output is correct |
40 |
Correct |
24 ms |
12472 KB |
Output is correct |
41 |
Correct |
24 ms |
12556 KB |
Output is correct |
42 |
Correct |
3 ms |
7252 KB |
Output is correct |
43 |
Correct |
3 ms |
7252 KB |
Output is correct |
44 |
Correct |
4 ms |
7252 KB |
Output is correct |
45 |
Correct |
4 ms |
7380 KB |
Output is correct |
46 |
Correct |
5 ms |
7764 KB |
Output is correct |
47 |
Correct |
5 ms |
7508 KB |
Output is correct |
48 |
Correct |
4 ms |
7508 KB |
Output is correct |
49 |
Correct |
4 ms |
7508 KB |
Output is correct |
50 |
Correct |
4 ms |
7508 KB |
Output is correct |
51 |
Correct |
4 ms |
7380 KB |
Output is correct |
52 |
Correct |
4 ms |
7380 KB |
Output is correct |
53 |
Correct |
5 ms |
7380 KB |
Output is correct |
54 |
Correct |
4 ms |
7380 KB |
Output is correct |
55 |
Correct |
4 ms |
7380 KB |
Output is correct |
56 |
Correct |
4 ms |
7380 KB |
Output is correct |
57 |
Correct |
4 ms |
7380 KB |
Output is correct |
58 |
Correct |
4 ms |
7380 KB |
Output is correct |
59 |
Correct |
4 ms |
7380 KB |
Output is correct |
60 |
Correct |
4 ms |
7380 KB |
Output is correct |
61 |
Correct |
4 ms |
7380 KB |
Output is correct |
62 |
Correct |
4 ms |
7380 KB |
Output is correct |
63 |
Correct |
6 ms |
8020 KB |
Output is correct |
64 |
Correct |
5 ms |
7836 KB |
Output is correct |
65 |
Correct |
4 ms |
7764 KB |
Output is correct |
66 |
Correct |
4 ms |
7636 KB |
Output is correct |
67 |
Correct |
4 ms |
7636 KB |
Output is correct |
68 |
Correct |
3 ms |
7380 KB |
Output is correct |
69 |
Correct |
4 ms |
7380 KB |
Output is correct |
70 |
Correct |
4 ms |
7344 KB |
Output is correct |
71 |
Correct |
4 ms |
7380 KB |
Output is correct |
72 |
Correct |
4 ms |
7380 KB |
Output is correct |
73 |
Correct |
4 ms |
7380 KB |
Output is correct |
74 |
Correct |
4 ms |
7380 KB |
Output is correct |
75 |
Correct |
4 ms |
7380 KB |
Output is correct |
76 |
Correct |
4 ms |
7380 KB |
Output is correct |
77 |
Correct |
4 ms |
7380 KB |
Output is correct |
78 |
Correct |
4 ms |
7380 KB |
Output is correct |
79 |
Correct |
4 ms |
7380 KB |
Output is correct |
80 |
Correct |
11 ms |
9556 KB |
Output is correct |
81 |
Correct |
6 ms |
8148 KB |
Output is correct |
82 |
Correct |
12 ms |
10196 KB |
Output is correct |
83 |
Correct |
9 ms |
8916 KB |
Output is correct |
84 |
Correct |
12 ms |
9812 KB |
Output is correct |
85 |
Correct |
6 ms |
7892 KB |
Output is correct |
86 |
Correct |
6 ms |
8020 KB |
Output is correct |
87 |
Correct |
6 ms |
7956 KB |
Output is correct |
88 |
Correct |
6 ms |
7636 KB |
Output is correct |
89 |
Correct |
6 ms |
7892 KB |
Output is correct |
90 |
Correct |
6 ms |
7764 KB |
Output is correct |
91 |
Correct |
21 ms |
10008 KB |
Output is correct |
92 |
Correct |
19 ms |
10452 KB |
Output is correct |
93 |
Correct |
23 ms |
10768 KB |
Output is correct |
94 |
Correct |
19 ms |
11992 KB |
Output is correct |
95 |
Correct |
19 ms |
12020 KB |
Output is correct |
96 |
Correct |
19 ms |
12056 KB |
Output is correct |
97 |
Correct |
19 ms |
11980 KB |
Output is correct |
98 |
Correct |
19 ms |
12012 KB |
Output is correct |
99 |
Correct |
7 ms |
8148 KB |
Output is correct |
100 |
Correct |
7 ms |
8148 KB |
Output is correct |
101 |
Correct |
7 ms |
8148 KB |
Output is correct |
102 |
Correct |
7 ms |
8148 KB |
Output is correct |
103 |
Correct |
7 ms |
8148 KB |
Output is correct |
104 |
Correct |
9 ms |
8148 KB |
Output is correct |
105 |
Correct |
26 ms |
11132 KB |
Output is correct |
106 |
Correct |
26 ms |
11004 KB |
Output is correct |
107 |
Correct |
27 ms |
11152 KB |
Output is correct |
108 |
Correct |
8 ms |
9428 KB |
Output is correct |
109 |
Correct |
1444 ms |
428592 KB |
Output is correct |
110 |
Correct |
759 ms |
235484 KB |
Output is correct |
111 |
Correct |
565 ms |
176148 KB |
Output is correct |
112 |
Correct |
637 ms |
201888 KB |
Output is correct |
113 |
Correct |
420 ms |
135604 KB |
Output is correct |
114 |
Correct |
28 ms |
11196 KB |
Output is correct |
115 |
Correct |
19 ms |
11348 KB |
Output is correct |
116 |
Correct |
22 ms |
12232 KB |
Output is correct |
117 |
Correct |
17 ms |
11224 KB |
Output is correct |
118 |
Correct |
20 ms |
11712 KB |
Output is correct |
119 |
Correct |
15 ms |
10572 KB |
Output is correct |
120 |
Correct |
20 ms |
10780 KB |
Output is correct |
121 |
Correct |
10 ms |
9172 KB |
Output is correct |
122 |
Correct |
24 ms |
11300 KB |
Output is correct |
123 |
Correct |
8 ms |
9036 KB |
Output is correct |
124 |
Correct |
29 ms |
12076 KB |
Output is correct |
125 |
Correct |
12 ms |
9920 KB |
Output is correct |
126 |
Correct |
10 ms |
9316 KB |
Output is correct |
127 |
Correct |
13 ms |
9940 KB |
Output is correct |
128 |
Correct |
10 ms |
9184 KB |
Output is correct |
129 |
Correct |
10 ms |
9300 KB |
Output is correct |
130 |
Correct |
11 ms |
9428 KB |
Output is correct |
131 |
Execution timed out |
1537 ms |
524288 KB |
Time limit exceeded |
132 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
3 ms |
7252 KB |
Output is correct |
2 |
Correct |
4 ms |
7292 KB |
Output is correct |
3 |
Correct |
3 ms |
7252 KB |
Output is correct |
4 |
Correct |
4 ms |
7252 KB |
Output is correct |
5 |
Correct |
4 ms |
7252 KB |
Output is correct |
6 |
Correct |
3 ms |
7252 KB |
Output is correct |
7 |
Correct |
4 ms |
7252 KB |
Output is correct |
8 |
Correct |
4 ms |
7252 KB |
Output is correct |
9 |
Correct |
4 ms |
7380 KB |
Output is correct |
10 |
Correct |
3 ms |
7380 KB |
Output is correct |
11 |
Correct |
4 ms |
7380 KB |
Output is correct |
12 |
Correct |
3 ms |
7380 KB |
Output is correct |
13 |
Correct |
4 ms |
7396 KB |
Output is correct |
14 |
Correct |
4 ms |
7380 KB |
Output is correct |
15 |
Correct |
4 ms |
7348 KB |
Output is correct |
16 |
Correct |
4 ms |
7380 KB |
Output is correct |
17 |
Correct |
5 ms |
7380 KB |
Output is correct |
18 |
Correct |
4 ms |
7380 KB |
Output is correct |
19 |
Correct |
4 ms |
7364 KB |
Output is correct |
20 |
Correct |
4 ms |
7380 KB |
Output is correct |
21 |
Correct |
4 ms |
7380 KB |
Output is correct |
22 |
Correct |
4 ms |
7380 KB |
Output is correct |
23 |
Correct |
5 ms |
7396 KB |
Output is correct |
24 |
Correct |
20 ms |
11296 KB |
Output is correct |
25 |
Correct |
19 ms |
11220 KB |
Output is correct |
26 |
Correct |
19 ms |
11168 KB |
Output is correct |
27 |
Correct |
7 ms |
8404 KB |
Output is correct |
28 |
Correct |
6 ms |
8404 KB |
Output is correct |
29 |
Correct |
7 ms |
8472 KB |
Output is correct |
30 |
Correct |
9 ms |
8404 KB |
Output is correct |
31 |
Correct |
7 ms |
8404 KB |
Output is correct |
32 |
Correct |
7 ms |
8460 KB |
Output is correct |
33 |
Correct |
11 ms |
9428 KB |
Output is correct |
34 |
Correct |
11 ms |
9428 KB |
Output is correct |
35 |
Correct |
10 ms |
9428 KB |
Output is correct |
36 |
Correct |
14 ms |
9368 KB |
Output is correct |
37 |
Correct |
11 ms |
9348 KB |
Output is correct |
38 |
Correct |
10 ms |
9356 KB |
Output is correct |
39 |
Correct |
26 ms |
12544 KB |
Output is correct |
40 |
Correct |
24 ms |
12472 KB |
Output is correct |
41 |
Correct |
24 ms |
12556 KB |
Output is correct |
42 |
Correct |
17 ms |
12592 KB |
Output is correct |
43 |
Correct |
12 ms |
10700 KB |
Output is correct |
44 |
Correct |
18 ms |
13268 KB |
Output is correct |
45 |
Correct |
14 ms |
11340 KB |
Output is correct |
46 |
Correct |
18 ms |
10964 KB |
Output is correct |
47 |
Correct |
19 ms |
13396 KB |
Output is correct |
48 |
Correct |
44 ms |
21868 KB |
Output is correct |
49 |
Correct |
30 ms |
15816 KB |
Output is correct |
50 |
Correct |
34 ms |
18360 KB |
Output is correct |
51 |
Correct |
41 ms |
18928 KB |
Output is correct |
52 |
Correct |
44 ms |
19144 KB |
Output is correct |
53 |
Correct |
40 ms |
17052 KB |
Output is correct |
54 |
Correct |
17 ms |
13324 KB |
Output is correct |
55 |
Correct |
18 ms |
13332 KB |
Output is correct |
56 |
Correct |
19 ms |
13396 KB |
Output is correct |
57 |
Correct |
22 ms |
13512 KB |
Output is correct |
58 |
Correct |
21 ms |
13328 KB |
Output is correct |
59 |
Correct |
19 ms |
13364 KB |
Output is correct |
60 |
Correct |
49 ms |
23364 KB |
Output is correct |
61 |
Correct |
53 ms |
23436 KB |
Output is correct |
62 |
Correct |
53 ms |
23360 KB |
Output is correct |
63 |
Correct |
50 ms |
23464 KB |
Output is correct |
64 |
Correct |
50 ms |
23420 KB |
Output is correct |
65 |
Correct |
55 ms |
23448 KB |
Output is correct |
66 |
Correct |
55 ms |
22584 KB |
Output is correct |
67 |
Correct |
55 ms |
22588 KB |
Output is correct |
68 |
Correct |
56 ms |
22596 KB |
Output is correct |
69 |
Correct |
3 ms |
7252 KB |
Output is correct |
70 |
Correct |
3 ms |
7252 KB |
Output is correct |
71 |
Correct |
4 ms |
7252 KB |
Output is correct |
72 |
Correct |
4 ms |
7380 KB |
Output is correct |
73 |
Correct |
5 ms |
7764 KB |
Output is correct |
74 |
Correct |
5 ms |
7508 KB |
Output is correct |
75 |
Correct |
4 ms |
7508 KB |
Output is correct |
76 |
Correct |
4 ms |
7508 KB |
Output is correct |
77 |
Correct |
4 ms |
7508 KB |
Output is correct |
78 |
Correct |
4 ms |
7380 KB |
Output is correct |
79 |
Correct |
4 ms |
7380 KB |
Output is correct |
80 |
Correct |
5 ms |
7380 KB |
Output is correct |
81 |
Correct |
4 ms |
7380 KB |
Output is correct |
82 |
Correct |
4 ms |
7380 KB |
Output is correct |
83 |
Correct |
4 ms |
7380 KB |
Output is correct |
84 |
Correct |
4 ms |
7380 KB |
Output is correct |
85 |
Correct |
4 ms |
7380 KB |
Output is correct |
86 |
Correct |
4 ms |
7380 KB |
Output is correct |
87 |
Correct |
4 ms |
7380 KB |
Output is correct |
88 |
Correct |
4 ms |
7380 KB |
Output is correct |
89 |
Correct |
4 ms |
7380 KB |
Output is correct |
90 |
Correct |
6 ms |
8020 KB |
Output is correct |
91 |
Correct |
5 ms |
7836 KB |
Output is correct |
92 |
Correct |
4 ms |
7764 KB |
Output is correct |
93 |
Correct |
4 ms |
7636 KB |
Output is correct |
94 |
Correct |
4 ms |
7636 KB |
Output is correct |
95 |
Correct |
3 ms |
7380 KB |
Output is correct |
96 |
Correct |
4 ms |
7380 KB |
Output is correct |
97 |
Correct |
4 ms |
7344 KB |
Output is correct |
98 |
Correct |
4 ms |
7380 KB |
Output is correct |
99 |
Correct |
4 ms |
7380 KB |
Output is correct |
100 |
Correct |
4 ms |
7380 KB |
Output is correct |
101 |
Correct |
4 ms |
7380 KB |
Output is correct |
102 |
Correct |
4 ms |
7380 KB |
Output is correct |
103 |
Correct |
4 ms |
7380 KB |
Output is correct |
104 |
Correct |
4 ms |
7380 KB |
Output is correct |
105 |
Correct |
4 ms |
7380 KB |
Output is correct |
106 |
Correct |
4 ms |
7380 KB |
Output is correct |
107 |
Correct |
11 ms |
9556 KB |
Output is correct |
108 |
Correct |
6 ms |
8148 KB |
Output is correct |
109 |
Correct |
12 ms |
10196 KB |
Output is correct |
110 |
Correct |
9 ms |
8916 KB |
Output is correct |
111 |
Correct |
12 ms |
9812 KB |
Output is correct |
112 |
Correct |
6 ms |
7892 KB |
Output is correct |
113 |
Correct |
6 ms |
8020 KB |
Output is correct |
114 |
Correct |
6 ms |
7956 KB |
Output is correct |
115 |
Correct |
6 ms |
7636 KB |
Output is correct |
116 |
Correct |
6 ms |
7892 KB |
Output is correct |
117 |
Correct |
6 ms |
7764 KB |
Output is correct |
118 |
Correct |
21 ms |
10008 KB |
Output is correct |
119 |
Correct |
19 ms |
10452 KB |
Output is correct |
120 |
Correct |
23 ms |
10768 KB |
Output is correct |
121 |
Correct |
19 ms |
11992 KB |
Output is correct |
122 |
Correct |
19 ms |
12020 KB |
Output is correct |
123 |
Correct |
19 ms |
12056 KB |
Output is correct |
124 |
Correct |
19 ms |
11980 KB |
Output is correct |
125 |
Correct |
19 ms |
12012 KB |
Output is correct |
126 |
Correct |
7 ms |
8148 KB |
Output is correct |
127 |
Correct |
7 ms |
8148 KB |
Output is correct |
128 |
Correct |
7 ms |
8148 KB |
Output is correct |
129 |
Correct |
7 ms |
8148 KB |
Output is correct |
130 |
Correct |
7 ms |
8148 KB |
Output is correct |
131 |
Correct |
9 ms |
8148 KB |
Output is correct |
132 |
Correct |
26 ms |
11132 KB |
Output is correct |
133 |
Correct |
26 ms |
11004 KB |
Output is correct |
134 |
Correct |
27 ms |
11152 KB |
Output is correct |
135 |
Correct |
8 ms |
9428 KB |
Output is correct |
136 |
Correct |
1444 ms |
428592 KB |
Output is correct |
137 |
Correct |
759 ms |
235484 KB |
Output is correct |
138 |
Correct |
565 ms |
176148 KB |
Output is correct |
139 |
Correct |
637 ms |
201888 KB |
Output is correct |
140 |
Correct |
420 ms |
135604 KB |
Output is correct |
141 |
Correct |
28 ms |
11196 KB |
Output is correct |
142 |
Correct |
19 ms |
11348 KB |
Output is correct |
143 |
Correct |
22 ms |
12232 KB |
Output is correct |
144 |
Correct |
17 ms |
11224 KB |
Output is correct |
145 |
Correct |
20 ms |
11712 KB |
Output is correct |
146 |
Correct |
15 ms |
10572 KB |
Output is correct |
147 |
Correct |
20 ms |
10780 KB |
Output is correct |
148 |
Correct |
10 ms |
9172 KB |
Output is correct |
149 |
Correct |
24 ms |
11300 KB |
Output is correct |
150 |
Correct |
8 ms |
9036 KB |
Output is correct |
151 |
Correct |
29 ms |
12076 KB |
Output is correct |
152 |
Correct |
12 ms |
9920 KB |
Output is correct |
153 |
Correct |
10 ms |
9316 KB |
Output is correct |
154 |
Correct |
13 ms |
9940 KB |
Output is correct |
155 |
Correct |
10 ms |
9184 KB |
Output is correct |
156 |
Correct |
10 ms |
9300 KB |
Output is correct |
157 |
Correct |
11 ms |
9428 KB |
Output is correct |
158 |
Execution timed out |
1537 ms |
524288 KB |
Time limit exceeded |
159 |
Halted |
0 ms |
0 KB |
- |