// khodaya khodet komak kon
# include <bits/stdc++.h>
/*
// ordered_set
# include <ext/pb_ds/assoc_container.hpp>
# include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
# define ordered_set tree<int, null_type,less<int>, rb_tree_tag,tree_order_statistics_node_update>
*/
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair <int, int> pii;
typedef pair <ll, ll> pll;
typedef pair <pll, ll> ppi;
typedef pair <int, pii> pip;
typedef pair <pii, pii> ppp;
# define A first
# define B second
# define endl '\n'
# define sep ' '
# define all(x) x.begin(), x.end()
# define kill(x) return cout << x << endl, 0
# define SZ(x) int(x.size())
# define lc id << 1
# define rc id << 1 | 1
# define InTheNameOfGod ios::sync_with_stdio(0);cin.tie(0); cout.tie(0);
ll power(ll a, ll b, ll md) {return (!b ? 1 : (b & 1 ? a * power(a * a % md, b / 2, md) % md : power(a * a % md, b / 2, md) % md));}
const int xn = 1e5 + 10;
const int xm = 5e4 + 10;
const int sq = 320;
const int inf = 1e9 + 10;
const ll INF = 1e18 + 10;
const int mod = 1e9 + 7;//998244353;
const int base = 257;
int last[xn], ptr, ans;
vector <int> vec[xn];
bitset <xn> bs[xm], ps[xm], tot, res;
int minimumInstructions(int n, int m, int k, vector <int> c, vector <int> a, vector <vector <int> > b){
//cin >> n >> m >> k;
//for (int i = 0; i < n; ++ i)
//cin >> c[i], vec[c[i]].push_back(i);
for (int i = 0; i < n; ++ i)
vec[c[i]].push_back(i);
//for (int i = 0; i < m; ++ i)
//cin >> a[i];
for (int i = 0; i < m; ++ i){
for (int j = 0; j < a[i]; ++ j){
int x = b[i][j];
//cin >> x;
//b[i].push_back(j);
for (int ind : vec[x])
bs[i][ind] = 1;
}
}
ps[0] = bs[0];
for (int i = 1; i < m; ++ i)
ps[i] = (ps[i - 1] & (bs[i] >> i));
res.set(), tot = ps[m - 1];
for (int i = m - 1; i >= 1; -- i){
res = (bs[i] & (res >> 1));
tot |= (res & (ps[i - 1] >> (m - i)));
}
for (int i = 1; i < xn; ++ i){
last[i] = last[i - 1];
if (tot[i])
last[i] = i;
}
if (!tot[0])
return - 1;
while (ptr + m < n){
if (last[ptr + m] == ptr)
return - 1;
++ ans, ptr = last[ptr + m];
}
return ans + 1;
}
/*
int main(){
InTheNameOfGod;
return 0;
}
*/
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
3020 KB |
Output is correct |
2 |
Correct |
3 ms |
3040 KB |
Output is correct |
3 |
Correct |
3 ms |
3020 KB |
Output is correct |
4 |
Correct |
3 ms |
2980 KB |
Output is correct |
5 |
Correct |
3 ms |
3020 KB |
Output is correct |
6 |
Correct |
2 ms |
3020 KB |
Output is correct |
7 |
Correct |
2 ms |
3020 KB |
Output is correct |
8 |
Correct |
2 ms |
3024 KB |
Output is correct |
9 |
Correct |
2 ms |
3020 KB |
Output is correct |
10 |
Correct |
3 ms |
3148 KB |
Output is correct |
11 |
Correct |
3 ms |
3148 KB |
Output is correct |
12 |
Correct |
3 ms |
3148 KB |
Output is correct |
13 |
Correct |
8 ms |
6292 KB |
Output is correct |
14 |
Correct |
9 ms |
6328 KB |
Output is correct |
15 |
Correct |
8 ms |
6408 KB |
Output is correct |
16 |
Correct |
8 ms |
6348 KB |
Output is correct |
17 |
Correct |
8 ms |
6376 KB |
Output is correct |
18 |
Correct |
8 ms |
6416 KB |
Output is correct |
19 |
Correct |
8 ms |
5480 KB |
Output is correct |
20 |
Correct |
7 ms |
5592 KB |
Output is correct |
21 |
Correct |
7 ms |
5616 KB |
Output is correct |
22 |
Correct |
19 ms |
7608 KB |
Output is correct |
23 |
Correct |
20 ms |
7628 KB |
Output is correct |
24 |
Correct |
20 ms |
7568 KB |
Output is correct |
25 |
Correct |
5 ms |
3404 KB |
Output is correct |
26 |
Correct |
5 ms |
3404 KB |
Output is correct |
27 |
Correct |
6 ms |
3404 KB |
Output is correct |
28 |
Correct |
5 ms |
3420 KB |
Output is correct |
29 |
Correct |
5 ms |
3532 KB |
Output is correct |
30 |
Correct |
5 ms |
3404 KB |
Output is correct |
31 |
Correct |
70 ms |
41260 KB |
Output is correct |
32 |
Correct |
78 ms |
41296 KB |
Output is correct |
33 |
Correct |
70 ms |
41292 KB |
Output is correct |
34 |
Correct |
66 ms |
41304 KB |
Output is correct |
35 |
Correct |
66 ms |
41184 KB |
Output is correct |
36 |
Correct |
64 ms |
41204 KB |
Output is correct |
37 |
Correct |
77 ms |
41868 KB |
Output is correct |
38 |
Correct |
76 ms |
41776 KB |
Output is correct |
39 |
Correct |
75 ms |
41796 KB |
Output is correct |
40 |
Correct |
13 ms |
4548 KB |
Output is correct |
41 |
Correct |
9 ms |
3892 KB |
Output is correct |
42 |
Correct |
14 ms |
4660 KB |
Output is correct |
43 |
Correct |
10 ms |
4240 KB |
Output is correct |
44 |
Correct |
9 ms |
4044 KB |
Output is correct |
45 |
Correct |
13 ms |
4812 KB |
Output is correct |
46 |
Runtime error |
488 ms |
524292 KB |
Execution killed with signal 9 |
47 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
3020 KB |
Output is correct |
2 |
Correct |
3 ms |
3040 KB |
Output is correct |
3 |
Correct |
3 ms |
3020 KB |
Output is correct |
4 |
Correct |
3 ms |
2980 KB |
Output is correct |
5 |
Correct |
3 ms |
3020 KB |
Output is correct |
6 |
Correct |
2 ms |
3020 KB |
Output is correct |
7 |
Correct |
2 ms |
3020 KB |
Output is correct |
8 |
Correct |
2 ms |
3024 KB |
Output is correct |
9 |
Correct |
2 ms |
3020 KB |
Output is correct |
10 |
Correct |
3 ms |
3148 KB |
Output is correct |
11 |
Correct |
3 ms |
3148 KB |
Output is correct |
12 |
Correct |
3 ms |
3148 KB |
Output is correct |
13 |
Correct |
8 ms |
6292 KB |
Output is correct |
14 |
Correct |
9 ms |
6328 KB |
Output is correct |
15 |
Correct |
8 ms |
6408 KB |
Output is correct |
16 |
Correct |
8 ms |
6348 KB |
Output is correct |
17 |
Correct |
8 ms |
6376 KB |
Output is correct |
18 |
Correct |
8 ms |
6416 KB |
Output is correct |
19 |
Correct |
8 ms |
5480 KB |
Output is correct |
20 |
Correct |
7 ms |
5592 KB |
Output is correct |
21 |
Correct |
7 ms |
5616 KB |
Output is correct |
22 |
Correct |
2 ms |
3020 KB |
Output is correct |
23 |
Correct |
2 ms |
3148 KB |
Output is correct |
24 |
Correct |
2 ms |
3020 KB |
Output is correct |
25 |
Correct |
3 ms |
3036 KB |
Output is correct |
26 |
Correct |
2 ms |
3020 KB |
Output is correct |
27 |
Correct |
3 ms |
3020 KB |
Output is correct |
28 |
Correct |
3 ms |
3532 KB |
Output is correct |
29 |
Correct |
3 ms |
3532 KB |
Output is correct |
30 |
Correct |
3 ms |
3532 KB |
Output is correct |
31 |
Correct |
3 ms |
3148 KB |
Output is correct |
32 |
Correct |
3 ms |
3788 KB |
Output is correct |
33 |
Correct |
7 ms |
5708 KB |
Output is correct |
34 |
Correct |
6 ms |
5708 KB |
Output is correct |
35 |
Correct |
6 ms |
5196 KB |
Output is correct |
36 |
Correct |
7 ms |
5580 KB |
Output is correct |
37 |
Correct |
7 ms |
5964 KB |
Output is correct |
38 |
Correct |
3 ms |
3148 KB |
Output is correct |
39 |
Correct |
3 ms |
3148 KB |
Output is correct |
40 |
Correct |
6 ms |
5068 KB |
Output is correct |
41 |
Correct |
7 ms |
5704 KB |
Output is correct |
42 |
Correct |
4 ms |
4152 KB |
Output is correct |
43 |
Correct |
4 ms |
3916 KB |
Output is correct |
44 |
Correct |
2 ms |
3020 KB |
Output is correct |
45 |
Correct |
3 ms |
3532 KB |
Output is correct |
46 |
Correct |
4 ms |
3788 KB |
Output is correct |
47 |
Correct |
4 ms |
3916 KB |
Output is correct |
48 |
Correct |
6 ms |
3916 KB |
Output is correct |
49 |
Correct |
5 ms |
4044 KB |
Output is correct |
50 |
Correct |
8 ms |
6348 KB |
Output is correct |
51 |
Correct |
8 ms |
6348 KB |
Output is correct |
52 |
Correct |
7 ms |
6348 KB |
Output is correct |
53 |
Correct |
8 ms |
6348 KB |
Output is correct |
54 |
Correct |
7 ms |
6384 KB |
Output is correct |
55 |
Correct |
7 ms |
6348 KB |
Output is correct |
56 |
Correct |
7 ms |
5580 KB |
Output is correct |
57 |
Correct |
8 ms |
6300 KB |
Output is correct |
58 |
Correct |
7 ms |
5452 KB |
Output is correct |
59 |
Correct |
8 ms |
6400 KB |
Output is correct |
60 |
Correct |
8 ms |
5580 KB |
Output is correct |
61 |
Correct |
7 ms |
6308 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
3020 KB |
Output is correct |
2 |
Correct |
2 ms |
3148 KB |
Output is correct |
3 |
Correct |
2 ms |
3020 KB |
Output is correct |
4 |
Correct |
3 ms |
3040 KB |
Output is correct |
5 |
Correct |
3 ms |
3020 KB |
Output is correct |
6 |
Correct |
3 ms |
2980 KB |
Output is correct |
7 |
Correct |
3 ms |
3020 KB |
Output is correct |
8 |
Correct |
2 ms |
3020 KB |
Output is correct |
9 |
Correct |
2 ms |
3020 KB |
Output is correct |
10 |
Correct |
2 ms |
3024 KB |
Output is correct |
11 |
Correct |
2 ms |
3020 KB |
Output is correct |
12 |
Correct |
3 ms |
3148 KB |
Output is correct |
13 |
Correct |
3 ms |
3148 KB |
Output is correct |
14 |
Correct |
3 ms |
3148 KB |
Output is correct |
15 |
Correct |
8 ms |
6292 KB |
Output is correct |
16 |
Correct |
9 ms |
6328 KB |
Output is correct |
17 |
Correct |
8 ms |
6408 KB |
Output is correct |
18 |
Correct |
8 ms |
6348 KB |
Output is correct |
19 |
Correct |
8 ms |
6376 KB |
Output is correct |
20 |
Correct |
8 ms |
6416 KB |
Output is correct |
21 |
Correct |
8 ms |
5480 KB |
Output is correct |
22 |
Correct |
7 ms |
5592 KB |
Output is correct |
23 |
Correct |
7 ms |
5616 KB |
Output is correct |
24 |
Correct |
19 ms |
7608 KB |
Output is correct |
25 |
Correct |
20 ms |
7628 KB |
Output is correct |
26 |
Correct |
20 ms |
7568 KB |
Output is correct |
27 |
Correct |
2 ms |
3020 KB |
Output is correct |
28 |
Correct |
3 ms |
3036 KB |
Output is correct |
29 |
Correct |
2 ms |
3020 KB |
Output is correct |
30 |
Correct |
3 ms |
3020 KB |
Output is correct |
31 |
Correct |
3 ms |
3532 KB |
Output is correct |
32 |
Correct |
3 ms |
3532 KB |
Output is correct |
33 |
Correct |
3 ms |
3532 KB |
Output is correct |
34 |
Correct |
3 ms |
3148 KB |
Output is correct |
35 |
Correct |
3 ms |
3788 KB |
Output is correct |
36 |
Correct |
7 ms |
5708 KB |
Output is correct |
37 |
Correct |
6 ms |
5708 KB |
Output is correct |
38 |
Correct |
6 ms |
5196 KB |
Output is correct |
39 |
Correct |
7 ms |
5580 KB |
Output is correct |
40 |
Correct |
7 ms |
5964 KB |
Output is correct |
41 |
Correct |
3 ms |
3148 KB |
Output is correct |
42 |
Correct |
3 ms |
3148 KB |
Output is correct |
43 |
Correct |
6 ms |
5068 KB |
Output is correct |
44 |
Correct |
7 ms |
5704 KB |
Output is correct |
45 |
Correct |
4 ms |
4152 KB |
Output is correct |
46 |
Correct |
4 ms |
3916 KB |
Output is correct |
47 |
Correct |
2 ms |
3020 KB |
Output is correct |
48 |
Correct |
3 ms |
3532 KB |
Output is correct |
49 |
Correct |
4 ms |
3788 KB |
Output is correct |
50 |
Correct |
4 ms |
3916 KB |
Output is correct |
51 |
Correct |
6 ms |
3916 KB |
Output is correct |
52 |
Correct |
5 ms |
4044 KB |
Output is correct |
53 |
Correct |
8 ms |
6348 KB |
Output is correct |
54 |
Correct |
8 ms |
6348 KB |
Output is correct |
55 |
Correct |
7 ms |
6348 KB |
Output is correct |
56 |
Correct |
8 ms |
6348 KB |
Output is correct |
57 |
Correct |
7 ms |
6384 KB |
Output is correct |
58 |
Correct |
7 ms |
6348 KB |
Output is correct |
59 |
Correct |
7 ms |
5580 KB |
Output is correct |
60 |
Correct |
8 ms |
6300 KB |
Output is correct |
61 |
Correct |
7 ms |
5452 KB |
Output is correct |
62 |
Correct |
8 ms |
6400 KB |
Output is correct |
63 |
Correct |
8 ms |
5580 KB |
Output is correct |
64 |
Correct |
7 ms |
6308 KB |
Output is correct |
65 |
Correct |
7 ms |
6092 KB |
Output is correct |
66 |
Correct |
4 ms |
3648 KB |
Output is correct |
67 |
Correct |
6 ms |
5068 KB |
Output is correct |
68 |
Correct |
4 ms |
4172 KB |
Output is correct |
69 |
Correct |
6 ms |
4940 KB |
Output is correct |
70 |
Correct |
9 ms |
6092 KB |
Output is correct |
71 |
Correct |
8 ms |
5584 KB |
Output is correct |
72 |
Correct |
6 ms |
4428 KB |
Output is correct |
73 |
Correct |
4 ms |
3404 KB |
Output is correct |
74 |
Correct |
7 ms |
4908 KB |
Output is correct |
75 |
Correct |
10 ms |
6340 KB |
Output is correct |
76 |
Correct |
19 ms |
5760 KB |
Output is correct |
77 |
Correct |
22 ms |
4104 KB |
Output is correct |
78 |
Correct |
21 ms |
4684 KB |
Output is correct |
79 |
Correct |
8 ms |
6348 KB |
Output is correct |
80 |
Correct |
11 ms |
6348 KB |
Output is correct |
81 |
Correct |
8 ms |
6288 KB |
Output is correct |
82 |
Correct |
8 ms |
6348 KB |
Output is correct |
83 |
Correct |
8 ms |
6324 KB |
Output is correct |
84 |
Correct |
10 ms |
6476 KB |
Output is correct |
85 |
Correct |
10 ms |
6476 KB |
Output is correct |
86 |
Correct |
12 ms |
6476 KB |
Output is correct |
87 |
Correct |
10 ms |
6428 KB |
Output is correct |
88 |
Correct |
10 ms |
6476 KB |
Output is correct |
89 |
Correct |
9 ms |
6516 KB |
Output is correct |
90 |
Correct |
26 ms |
7500 KB |
Output is correct |
91 |
Correct |
30 ms |
7512 KB |
Output is correct |
92 |
Correct |
36 ms |
7500 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
3020 KB |
Output is correct |
2 |
Correct |
2 ms |
3148 KB |
Output is correct |
3 |
Correct |
2 ms |
3020 KB |
Output is correct |
4 |
Correct |
3 ms |
3040 KB |
Output is correct |
5 |
Correct |
3 ms |
3020 KB |
Output is correct |
6 |
Correct |
3 ms |
2980 KB |
Output is correct |
7 |
Correct |
3 ms |
3020 KB |
Output is correct |
8 |
Correct |
2 ms |
3020 KB |
Output is correct |
9 |
Correct |
2 ms |
3020 KB |
Output is correct |
10 |
Correct |
2 ms |
3024 KB |
Output is correct |
11 |
Correct |
2 ms |
3020 KB |
Output is correct |
12 |
Correct |
3 ms |
3148 KB |
Output is correct |
13 |
Correct |
3 ms |
3148 KB |
Output is correct |
14 |
Correct |
3 ms |
3148 KB |
Output is correct |
15 |
Correct |
8 ms |
6292 KB |
Output is correct |
16 |
Correct |
9 ms |
6328 KB |
Output is correct |
17 |
Correct |
8 ms |
6408 KB |
Output is correct |
18 |
Correct |
8 ms |
6348 KB |
Output is correct |
19 |
Correct |
8 ms |
6376 KB |
Output is correct |
20 |
Correct |
8 ms |
6416 KB |
Output is correct |
21 |
Correct |
8 ms |
5480 KB |
Output is correct |
22 |
Correct |
7 ms |
5592 KB |
Output is correct |
23 |
Correct |
7 ms |
5616 KB |
Output is correct |
24 |
Correct |
19 ms |
7608 KB |
Output is correct |
25 |
Correct |
20 ms |
7628 KB |
Output is correct |
26 |
Correct |
20 ms |
7568 KB |
Output is correct |
27 |
Correct |
5 ms |
3404 KB |
Output is correct |
28 |
Correct |
5 ms |
3404 KB |
Output is correct |
29 |
Correct |
6 ms |
3404 KB |
Output is correct |
30 |
Correct |
5 ms |
3420 KB |
Output is correct |
31 |
Correct |
5 ms |
3532 KB |
Output is correct |
32 |
Correct |
5 ms |
3404 KB |
Output is correct |
33 |
Correct |
70 ms |
41260 KB |
Output is correct |
34 |
Correct |
78 ms |
41296 KB |
Output is correct |
35 |
Correct |
70 ms |
41292 KB |
Output is correct |
36 |
Correct |
66 ms |
41304 KB |
Output is correct |
37 |
Correct |
66 ms |
41184 KB |
Output is correct |
38 |
Correct |
64 ms |
41204 KB |
Output is correct |
39 |
Correct |
77 ms |
41868 KB |
Output is correct |
40 |
Correct |
76 ms |
41776 KB |
Output is correct |
41 |
Correct |
75 ms |
41796 KB |
Output is correct |
42 |
Correct |
2 ms |
3020 KB |
Output is correct |
43 |
Correct |
3 ms |
3036 KB |
Output is correct |
44 |
Correct |
2 ms |
3020 KB |
Output is correct |
45 |
Correct |
3 ms |
3020 KB |
Output is correct |
46 |
Correct |
3 ms |
3532 KB |
Output is correct |
47 |
Correct |
3 ms |
3532 KB |
Output is correct |
48 |
Correct |
3 ms |
3532 KB |
Output is correct |
49 |
Correct |
3 ms |
3148 KB |
Output is correct |
50 |
Correct |
3 ms |
3788 KB |
Output is correct |
51 |
Correct |
7 ms |
5708 KB |
Output is correct |
52 |
Correct |
6 ms |
5708 KB |
Output is correct |
53 |
Correct |
6 ms |
5196 KB |
Output is correct |
54 |
Correct |
7 ms |
5580 KB |
Output is correct |
55 |
Correct |
7 ms |
5964 KB |
Output is correct |
56 |
Correct |
3 ms |
3148 KB |
Output is correct |
57 |
Correct |
3 ms |
3148 KB |
Output is correct |
58 |
Correct |
6 ms |
5068 KB |
Output is correct |
59 |
Correct |
7 ms |
5704 KB |
Output is correct |
60 |
Correct |
4 ms |
4152 KB |
Output is correct |
61 |
Correct |
4 ms |
3916 KB |
Output is correct |
62 |
Correct |
2 ms |
3020 KB |
Output is correct |
63 |
Correct |
3 ms |
3532 KB |
Output is correct |
64 |
Correct |
4 ms |
3788 KB |
Output is correct |
65 |
Correct |
4 ms |
3916 KB |
Output is correct |
66 |
Correct |
6 ms |
3916 KB |
Output is correct |
67 |
Correct |
5 ms |
4044 KB |
Output is correct |
68 |
Correct |
8 ms |
6348 KB |
Output is correct |
69 |
Correct |
8 ms |
6348 KB |
Output is correct |
70 |
Correct |
7 ms |
6348 KB |
Output is correct |
71 |
Correct |
8 ms |
6348 KB |
Output is correct |
72 |
Correct |
7 ms |
6384 KB |
Output is correct |
73 |
Correct |
7 ms |
6348 KB |
Output is correct |
74 |
Correct |
7 ms |
5580 KB |
Output is correct |
75 |
Correct |
8 ms |
6300 KB |
Output is correct |
76 |
Correct |
7 ms |
5452 KB |
Output is correct |
77 |
Correct |
8 ms |
6400 KB |
Output is correct |
78 |
Correct |
8 ms |
5580 KB |
Output is correct |
79 |
Correct |
7 ms |
6308 KB |
Output is correct |
80 |
Correct |
7 ms |
6092 KB |
Output is correct |
81 |
Correct |
4 ms |
3648 KB |
Output is correct |
82 |
Correct |
6 ms |
5068 KB |
Output is correct |
83 |
Correct |
4 ms |
4172 KB |
Output is correct |
84 |
Correct |
6 ms |
4940 KB |
Output is correct |
85 |
Correct |
9 ms |
6092 KB |
Output is correct |
86 |
Correct |
8 ms |
5584 KB |
Output is correct |
87 |
Correct |
6 ms |
4428 KB |
Output is correct |
88 |
Correct |
4 ms |
3404 KB |
Output is correct |
89 |
Correct |
7 ms |
4908 KB |
Output is correct |
90 |
Correct |
10 ms |
6340 KB |
Output is correct |
91 |
Correct |
19 ms |
5760 KB |
Output is correct |
92 |
Correct |
22 ms |
4104 KB |
Output is correct |
93 |
Correct |
21 ms |
4684 KB |
Output is correct |
94 |
Correct |
8 ms |
6348 KB |
Output is correct |
95 |
Correct |
11 ms |
6348 KB |
Output is correct |
96 |
Correct |
8 ms |
6288 KB |
Output is correct |
97 |
Correct |
8 ms |
6348 KB |
Output is correct |
98 |
Correct |
8 ms |
6324 KB |
Output is correct |
99 |
Correct |
10 ms |
6476 KB |
Output is correct |
100 |
Correct |
10 ms |
6476 KB |
Output is correct |
101 |
Correct |
12 ms |
6476 KB |
Output is correct |
102 |
Correct |
10 ms |
6428 KB |
Output is correct |
103 |
Correct |
10 ms |
6476 KB |
Output is correct |
104 |
Correct |
9 ms |
6516 KB |
Output is correct |
105 |
Correct |
26 ms |
7500 KB |
Output is correct |
106 |
Correct |
30 ms |
7512 KB |
Output is correct |
107 |
Correct |
36 ms |
7500 KB |
Output is correct |
108 |
Correct |
6 ms |
3500 KB |
Output is correct |
109 |
Correct |
52 ms |
14496 KB |
Output is correct |
110 |
Correct |
38 ms |
14756 KB |
Output is correct |
111 |
Correct |
35 ms |
15220 KB |
Output is correct |
112 |
Correct |
38 ms |
16580 KB |
Output is correct |
113 |
Correct |
44 ms |
20020 KB |
Output is correct |
114 |
Correct |
41 ms |
21552 KB |
Output is correct |
115 |
Correct |
15 ms |
5068 KB |
Output is correct |
116 |
Correct |
37 ms |
17732 KB |
Output is correct |
117 |
Correct |
31 ms |
16164 KB |
Output is correct |
118 |
Correct |
17 ms |
5660 KB |
Output is correct |
119 |
Correct |
53 ms |
30808 KB |
Output is correct |
120 |
Correct |
68 ms |
38400 KB |
Output is correct |
121 |
Correct |
61 ms |
37984 KB |
Output is correct |
122 |
Correct |
38 ms |
14404 KB |
Output is correct |
123 |
Correct |
21 ms |
13524 KB |
Output is correct |
124 |
Correct |
32 ms |
7604 KB |
Output is correct |
125 |
Correct |
13 ms |
6672 KB |
Output is correct |
126 |
Correct |
12 ms |
4172 KB |
Output is correct |
127 |
Correct |
25 ms |
13820 KB |
Output is correct |
128 |
Correct |
12 ms |
6092 KB |
Output is correct |
129 |
Correct |
14 ms |
7368 KB |
Output is correct |
130 |
Correct |
5 ms |
3384 KB |
Output is correct |
131 |
Correct |
65 ms |
15292 KB |
Output is correct |
132 |
Correct |
57 ms |
18376 KB |
Output is correct |
133 |
Correct |
55 ms |
20280 KB |
Output is correct |
134 |
Correct |
55 ms |
21876 KB |
Output is correct |
135 |
Correct |
53 ms |
23332 KB |
Output is correct |
136 |
Correct |
72 ms |
41760 KB |
Output is correct |
137 |
Correct |
73 ms |
41728 KB |
Output is correct |
138 |
Correct |
75 ms |
41764 KB |
Output is correct |
139 |
Correct |
73 ms |
41772 KB |
Output is correct |
140 |
Correct |
89 ms |
41744 KB |
Output is correct |
141 |
Correct |
74 ms |
41796 KB |
Output is correct |
142 |
Correct |
82 ms |
41816 KB |
Output is correct |
143 |
Correct |
65 ms |
40924 KB |
Output is correct |
144 |
Correct |
89 ms |
41872 KB |
Output is correct |
145 |
Correct |
64 ms |
40864 KB |
Output is correct |
146 |
Correct |
89 ms |
41972 KB |
Output is correct |
147 |
Correct |
65 ms |
40872 KB |
Output is correct |
148 |
Correct |
66 ms |
41156 KB |
Output is correct |
149 |
Correct |
40 ms |
22668 KB |
Output is correct |
150 |
Correct |
29 ms |
16476 KB |
Output is correct |
151 |
Correct |
25 ms |
13380 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
3020 KB |
Output is correct |
2 |
Correct |
2 ms |
3148 KB |
Output is correct |
3 |
Correct |
2 ms |
3020 KB |
Output is correct |
4 |
Correct |
3 ms |
3040 KB |
Output is correct |
5 |
Correct |
3 ms |
3020 KB |
Output is correct |
6 |
Correct |
3 ms |
2980 KB |
Output is correct |
7 |
Correct |
3 ms |
3020 KB |
Output is correct |
8 |
Correct |
2 ms |
3020 KB |
Output is correct |
9 |
Correct |
2 ms |
3020 KB |
Output is correct |
10 |
Correct |
2 ms |
3024 KB |
Output is correct |
11 |
Correct |
2 ms |
3020 KB |
Output is correct |
12 |
Correct |
3 ms |
3148 KB |
Output is correct |
13 |
Correct |
3 ms |
3148 KB |
Output is correct |
14 |
Correct |
3 ms |
3148 KB |
Output is correct |
15 |
Correct |
8 ms |
6292 KB |
Output is correct |
16 |
Correct |
9 ms |
6328 KB |
Output is correct |
17 |
Correct |
8 ms |
6408 KB |
Output is correct |
18 |
Correct |
8 ms |
6348 KB |
Output is correct |
19 |
Correct |
8 ms |
6376 KB |
Output is correct |
20 |
Correct |
8 ms |
6416 KB |
Output is correct |
21 |
Correct |
8 ms |
5480 KB |
Output is correct |
22 |
Correct |
7 ms |
5592 KB |
Output is correct |
23 |
Correct |
7 ms |
5616 KB |
Output is correct |
24 |
Correct |
19 ms |
7608 KB |
Output is correct |
25 |
Correct |
20 ms |
7628 KB |
Output is correct |
26 |
Correct |
20 ms |
7568 KB |
Output is correct |
27 |
Correct |
5 ms |
3404 KB |
Output is correct |
28 |
Correct |
5 ms |
3404 KB |
Output is correct |
29 |
Correct |
6 ms |
3404 KB |
Output is correct |
30 |
Correct |
5 ms |
3420 KB |
Output is correct |
31 |
Correct |
5 ms |
3532 KB |
Output is correct |
32 |
Correct |
5 ms |
3404 KB |
Output is correct |
33 |
Correct |
70 ms |
41260 KB |
Output is correct |
34 |
Correct |
78 ms |
41296 KB |
Output is correct |
35 |
Correct |
70 ms |
41292 KB |
Output is correct |
36 |
Correct |
66 ms |
41304 KB |
Output is correct |
37 |
Correct |
66 ms |
41184 KB |
Output is correct |
38 |
Correct |
64 ms |
41204 KB |
Output is correct |
39 |
Correct |
77 ms |
41868 KB |
Output is correct |
40 |
Correct |
76 ms |
41776 KB |
Output is correct |
41 |
Correct |
75 ms |
41796 KB |
Output is correct |
42 |
Correct |
13 ms |
4548 KB |
Output is correct |
43 |
Correct |
9 ms |
3892 KB |
Output is correct |
44 |
Correct |
14 ms |
4660 KB |
Output is correct |
45 |
Correct |
10 ms |
4240 KB |
Output is correct |
46 |
Correct |
9 ms |
4044 KB |
Output is correct |
47 |
Correct |
13 ms |
4812 KB |
Output is correct |
48 |
Runtime error |
488 ms |
524292 KB |
Execution killed with signal 9 |
49 |
Halted |
0 ms |
0 KB |
- |