#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
unordered_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 |
4 ms |
8020 KB |
Output is correct |
2 |
Correct |
5 ms |
8020 KB |
Output is correct |
3 |
Correct |
6 ms |
8020 KB |
Output is correct |
4 |
Correct |
5 ms |
8144 KB |
Output is correct |
5 |
Correct |
6 ms |
8148 KB |
Output is correct |
6 |
Correct |
4 ms |
8020 KB |
Output is correct |
7 |
Correct |
4 ms |
8148 KB |
Output is correct |
8 |
Correct |
5 ms |
8148 KB |
Output is correct |
9 |
Correct |
5 ms |
8164 KB |
Output is correct |
10 |
Correct |
4 ms |
8148 KB |
Output is correct |
11 |
Correct |
4 ms |
8148 KB |
Output is correct |
12 |
Correct |
4 ms |
8148 KB |
Output is correct |
13 |
Correct |
4 ms |
8148 KB |
Output is correct |
14 |
Correct |
5 ms |
8172 KB |
Output is correct |
15 |
Correct |
5 ms |
8148 KB |
Output is correct |
16 |
Correct |
5 ms |
8148 KB |
Output is correct |
17 |
Correct |
4 ms |
8148 KB |
Output is correct |
18 |
Correct |
4 ms |
8224 KB |
Output is correct |
19 |
Correct |
6 ms |
8148 KB |
Output is correct |
20 |
Correct |
4 ms |
8200 KB |
Output is correct |
21 |
Correct |
4 ms |
8148 KB |
Output is correct |
22 |
Correct |
20 ms |
12116 KB |
Output is correct |
23 |
Correct |
28 ms |
12068 KB |
Output is correct |
24 |
Correct |
30 ms |
12020 KB |
Output is correct |
25 |
Correct |
12 ms |
11156 KB |
Output is correct |
26 |
Correct |
10 ms |
11092 KB |
Output is correct |
27 |
Correct |
9 ms |
11092 KB |
Output is correct |
28 |
Correct |
9 ms |
11092 KB |
Output is correct |
29 |
Correct |
10 ms |
11092 KB |
Output is correct |
30 |
Correct |
9 ms |
11092 KB |
Output is correct |
31 |
Correct |
13 ms |
12112 KB |
Output is correct |
32 |
Correct |
14 ms |
12004 KB |
Output is correct |
33 |
Correct |
13 ms |
12004 KB |
Output is correct |
34 |
Correct |
14 ms |
12056 KB |
Output is correct |
35 |
Correct |
13 ms |
12032 KB |
Output is correct |
36 |
Correct |
13 ms |
12084 KB |
Output is correct |
37 |
Correct |
33 ms |
15236 KB |
Output is correct |
38 |
Correct |
29 ms |
15200 KB |
Output is correct |
39 |
Correct |
29 ms |
15144 KB |
Output is correct |
40 |
Correct |
26 ms |
21880 KB |
Output is correct |
41 |
Correct |
17 ms |
16692 KB |
Output is correct |
42 |
Correct |
28 ms |
23124 KB |
Output is correct |
43 |
Correct |
20 ms |
18012 KB |
Output is correct |
44 |
Correct |
18 ms |
17144 KB |
Output is correct |
45 |
Correct |
28 ms |
23244 KB |
Output is correct |
46 |
Correct |
56 ms |
29620 KB |
Output is correct |
47 |
Correct |
36 ms |
21064 KB |
Output is correct |
48 |
Correct |
43 ms |
23628 KB |
Output is correct |
49 |
Correct |
47 ms |
24484 KB |
Output is correct |
50 |
Correct |
68 ms |
25536 KB |
Output is correct |
51 |
Correct |
43 ms |
23800 KB |
Output is correct |
52 |
Correct |
26 ms |
23380 KB |
Output is correct |
53 |
Correct |
27 ms |
23352 KB |
Output is correct |
54 |
Correct |
28 ms |
23332 KB |
Output is correct |
55 |
Correct |
36 ms |
23388 KB |
Output is correct |
56 |
Correct |
29 ms |
23284 KB |
Output is correct |
57 |
Correct |
27 ms |
23364 KB |
Output is correct |
58 |
Correct |
64 ms |
32508 KB |
Output is correct |
59 |
Correct |
63 ms |
32332 KB |
Output is correct |
60 |
Correct |
62 ms |
32388 KB |
Output is correct |
61 |
Correct |
79 ms |
32356 KB |
Output is correct |
62 |
Correct |
66 ms |
32464 KB |
Output is correct |
63 |
Correct |
66 ms |
32340 KB |
Output is correct |
64 |
Correct |
65 ms |
31540 KB |
Output is correct |
65 |
Correct |
66 ms |
31488 KB |
Output is correct |
66 |
Correct |
65 ms |
31576 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
4 ms |
8020 KB |
Output is correct |
2 |
Correct |
5 ms |
8020 KB |
Output is correct |
3 |
Correct |
6 ms |
8020 KB |
Output is correct |
4 |
Correct |
5 ms |
8144 KB |
Output is correct |
5 |
Correct |
6 ms |
8148 KB |
Output is correct |
6 |
Correct |
4 ms |
8020 KB |
Output is correct |
7 |
Correct |
4 ms |
8148 KB |
Output is correct |
8 |
Correct |
5 ms |
8148 KB |
Output is correct |
9 |
Correct |
5 ms |
8164 KB |
Output is correct |
10 |
Correct |
4 ms |
8148 KB |
Output is correct |
11 |
Correct |
4 ms |
8148 KB |
Output is correct |
12 |
Correct |
4 ms |
8148 KB |
Output is correct |
13 |
Correct |
4 ms |
8148 KB |
Output is correct |
14 |
Correct |
5 ms |
8172 KB |
Output is correct |
15 |
Correct |
5 ms |
8148 KB |
Output is correct |
16 |
Correct |
5 ms |
8148 KB |
Output is correct |
17 |
Correct |
4 ms |
8148 KB |
Output is correct |
18 |
Correct |
4 ms |
8224 KB |
Output is correct |
19 |
Correct |
6 ms |
8148 KB |
Output is correct |
20 |
Correct |
4 ms |
8200 KB |
Output is correct |
21 |
Correct |
4 ms |
8148 KB |
Output is correct |
22 |
Correct |
4 ms |
8020 KB |
Output is correct |
23 |
Correct |
4 ms |
8020 KB |
Output is correct |
24 |
Correct |
4 ms |
8020 KB |
Output is correct |
25 |
Correct |
4 ms |
8020 KB |
Output is correct |
26 |
Correct |
5 ms |
8020 KB |
Output is correct |
27 |
Correct |
4 ms |
8148 KB |
Output is correct |
28 |
Correct |
6 ms |
8404 KB |
Output is correct |
29 |
Correct |
5 ms |
8276 KB |
Output is correct |
30 |
Correct |
4 ms |
8276 KB |
Output is correct |
31 |
Correct |
4 ms |
8276 KB |
Output is correct |
32 |
Correct |
5 ms |
8276 KB |
Output is correct |
33 |
Correct |
5 ms |
8148 KB |
Output is correct |
34 |
Correct |
5 ms |
8216 KB |
Output is correct |
35 |
Correct |
4 ms |
8148 KB |
Output is correct |
36 |
Correct |
4 ms |
8148 KB |
Output is correct |
37 |
Correct |
4 ms |
8148 KB |
Output is correct |
38 |
Correct |
5 ms |
8132 KB |
Output is correct |
39 |
Correct |
5 ms |
8076 KB |
Output is correct |
40 |
Correct |
4 ms |
8148 KB |
Output is correct |
41 |
Correct |
4 ms |
8148 KB |
Output is correct |
42 |
Correct |
5 ms |
8148 KB |
Output is correct |
43 |
Correct |
5 ms |
8148 KB |
Output is correct |
44 |
Correct |
5 ms |
8148 KB |
Output is correct |
45 |
Correct |
6 ms |
8788 KB |
Output is correct |
46 |
Correct |
6 ms |
8532 KB |
Output is correct |
47 |
Correct |
6 ms |
8532 KB |
Output is correct |
48 |
Correct |
7 ms |
8404 KB |
Output is correct |
49 |
Correct |
5 ms |
8404 KB |
Output is correct |
50 |
Correct |
5 ms |
8160 KB |
Output is correct |
51 |
Correct |
5 ms |
8248 KB |
Output is correct |
52 |
Correct |
4 ms |
8148 KB |
Output is correct |
53 |
Correct |
4 ms |
8148 KB |
Output is correct |
54 |
Correct |
5 ms |
8148 KB |
Output is correct |
55 |
Correct |
4 ms |
8148 KB |
Output is correct |
56 |
Correct |
5 ms |
8148 KB |
Output is correct |
57 |
Correct |
6 ms |
8244 KB |
Output is correct |
58 |
Correct |
5 ms |
8148 KB |
Output is correct |
59 |
Correct |
5 ms |
8148 KB |
Output is correct |
60 |
Correct |
4 ms |
8148 KB |
Output is correct |
61 |
Correct |
5 ms |
8148 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
4 ms |
8020 KB |
Output is correct |
2 |
Correct |
4 ms |
8020 KB |
Output is correct |
3 |
Correct |
4 ms |
8020 KB |
Output is correct |
4 |
Correct |
5 ms |
8020 KB |
Output is correct |
5 |
Correct |
6 ms |
8020 KB |
Output is correct |
6 |
Correct |
5 ms |
8144 KB |
Output is correct |
7 |
Correct |
6 ms |
8148 KB |
Output is correct |
8 |
Correct |
4 ms |
8020 KB |
Output is correct |
9 |
Correct |
4 ms |
8148 KB |
Output is correct |
10 |
Correct |
5 ms |
8148 KB |
Output is correct |
11 |
Correct |
5 ms |
8164 KB |
Output is correct |
12 |
Correct |
4 ms |
8148 KB |
Output is correct |
13 |
Correct |
4 ms |
8148 KB |
Output is correct |
14 |
Correct |
4 ms |
8148 KB |
Output is correct |
15 |
Correct |
4 ms |
8148 KB |
Output is correct |
16 |
Correct |
5 ms |
8172 KB |
Output is correct |
17 |
Correct |
5 ms |
8148 KB |
Output is correct |
18 |
Correct |
5 ms |
8148 KB |
Output is correct |
19 |
Correct |
4 ms |
8148 KB |
Output is correct |
20 |
Correct |
4 ms |
8224 KB |
Output is correct |
21 |
Correct |
6 ms |
8148 KB |
Output is correct |
22 |
Correct |
4 ms |
8200 KB |
Output is correct |
23 |
Correct |
4 ms |
8148 KB |
Output is correct |
24 |
Correct |
20 ms |
12116 KB |
Output is correct |
25 |
Correct |
28 ms |
12068 KB |
Output is correct |
26 |
Correct |
30 ms |
12020 KB |
Output is correct |
27 |
Correct |
4 ms |
8020 KB |
Output is correct |
28 |
Correct |
4 ms |
8020 KB |
Output is correct |
29 |
Correct |
5 ms |
8020 KB |
Output is correct |
30 |
Correct |
4 ms |
8148 KB |
Output is correct |
31 |
Correct |
6 ms |
8404 KB |
Output is correct |
32 |
Correct |
5 ms |
8276 KB |
Output is correct |
33 |
Correct |
4 ms |
8276 KB |
Output is correct |
34 |
Correct |
4 ms |
8276 KB |
Output is correct |
35 |
Correct |
5 ms |
8276 KB |
Output is correct |
36 |
Correct |
5 ms |
8148 KB |
Output is correct |
37 |
Correct |
5 ms |
8216 KB |
Output is correct |
38 |
Correct |
4 ms |
8148 KB |
Output is correct |
39 |
Correct |
4 ms |
8148 KB |
Output is correct |
40 |
Correct |
4 ms |
8148 KB |
Output is correct |
41 |
Correct |
5 ms |
8132 KB |
Output is correct |
42 |
Correct |
5 ms |
8076 KB |
Output is correct |
43 |
Correct |
4 ms |
8148 KB |
Output is correct |
44 |
Correct |
4 ms |
8148 KB |
Output is correct |
45 |
Correct |
5 ms |
8148 KB |
Output is correct |
46 |
Correct |
5 ms |
8148 KB |
Output is correct |
47 |
Correct |
5 ms |
8148 KB |
Output is correct |
48 |
Correct |
6 ms |
8788 KB |
Output is correct |
49 |
Correct |
6 ms |
8532 KB |
Output is correct |
50 |
Correct |
6 ms |
8532 KB |
Output is correct |
51 |
Correct |
7 ms |
8404 KB |
Output is correct |
52 |
Correct |
5 ms |
8404 KB |
Output is correct |
53 |
Correct |
5 ms |
8160 KB |
Output is correct |
54 |
Correct |
5 ms |
8248 KB |
Output is correct |
55 |
Correct |
4 ms |
8148 KB |
Output is correct |
56 |
Correct |
4 ms |
8148 KB |
Output is correct |
57 |
Correct |
5 ms |
8148 KB |
Output is correct |
58 |
Correct |
4 ms |
8148 KB |
Output is correct |
59 |
Correct |
5 ms |
8148 KB |
Output is correct |
60 |
Correct |
6 ms |
8244 KB |
Output is correct |
61 |
Correct |
5 ms |
8148 KB |
Output is correct |
62 |
Correct |
5 ms |
8148 KB |
Output is correct |
63 |
Correct |
4 ms |
8148 KB |
Output is correct |
64 |
Correct |
5 ms |
8148 KB |
Output is correct |
65 |
Correct |
9 ms |
10148 KB |
Output is correct |
66 |
Correct |
7 ms |
8916 KB |
Output is correct |
67 |
Correct |
12 ms |
10552 KB |
Output is correct |
68 |
Correct |
8 ms |
9684 KB |
Output is correct |
69 |
Correct |
9 ms |
10196 KB |
Output is correct |
70 |
Correct |
7 ms |
8648 KB |
Output is correct |
71 |
Correct |
7 ms |
8660 KB |
Output is correct |
72 |
Correct |
7 ms |
8660 KB |
Output is correct |
73 |
Correct |
5 ms |
8404 KB |
Output is correct |
74 |
Correct |
7 ms |
8660 KB |
Output is correct |
75 |
Correct |
6 ms |
8532 KB |
Output is correct |
76 |
Correct |
20 ms |
10840 KB |
Output is correct |
77 |
Correct |
19 ms |
11284 KB |
Output is correct |
78 |
Correct |
26 ms |
11688 KB |
Output is correct |
79 |
Correct |
12 ms |
12208 KB |
Output is correct |
80 |
Correct |
13 ms |
12308 KB |
Output is correct |
81 |
Correct |
13 ms |
12288 KB |
Output is correct |
82 |
Correct |
13 ms |
12244 KB |
Output is correct |
83 |
Correct |
13 ms |
12244 KB |
Output is correct |
84 |
Correct |
8 ms |
8880 KB |
Output is correct |
85 |
Correct |
8 ms |
8820 KB |
Output is correct |
86 |
Correct |
8 ms |
8788 KB |
Output is correct |
87 |
Correct |
10 ms |
8788 KB |
Output is correct |
88 |
Correct |
8 ms |
8832 KB |
Output is correct |
89 |
Correct |
10 ms |
8788 KB |
Output is correct |
90 |
Correct |
26 ms |
11908 KB |
Output is correct |
91 |
Correct |
26 ms |
11852 KB |
Output is correct |
92 |
Correct |
26 ms |
11872 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
4 ms |
8020 KB |
Output is correct |
2 |
Correct |
4 ms |
8020 KB |
Output is correct |
3 |
Correct |
4 ms |
8020 KB |
Output is correct |
4 |
Correct |
5 ms |
8020 KB |
Output is correct |
5 |
Correct |
6 ms |
8020 KB |
Output is correct |
6 |
Correct |
5 ms |
8144 KB |
Output is correct |
7 |
Correct |
6 ms |
8148 KB |
Output is correct |
8 |
Correct |
4 ms |
8020 KB |
Output is correct |
9 |
Correct |
4 ms |
8148 KB |
Output is correct |
10 |
Correct |
5 ms |
8148 KB |
Output is correct |
11 |
Correct |
5 ms |
8164 KB |
Output is correct |
12 |
Correct |
4 ms |
8148 KB |
Output is correct |
13 |
Correct |
4 ms |
8148 KB |
Output is correct |
14 |
Correct |
4 ms |
8148 KB |
Output is correct |
15 |
Correct |
4 ms |
8148 KB |
Output is correct |
16 |
Correct |
5 ms |
8172 KB |
Output is correct |
17 |
Correct |
5 ms |
8148 KB |
Output is correct |
18 |
Correct |
5 ms |
8148 KB |
Output is correct |
19 |
Correct |
4 ms |
8148 KB |
Output is correct |
20 |
Correct |
4 ms |
8224 KB |
Output is correct |
21 |
Correct |
6 ms |
8148 KB |
Output is correct |
22 |
Correct |
4 ms |
8200 KB |
Output is correct |
23 |
Correct |
4 ms |
8148 KB |
Output is correct |
24 |
Correct |
20 ms |
12116 KB |
Output is correct |
25 |
Correct |
28 ms |
12068 KB |
Output is correct |
26 |
Correct |
30 ms |
12020 KB |
Output is correct |
27 |
Correct |
12 ms |
11156 KB |
Output is correct |
28 |
Correct |
10 ms |
11092 KB |
Output is correct |
29 |
Correct |
9 ms |
11092 KB |
Output is correct |
30 |
Correct |
9 ms |
11092 KB |
Output is correct |
31 |
Correct |
10 ms |
11092 KB |
Output is correct |
32 |
Correct |
9 ms |
11092 KB |
Output is correct |
33 |
Correct |
13 ms |
12112 KB |
Output is correct |
34 |
Correct |
14 ms |
12004 KB |
Output is correct |
35 |
Correct |
13 ms |
12004 KB |
Output is correct |
36 |
Correct |
14 ms |
12056 KB |
Output is correct |
37 |
Correct |
13 ms |
12032 KB |
Output is correct |
38 |
Correct |
13 ms |
12084 KB |
Output is correct |
39 |
Correct |
33 ms |
15236 KB |
Output is correct |
40 |
Correct |
29 ms |
15200 KB |
Output is correct |
41 |
Correct |
29 ms |
15144 KB |
Output is correct |
42 |
Correct |
4 ms |
8020 KB |
Output is correct |
43 |
Correct |
4 ms |
8020 KB |
Output is correct |
44 |
Correct |
5 ms |
8020 KB |
Output is correct |
45 |
Correct |
4 ms |
8148 KB |
Output is correct |
46 |
Correct |
6 ms |
8404 KB |
Output is correct |
47 |
Correct |
5 ms |
8276 KB |
Output is correct |
48 |
Correct |
4 ms |
8276 KB |
Output is correct |
49 |
Correct |
4 ms |
8276 KB |
Output is correct |
50 |
Correct |
5 ms |
8276 KB |
Output is correct |
51 |
Correct |
5 ms |
8148 KB |
Output is correct |
52 |
Correct |
5 ms |
8216 KB |
Output is correct |
53 |
Correct |
4 ms |
8148 KB |
Output is correct |
54 |
Correct |
4 ms |
8148 KB |
Output is correct |
55 |
Correct |
4 ms |
8148 KB |
Output is correct |
56 |
Correct |
5 ms |
8132 KB |
Output is correct |
57 |
Correct |
5 ms |
8076 KB |
Output is correct |
58 |
Correct |
4 ms |
8148 KB |
Output is correct |
59 |
Correct |
4 ms |
8148 KB |
Output is correct |
60 |
Correct |
5 ms |
8148 KB |
Output is correct |
61 |
Correct |
5 ms |
8148 KB |
Output is correct |
62 |
Correct |
5 ms |
8148 KB |
Output is correct |
63 |
Correct |
6 ms |
8788 KB |
Output is correct |
64 |
Correct |
6 ms |
8532 KB |
Output is correct |
65 |
Correct |
6 ms |
8532 KB |
Output is correct |
66 |
Correct |
7 ms |
8404 KB |
Output is correct |
67 |
Correct |
5 ms |
8404 KB |
Output is correct |
68 |
Correct |
5 ms |
8160 KB |
Output is correct |
69 |
Correct |
5 ms |
8248 KB |
Output is correct |
70 |
Correct |
4 ms |
8148 KB |
Output is correct |
71 |
Correct |
4 ms |
8148 KB |
Output is correct |
72 |
Correct |
5 ms |
8148 KB |
Output is correct |
73 |
Correct |
4 ms |
8148 KB |
Output is correct |
74 |
Correct |
5 ms |
8148 KB |
Output is correct |
75 |
Correct |
6 ms |
8244 KB |
Output is correct |
76 |
Correct |
5 ms |
8148 KB |
Output is correct |
77 |
Correct |
5 ms |
8148 KB |
Output is correct |
78 |
Correct |
4 ms |
8148 KB |
Output is correct |
79 |
Correct |
5 ms |
8148 KB |
Output is correct |
80 |
Correct |
9 ms |
10148 KB |
Output is correct |
81 |
Correct |
7 ms |
8916 KB |
Output is correct |
82 |
Correct |
12 ms |
10552 KB |
Output is correct |
83 |
Correct |
8 ms |
9684 KB |
Output is correct |
84 |
Correct |
9 ms |
10196 KB |
Output is correct |
85 |
Correct |
7 ms |
8648 KB |
Output is correct |
86 |
Correct |
7 ms |
8660 KB |
Output is correct |
87 |
Correct |
7 ms |
8660 KB |
Output is correct |
88 |
Correct |
5 ms |
8404 KB |
Output is correct |
89 |
Correct |
7 ms |
8660 KB |
Output is correct |
90 |
Correct |
6 ms |
8532 KB |
Output is correct |
91 |
Correct |
20 ms |
10840 KB |
Output is correct |
92 |
Correct |
19 ms |
11284 KB |
Output is correct |
93 |
Correct |
26 ms |
11688 KB |
Output is correct |
94 |
Correct |
12 ms |
12208 KB |
Output is correct |
95 |
Correct |
13 ms |
12308 KB |
Output is correct |
96 |
Correct |
13 ms |
12288 KB |
Output is correct |
97 |
Correct |
13 ms |
12244 KB |
Output is correct |
98 |
Correct |
13 ms |
12244 KB |
Output is correct |
99 |
Correct |
8 ms |
8880 KB |
Output is correct |
100 |
Correct |
8 ms |
8820 KB |
Output is correct |
101 |
Correct |
8 ms |
8788 KB |
Output is correct |
102 |
Correct |
10 ms |
8788 KB |
Output is correct |
103 |
Correct |
8 ms |
8832 KB |
Output is correct |
104 |
Correct |
10 ms |
8788 KB |
Output is correct |
105 |
Correct |
26 ms |
11908 KB |
Output is correct |
106 |
Correct |
26 ms |
11852 KB |
Output is correct |
107 |
Correct |
26 ms |
11872 KB |
Output is correct |
108 |
Correct |
10 ms |
11748 KB |
Output is correct |
109 |
Correct |
871 ms |
415532 KB |
Output is correct |
110 |
Correct |
492 ms |
212652 KB |
Output is correct |
111 |
Correct |
383 ms |
169748 KB |
Output is correct |
112 |
Correct |
463 ms |
203356 KB |
Output is correct |
113 |
Correct |
298 ms |
124892 KB |
Output is correct |
114 |
Correct |
18 ms |
12288 KB |
Output is correct |
115 |
Correct |
19 ms |
12116 KB |
Output is correct |
116 |
Correct |
23 ms |
13780 KB |
Output is correct |
117 |
Correct |
19 ms |
12116 KB |
Output is correct |
118 |
Correct |
21 ms |
12664 KB |
Output is correct |
119 |
Correct |
20 ms |
12064 KB |
Output is correct |
120 |
Correct |
20 ms |
12116 KB |
Output is correct |
121 |
Correct |
10 ms |
10688 KB |
Output is correct |
122 |
Correct |
27 ms |
12640 KB |
Output is correct |
123 |
Correct |
10 ms |
10580 KB |
Output is correct |
124 |
Correct |
33 ms |
13804 KB |
Output is correct |
125 |
Correct |
13 ms |
11980 KB |
Output is correct |
126 |
Correct |
13 ms |
11300 KB |
Output is correct |
127 |
Correct |
15 ms |
12132 KB |
Output is correct |
128 |
Correct |
14 ms |
11008 KB |
Output is correct |
129 |
Correct |
13 ms |
11092 KB |
Output is correct |
130 |
Correct |
10 ms |
11800 KB |
Output is correct |
131 |
Runtime error |
805 ms |
524288 KB |
Execution killed with signal 9 |
132 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
4 ms |
8020 KB |
Output is correct |
2 |
Correct |
4 ms |
8020 KB |
Output is correct |
3 |
Correct |
4 ms |
8020 KB |
Output is correct |
4 |
Correct |
5 ms |
8020 KB |
Output is correct |
5 |
Correct |
6 ms |
8020 KB |
Output is correct |
6 |
Correct |
5 ms |
8144 KB |
Output is correct |
7 |
Correct |
6 ms |
8148 KB |
Output is correct |
8 |
Correct |
4 ms |
8020 KB |
Output is correct |
9 |
Correct |
4 ms |
8148 KB |
Output is correct |
10 |
Correct |
5 ms |
8148 KB |
Output is correct |
11 |
Correct |
5 ms |
8164 KB |
Output is correct |
12 |
Correct |
4 ms |
8148 KB |
Output is correct |
13 |
Correct |
4 ms |
8148 KB |
Output is correct |
14 |
Correct |
4 ms |
8148 KB |
Output is correct |
15 |
Correct |
4 ms |
8148 KB |
Output is correct |
16 |
Correct |
5 ms |
8172 KB |
Output is correct |
17 |
Correct |
5 ms |
8148 KB |
Output is correct |
18 |
Correct |
5 ms |
8148 KB |
Output is correct |
19 |
Correct |
4 ms |
8148 KB |
Output is correct |
20 |
Correct |
4 ms |
8224 KB |
Output is correct |
21 |
Correct |
6 ms |
8148 KB |
Output is correct |
22 |
Correct |
4 ms |
8200 KB |
Output is correct |
23 |
Correct |
4 ms |
8148 KB |
Output is correct |
24 |
Correct |
20 ms |
12116 KB |
Output is correct |
25 |
Correct |
28 ms |
12068 KB |
Output is correct |
26 |
Correct |
30 ms |
12020 KB |
Output is correct |
27 |
Correct |
12 ms |
11156 KB |
Output is correct |
28 |
Correct |
10 ms |
11092 KB |
Output is correct |
29 |
Correct |
9 ms |
11092 KB |
Output is correct |
30 |
Correct |
9 ms |
11092 KB |
Output is correct |
31 |
Correct |
10 ms |
11092 KB |
Output is correct |
32 |
Correct |
9 ms |
11092 KB |
Output is correct |
33 |
Correct |
13 ms |
12112 KB |
Output is correct |
34 |
Correct |
14 ms |
12004 KB |
Output is correct |
35 |
Correct |
13 ms |
12004 KB |
Output is correct |
36 |
Correct |
14 ms |
12056 KB |
Output is correct |
37 |
Correct |
13 ms |
12032 KB |
Output is correct |
38 |
Correct |
13 ms |
12084 KB |
Output is correct |
39 |
Correct |
33 ms |
15236 KB |
Output is correct |
40 |
Correct |
29 ms |
15200 KB |
Output is correct |
41 |
Correct |
29 ms |
15144 KB |
Output is correct |
42 |
Correct |
26 ms |
21880 KB |
Output is correct |
43 |
Correct |
17 ms |
16692 KB |
Output is correct |
44 |
Correct |
28 ms |
23124 KB |
Output is correct |
45 |
Correct |
20 ms |
18012 KB |
Output is correct |
46 |
Correct |
18 ms |
17144 KB |
Output is correct |
47 |
Correct |
28 ms |
23244 KB |
Output is correct |
48 |
Correct |
56 ms |
29620 KB |
Output is correct |
49 |
Correct |
36 ms |
21064 KB |
Output is correct |
50 |
Correct |
43 ms |
23628 KB |
Output is correct |
51 |
Correct |
47 ms |
24484 KB |
Output is correct |
52 |
Correct |
68 ms |
25536 KB |
Output is correct |
53 |
Correct |
43 ms |
23800 KB |
Output is correct |
54 |
Correct |
26 ms |
23380 KB |
Output is correct |
55 |
Correct |
27 ms |
23352 KB |
Output is correct |
56 |
Correct |
28 ms |
23332 KB |
Output is correct |
57 |
Correct |
36 ms |
23388 KB |
Output is correct |
58 |
Correct |
29 ms |
23284 KB |
Output is correct |
59 |
Correct |
27 ms |
23364 KB |
Output is correct |
60 |
Correct |
64 ms |
32508 KB |
Output is correct |
61 |
Correct |
63 ms |
32332 KB |
Output is correct |
62 |
Correct |
62 ms |
32388 KB |
Output is correct |
63 |
Correct |
79 ms |
32356 KB |
Output is correct |
64 |
Correct |
66 ms |
32464 KB |
Output is correct |
65 |
Correct |
66 ms |
32340 KB |
Output is correct |
66 |
Correct |
65 ms |
31540 KB |
Output is correct |
67 |
Correct |
66 ms |
31488 KB |
Output is correct |
68 |
Correct |
65 ms |
31576 KB |
Output is correct |
69 |
Correct |
4 ms |
8020 KB |
Output is correct |
70 |
Correct |
4 ms |
8020 KB |
Output is correct |
71 |
Correct |
5 ms |
8020 KB |
Output is correct |
72 |
Correct |
4 ms |
8148 KB |
Output is correct |
73 |
Correct |
6 ms |
8404 KB |
Output is correct |
74 |
Correct |
5 ms |
8276 KB |
Output is correct |
75 |
Correct |
4 ms |
8276 KB |
Output is correct |
76 |
Correct |
4 ms |
8276 KB |
Output is correct |
77 |
Correct |
5 ms |
8276 KB |
Output is correct |
78 |
Correct |
5 ms |
8148 KB |
Output is correct |
79 |
Correct |
5 ms |
8216 KB |
Output is correct |
80 |
Correct |
4 ms |
8148 KB |
Output is correct |
81 |
Correct |
4 ms |
8148 KB |
Output is correct |
82 |
Correct |
4 ms |
8148 KB |
Output is correct |
83 |
Correct |
5 ms |
8132 KB |
Output is correct |
84 |
Correct |
5 ms |
8076 KB |
Output is correct |
85 |
Correct |
4 ms |
8148 KB |
Output is correct |
86 |
Correct |
4 ms |
8148 KB |
Output is correct |
87 |
Correct |
5 ms |
8148 KB |
Output is correct |
88 |
Correct |
5 ms |
8148 KB |
Output is correct |
89 |
Correct |
5 ms |
8148 KB |
Output is correct |
90 |
Correct |
6 ms |
8788 KB |
Output is correct |
91 |
Correct |
6 ms |
8532 KB |
Output is correct |
92 |
Correct |
6 ms |
8532 KB |
Output is correct |
93 |
Correct |
7 ms |
8404 KB |
Output is correct |
94 |
Correct |
5 ms |
8404 KB |
Output is correct |
95 |
Correct |
5 ms |
8160 KB |
Output is correct |
96 |
Correct |
5 ms |
8248 KB |
Output is correct |
97 |
Correct |
4 ms |
8148 KB |
Output is correct |
98 |
Correct |
4 ms |
8148 KB |
Output is correct |
99 |
Correct |
5 ms |
8148 KB |
Output is correct |
100 |
Correct |
4 ms |
8148 KB |
Output is correct |
101 |
Correct |
5 ms |
8148 KB |
Output is correct |
102 |
Correct |
6 ms |
8244 KB |
Output is correct |
103 |
Correct |
5 ms |
8148 KB |
Output is correct |
104 |
Correct |
5 ms |
8148 KB |
Output is correct |
105 |
Correct |
4 ms |
8148 KB |
Output is correct |
106 |
Correct |
5 ms |
8148 KB |
Output is correct |
107 |
Correct |
9 ms |
10148 KB |
Output is correct |
108 |
Correct |
7 ms |
8916 KB |
Output is correct |
109 |
Correct |
12 ms |
10552 KB |
Output is correct |
110 |
Correct |
8 ms |
9684 KB |
Output is correct |
111 |
Correct |
9 ms |
10196 KB |
Output is correct |
112 |
Correct |
7 ms |
8648 KB |
Output is correct |
113 |
Correct |
7 ms |
8660 KB |
Output is correct |
114 |
Correct |
7 ms |
8660 KB |
Output is correct |
115 |
Correct |
5 ms |
8404 KB |
Output is correct |
116 |
Correct |
7 ms |
8660 KB |
Output is correct |
117 |
Correct |
6 ms |
8532 KB |
Output is correct |
118 |
Correct |
20 ms |
10840 KB |
Output is correct |
119 |
Correct |
19 ms |
11284 KB |
Output is correct |
120 |
Correct |
26 ms |
11688 KB |
Output is correct |
121 |
Correct |
12 ms |
12208 KB |
Output is correct |
122 |
Correct |
13 ms |
12308 KB |
Output is correct |
123 |
Correct |
13 ms |
12288 KB |
Output is correct |
124 |
Correct |
13 ms |
12244 KB |
Output is correct |
125 |
Correct |
13 ms |
12244 KB |
Output is correct |
126 |
Correct |
8 ms |
8880 KB |
Output is correct |
127 |
Correct |
8 ms |
8820 KB |
Output is correct |
128 |
Correct |
8 ms |
8788 KB |
Output is correct |
129 |
Correct |
10 ms |
8788 KB |
Output is correct |
130 |
Correct |
8 ms |
8832 KB |
Output is correct |
131 |
Correct |
10 ms |
8788 KB |
Output is correct |
132 |
Correct |
26 ms |
11908 KB |
Output is correct |
133 |
Correct |
26 ms |
11852 KB |
Output is correct |
134 |
Correct |
26 ms |
11872 KB |
Output is correct |
135 |
Correct |
10 ms |
11748 KB |
Output is correct |
136 |
Correct |
871 ms |
415532 KB |
Output is correct |
137 |
Correct |
492 ms |
212652 KB |
Output is correct |
138 |
Correct |
383 ms |
169748 KB |
Output is correct |
139 |
Correct |
463 ms |
203356 KB |
Output is correct |
140 |
Correct |
298 ms |
124892 KB |
Output is correct |
141 |
Correct |
18 ms |
12288 KB |
Output is correct |
142 |
Correct |
19 ms |
12116 KB |
Output is correct |
143 |
Correct |
23 ms |
13780 KB |
Output is correct |
144 |
Correct |
19 ms |
12116 KB |
Output is correct |
145 |
Correct |
21 ms |
12664 KB |
Output is correct |
146 |
Correct |
20 ms |
12064 KB |
Output is correct |
147 |
Correct |
20 ms |
12116 KB |
Output is correct |
148 |
Correct |
10 ms |
10688 KB |
Output is correct |
149 |
Correct |
27 ms |
12640 KB |
Output is correct |
150 |
Correct |
10 ms |
10580 KB |
Output is correct |
151 |
Correct |
33 ms |
13804 KB |
Output is correct |
152 |
Correct |
13 ms |
11980 KB |
Output is correct |
153 |
Correct |
13 ms |
11300 KB |
Output is correct |
154 |
Correct |
15 ms |
12132 KB |
Output is correct |
155 |
Correct |
14 ms |
11008 KB |
Output is correct |
156 |
Correct |
13 ms |
11092 KB |
Output is correct |
157 |
Correct |
10 ms |
11800 KB |
Output is correct |
158 |
Runtime error |
805 ms |
524288 KB |
Execution killed with signal 9 |
159 |
Halted |
0 ms |
0 KB |
- |