#include "paint.h"
#pragma GCC optimize("unroll-loops,no-stack-protector,Ofast")
#include<bits/stdc++.h>
using namespace std;
typedef int ll;
typedef pair<ll,ll> pl;
#define pb push_back
#define ff first
#define ss second
// typedef tree<ll , null_type, less<ll>, rb_tree_tag, tree_order_statistics_node_update> indexed_set;
// template< typename T>
// using indexed_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
ll n,m,mid,mn,T,sum,c[1234567],h1,h2,x,y,z,l,r,cnt,cnt1,ans;
vector<ll> vec[1234567];
bool ok[1234567],ok1;
map<ll,ll> mp[1234567];
int minimumInstructions(
int N, int M, int K, std::vector<int> C,
std::vector<int> A, std::vector<std::vector<int>> B) {
for(int i=0;i<M;i++){
for(auto u:B[i]) vec[u].pb(i);
}
for(int i=N-1;i>=0;i--){
for(auto u:vec[C[i]]){
mp[i][u]=1;
//i dah toog u unguur ehlehed segment iin urtiig olno
if(mp[i+1][(u+1)%M]>0 && i < N-1){
mp[i][u]=max(mp[i][u],mp[i+1][(u+1)%M]+1);
}
if(mp[i][u] >= M){
ok[i+1]=1;
//i r tseg dres ehlej bolno
}
}
}
ll segnum=0;
for(int i=1;i<=N;i++){
//buh tsegiig ali tsegees ehleh ve gdgig olno
if(ok[i]==1)segnum=i;
c[i]=segnum;
}
/*for(int i=0;i<N;i++){
cout<<c[i]<<" ";
}
cout<<'\n';*/
int i=0;
while(i<N){
//cout<<i<<" ";
ans++;
x=c[i+1];
// x ees ehlene
if(x==-1 || x+M-1 <= i){
return -1;
}
i = x+M-1;
// i deer duusna
}
//cout<<'\n';
if(i!=N)return -1;
else return ans;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
51 ms |
87236 KB |
Output is correct |
2 |
Correct |
47 ms |
87260 KB |
Output is correct |
3 |
Correct |
53 ms |
87272 KB |
Output is correct |
4 |
Correct |
46 ms |
87172 KB |
Output is correct |
5 |
Correct |
46 ms |
87236 KB |
Output is correct |
6 |
Correct |
46 ms |
87252 KB |
Output is correct |
7 |
Correct |
46 ms |
87264 KB |
Output is correct |
8 |
Correct |
46 ms |
87308 KB |
Output is correct |
9 |
Correct |
57 ms |
87216 KB |
Output is correct |
10 |
Correct |
52 ms |
87236 KB |
Output is correct |
11 |
Correct |
52 ms |
87324 KB |
Output is correct |
12 |
Correct |
53 ms |
87284 KB |
Output is correct |
13 |
Correct |
63 ms |
87236 KB |
Output is correct |
14 |
Correct |
61 ms |
87228 KB |
Output is correct |
15 |
Correct |
47 ms |
87264 KB |
Output is correct |
16 |
Correct |
48 ms |
87224 KB |
Output is correct |
17 |
Correct |
48 ms |
87252 KB |
Output is correct |
18 |
Correct |
49 ms |
87280 KB |
Output is correct |
19 |
Correct |
51 ms |
87352 KB |
Output is correct |
20 |
Correct |
49 ms |
87268 KB |
Output is correct |
21 |
Correct |
50 ms |
87220 KB |
Output is correct |
22 |
Correct |
78 ms |
91716 KB |
Output is correct |
23 |
Correct |
87 ms |
91736 KB |
Output is correct |
24 |
Correct |
70 ms |
91748 KB |
Output is correct |
25 |
Correct |
58 ms |
88452 KB |
Output is correct |
26 |
Correct |
52 ms |
88496 KB |
Output is correct |
27 |
Correct |
57 ms |
88964 KB |
Output is correct |
28 |
Correct |
53 ms |
89060 KB |
Output is correct |
29 |
Correct |
60 ms |
89180 KB |
Output is correct |
30 |
Correct |
55 ms |
89136 KB |
Output is correct |
31 |
Correct |
67 ms |
89508 KB |
Output is correct |
32 |
Correct |
58 ms |
89592 KB |
Output is correct |
33 |
Correct |
59 ms |
89508 KB |
Output is correct |
34 |
Correct |
61 ms |
89628 KB |
Output is correct |
35 |
Correct |
58 ms |
89612 KB |
Output is correct |
36 |
Correct |
59 ms |
89540 KB |
Output is correct |
37 |
Correct |
94 ms |
94044 KB |
Output is correct |
38 |
Correct |
91 ms |
94112 KB |
Output is correct |
39 |
Correct |
78 ms |
94052 KB |
Output is correct |
40 |
Correct |
69 ms |
92868 KB |
Output is correct |
41 |
Correct |
68 ms |
90692 KB |
Output is correct |
42 |
Correct |
75 ms |
95656 KB |
Output is correct |
43 |
Correct |
66 ms |
93320 KB |
Output is correct |
44 |
Correct |
69 ms |
93008 KB |
Output is correct |
45 |
Correct |
73 ms |
97076 KB |
Output is correct |
46 |
Correct |
102 ms |
101640 KB |
Output is correct |
47 |
Correct |
83 ms |
95812 KB |
Output is correct |
48 |
Correct |
85 ms |
98288 KB |
Output is correct |
49 |
Correct |
100 ms |
101728 KB |
Output is correct |
50 |
Correct |
105 ms |
102340 KB |
Output is correct |
51 |
Correct |
99 ms |
100448 KB |
Output is correct |
52 |
Correct |
70 ms |
93368 KB |
Output is correct |
53 |
Correct |
68 ms |
93380 KB |
Output is correct |
54 |
Correct |
71 ms |
95860 KB |
Output is correct |
55 |
Correct |
73 ms |
96520 KB |
Output is correct |
56 |
Correct |
74 ms |
97072 KB |
Output is correct |
57 |
Correct |
73 ms |
97108 KB |
Output is correct |
58 |
Correct |
107 ms |
103172 KB |
Output is correct |
59 |
Correct |
125 ms |
103172 KB |
Output is correct |
60 |
Correct |
124 ms |
103236 KB |
Output is correct |
61 |
Correct |
108 ms |
103284 KB |
Output is correct |
62 |
Correct |
107 ms |
103240 KB |
Output is correct |
63 |
Correct |
107 ms |
103184 KB |
Output is correct |
64 |
Correct |
122 ms |
107064 KB |
Output is correct |
65 |
Correct |
121 ms |
107076 KB |
Output is correct |
66 |
Correct |
118 ms |
107108 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
51 ms |
87236 KB |
Output is correct |
2 |
Correct |
47 ms |
87260 KB |
Output is correct |
3 |
Correct |
53 ms |
87272 KB |
Output is correct |
4 |
Correct |
46 ms |
87172 KB |
Output is correct |
5 |
Correct |
46 ms |
87236 KB |
Output is correct |
6 |
Correct |
46 ms |
87252 KB |
Output is correct |
7 |
Correct |
46 ms |
87264 KB |
Output is correct |
8 |
Correct |
46 ms |
87308 KB |
Output is correct |
9 |
Correct |
57 ms |
87216 KB |
Output is correct |
10 |
Correct |
52 ms |
87236 KB |
Output is correct |
11 |
Correct |
52 ms |
87324 KB |
Output is correct |
12 |
Correct |
53 ms |
87284 KB |
Output is correct |
13 |
Correct |
63 ms |
87236 KB |
Output is correct |
14 |
Correct |
61 ms |
87228 KB |
Output is correct |
15 |
Correct |
47 ms |
87264 KB |
Output is correct |
16 |
Correct |
48 ms |
87224 KB |
Output is correct |
17 |
Correct |
48 ms |
87252 KB |
Output is correct |
18 |
Correct |
49 ms |
87280 KB |
Output is correct |
19 |
Correct |
51 ms |
87352 KB |
Output is correct |
20 |
Correct |
49 ms |
87268 KB |
Output is correct |
21 |
Correct |
50 ms |
87220 KB |
Output is correct |
22 |
Correct |
47 ms |
87208 KB |
Output is correct |
23 |
Correct |
49 ms |
87208 KB |
Output is correct |
24 |
Correct |
48 ms |
87260 KB |
Output is correct |
25 |
Correct |
47 ms |
87244 KB |
Output is correct |
26 |
Correct |
54 ms |
87252 KB |
Output is correct |
27 |
Correct |
47 ms |
87276 KB |
Output is correct |
28 |
Correct |
48 ms |
87712 KB |
Output is correct |
29 |
Correct |
48 ms |
87512 KB |
Output is correct |
30 |
Correct |
49 ms |
87492 KB |
Output is correct |
31 |
Correct |
48 ms |
87356 KB |
Output is correct |
32 |
Correct |
48 ms |
87536 KB |
Output is correct |
33 |
Correct |
55 ms |
87240 KB |
Output is correct |
34 |
Correct |
48 ms |
87236 KB |
Output is correct |
35 |
Correct |
47 ms |
87280 KB |
Output is correct |
36 |
Correct |
47 ms |
87260 KB |
Output is correct |
37 |
Correct |
47 ms |
87320 KB |
Output is correct |
38 |
Correct |
46 ms |
87244 KB |
Output is correct |
39 |
Correct |
47 ms |
87252 KB |
Output is correct |
40 |
Correct |
48 ms |
87200 KB |
Output is correct |
41 |
Correct |
47 ms |
87280 KB |
Output is correct |
42 |
Correct |
47 ms |
87212 KB |
Output is correct |
43 |
Correct |
47 ms |
87236 KB |
Output is correct |
44 |
Correct |
48 ms |
87256 KB |
Output is correct |
45 |
Correct |
50 ms |
88004 KB |
Output is correct |
46 |
Correct |
50 ms |
88012 KB |
Output is correct |
47 |
Correct |
51 ms |
87960 KB |
Output is correct |
48 |
Correct |
49 ms |
87840 KB |
Output is correct |
49 |
Correct |
49 ms |
87744 KB |
Output is correct |
50 |
Correct |
50 ms |
87336 KB |
Output is correct |
51 |
Correct |
48 ms |
87312 KB |
Output is correct |
52 |
Correct |
54 ms |
87304 KB |
Output is correct |
53 |
Correct |
47 ms |
87336 KB |
Output is correct |
54 |
Correct |
49 ms |
87236 KB |
Output is correct |
55 |
Correct |
48 ms |
87288 KB |
Output is correct |
56 |
Correct |
46 ms |
87276 KB |
Output is correct |
57 |
Correct |
47 ms |
87320 KB |
Output is correct |
58 |
Correct |
48 ms |
87236 KB |
Output is correct |
59 |
Correct |
48 ms |
87352 KB |
Output is correct |
60 |
Correct |
47 ms |
87236 KB |
Output is correct |
61 |
Correct |
47 ms |
87300 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
47 ms |
87208 KB |
Output is correct |
2 |
Correct |
49 ms |
87208 KB |
Output is correct |
3 |
Correct |
51 ms |
87236 KB |
Output is correct |
4 |
Correct |
47 ms |
87260 KB |
Output is correct |
5 |
Correct |
53 ms |
87272 KB |
Output is correct |
6 |
Correct |
46 ms |
87172 KB |
Output is correct |
7 |
Correct |
46 ms |
87236 KB |
Output is correct |
8 |
Correct |
46 ms |
87252 KB |
Output is correct |
9 |
Correct |
46 ms |
87264 KB |
Output is correct |
10 |
Correct |
46 ms |
87308 KB |
Output is correct |
11 |
Correct |
57 ms |
87216 KB |
Output is correct |
12 |
Correct |
52 ms |
87236 KB |
Output is correct |
13 |
Correct |
52 ms |
87324 KB |
Output is correct |
14 |
Correct |
53 ms |
87284 KB |
Output is correct |
15 |
Correct |
63 ms |
87236 KB |
Output is correct |
16 |
Correct |
61 ms |
87228 KB |
Output is correct |
17 |
Correct |
47 ms |
87264 KB |
Output is correct |
18 |
Correct |
48 ms |
87224 KB |
Output is correct |
19 |
Correct |
48 ms |
87252 KB |
Output is correct |
20 |
Correct |
49 ms |
87280 KB |
Output is correct |
21 |
Correct |
51 ms |
87352 KB |
Output is correct |
22 |
Correct |
49 ms |
87268 KB |
Output is correct |
23 |
Correct |
50 ms |
87220 KB |
Output is correct |
24 |
Correct |
78 ms |
91716 KB |
Output is correct |
25 |
Correct |
87 ms |
91736 KB |
Output is correct |
26 |
Correct |
70 ms |
91748 KB |
Output is correct |
27 |
Correct |
48 ms |
87260 KB |
Output is correct |
28 |
Correct |
47 ms |
87244 KB |
Output is correct |
29 |
Correct |
54 ms |
87252 KB |
Output is correct |
30 |
Correct |
47 ms |
87276 KB |
Output is correct |
31 |
Correct |
48 ms |
87712 KB |
Output is correct |
32 |
Correct |
48 ms |
87512 KB |
Output is correct |
33 |
Correct |
49 ms |
87492 KB |
Output is correct |
34 |
Correct |
48 ms |
87356 KB |
Output is correct |
35 |
Correct |
48 ms |
87536 KB |
Output is correct |
36 |
Correct |
55 ms |
87240 KB |
Output is correct |
37 |
Correct |
48 ms |
87236 KB |
Output is correct |
38 |
Correct |
47 ms |
87280 KB |
Output is correct |
39 |
Correct |
47 ms |
87260 KB |
Output is correct |
40 |
Correct |
47 ms |
87320 KB |
Output is correct |
41 |
Correct |
46 ms |
87244 KB |
Output is correct |
42 |
Correct |
47 ms |
87252 KB |
Output is correct |
43 |
Correct |
48 ms |
87200 KB |
Output is correct |
44 |
Correct |
47 ms |
87280 KB |
Output is correct |
45 |
Correct |
47 ms |
87212 KB |
Output is correct |
46 |
Correct |
47 ms |
87236 KB |
Output is correct |
47 |
Correct |
48 ms |
87256 KB |
Output is correct |
48 |
Correct |
50 ms |
88004 KB |
Output is correct |
49 |
Correct |
50 ms |
88012 KB |
Output is correct |
50 |
Correct |
51 ms |
87960 KB |
Output is correct |
51 |
Correct |
49 ms |
87840 KB |
Output is correct |
52 |
Correct |
49 ms |
87744 KB |
Output is correct |
53 |
Correct |
50 ms |
87336 KB |
Output is correct |
54 |
Correct |
48 ms |
87312 KB |
Output is correct |
55 |
Correct |
54 ms |
87304 KB |
Output is correct |
56 |
Correct |
47 ms |
87336 KB |
Output is correct |
57 |
Correct |
49 ms |
87236 KB |
Output is correct |
58 |
Correct |
48 ms |
87288 KB |
Output is correct |
59 |
Correct |
46 ms |
87276 KB |
Output is correct |
60 |
Correct |
47 ms |
87320 KB |
Output is correct |
61 |
Correct |
48 ms |
87236 KB |
Output is correct |
62 |
Correct |
48 ms |
87352 KB |
Output is correct |
63 |
Correct |
47 ms |
87236 KB |
Output is correct |
64 |
Correct |
47 ms |
87300 KB |
Output is correct |
65 |
Correct |
57 ms |
89428 KB |
Output is correct |
66 |
Correct |
54 ms |
88140 KB |
Output is correct |
67 |
Correct |
59 ms |
90028 KB |
Output is correct |
68 |
Correct |
54 ms |
88940 KB |
Output is correct |
69 |
Correct |
58 ms |
89716 KB |
Output is correct |
70 |
Correct |
51 ms |
88004 KB |
Output is correct |
71 |
Correct |
68 ms |
88184 KB |
Output is correct |
72 |
Correct |
60 ms |
87988 KB |
Output is correct |
73 |
Correct |
49 ms |
87624 KB |
Output is correct |
74 |
Correct |
50 ms |
87892 KB |
Output is correct |
75 |
Correct |
50 ms |
87820 KB |
Output is correct |
76 |
Correct |
69 ms |
90604 KB |
Output is correct |
77 |
Correct |
80 ms |
91072 KB |
Output is correct |
78 |
Correct |
75 ms |
91592 KB |
Output is correct |
79 |
Correct |
68 ms |
91984 KB |
Output is correct |
80 |
Correct |
70 ms |
92008 KB |
Output is correct |
81 |
Correct |
68 ms |
91976 KB |
Output is correct |
82 |
Correct |
79 ms |
91944 KB |
Output is correct |
83 |
Correct |
71 ms |
92132 KB |
Output is correct |
84 |
Correct |
51 ms |
88132 KB |
Output is correct |
85 |
Correct |
51 ms |
88204 KB |
Output is correct |
86 |
Correct |
61 ms |
88112 KB |
Output is correct |
87 |
Correct |
52 ms |
88148 KB |
Output is correct |
88 |
Correct |
51 ms |
88132 KB |
Output is correct |
89 |
Correct |
51 ms |
88132 KB |
Output is correct |
90 |
Correct |
80 ms |
91972 KB |
Output is correct |
91 |
Correct |
88 ms |
91888 KB |
Output is correct |
92 |
Correct |
81 ms |
92108 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
47 ms |
87208 KB |
Output is correct |
2 |
Correct |
49 ms |
87208 KB |
Output is correct |
3 |
Correct |
51 ms |
87236 KB |
Output is correct |
4 |
Correct |
47 ms |
87260 KB |
Output is correct |
5 |
Correct |
53 ms |
87272 KB |
Output is correct |
6 |
Correct |
46 ms |
87172 KB |
Output is correct |
7 |
Correct |
46 ms |
87236 KB |
Output is correct |
8 |
Correct |
46 ms |
87252 KB |
Output is correct |
9 |
Correct |
46 ms |
87264 KB |
Output is correct |
10 |
Correct |
46 ms |
87308 KB |
Output is correct |
11 |
Correct |
57 ms |
87216 KB |
Output is correct |
12 |
Correct |
52 ms |
87236 KB |
Output is correct |
13 |
Correct |
52 ms |
87324 KB |
Output is correct |
14 |
Correct |
53 ms |
87284 KB |
Output is correct |
15 |
Correct |
63 ms |
87236 KB |
Output is correct |
16 |
Correct |
61 ms |
87228 KB |
Output is correct |
17 |
Correct |
47 ms |
87264 KB |
Output is correct |
18 |
Correct |
48 ms |
87224 KB |
Output is correct |
19 |
Correct |
48 ms |
87252 KB |
Output is correct |
20 |
Correct |
49 ms |
87280 KB |
Output is correct |
21 |
Correct |
51 ms |
87352 KB |
Output is correct |
22 |
Correct |
49 ms |
87268 KB |
Output is correct |
23 |
Correct |
50 ms |
87220 KB |
Output is correct |
24 |
Correct |
78 ms |
91716 KB |
Output is correct |
25 |
Correct |
87 ms |
91736 KB |
Output is correct |
26 |
Correct |
70 ms |
91748 KB |
Output is correct |
27 |
Correct |
58 ms |
88452 KB |
Output is correct |
28 |
Correct |
52 ms |
88496 KB |
Output is correct |
29 |
Correct |
57 ms |
88964 KB |
Output is correct |
30 |
Correct |
53 ms |
89060 KB |
Output is correct |
31 |
Correct |
60 ms |
89180 KB |
Output is correct |
32 |
Correct |
55 ms |
89136 KB |
Output is correct |
33 |
Correct |
67 ms |
89508 KB |
Output is correct |
34 |
Correct |
58 ms |
89592 KB |
Output is correct |
35 |
Correct |
59 ms |
89508 KB |
Output is correct |
36 |
Correct |
61 ms |
89628 KB |
Output is correct |
37 |
Correct |
58 ms |
89612 KB |
Output is correct |
38 |
Correct |
59 ms |
89540 KB |
Output is correct |
39 |
Correct |
94 ms |
94044 KB |
Output is correct |
40 |
Correct |
91 ms |
94112 KB |
Output is correct |
41 |
Correct |
78 ms |
94052 KB |
Output is correct |
42 |
Correct |
48 ms |
87260 KB |
Output is correct |
43 |
Correct |
47 ms |
87244 KB |
Output is correct |
44 |
Correct |
54 ms |
87252 KB |
Output is correct |
45 |
Correct |
47 ms |
87276 KB |
Output is correct |
46 |
Correct |
48 ms |
87712 KB |
Output is correct |
47 |
Correct |
48 ms |
87512 KB |
Output is correct |
48 |
Correct |
49 ms |
87492 KB |
Output is correct |
49 |
Correct |
48 ms |
87356 KB |
Output is correct |
50 |
Correct |
48 ms |
87536 KB |
Output is correct |
51 |
Correct |
55 ms |
87240 KB |
Output is correct |
52 |
Correct |
48 ms |
87236 KB |
Output is correct |
53 |
Correct |
47 ms |
87280 KB |
Output is correct |
54 |
Correct |
47 ms |
87260 KB |
Output is correct |
55 |
Correct |
47 ms |
87320 KB |
Output is correct |
56 |
Correct |
46 ms |
87244 KB |
Output is correct |
57 |
Correct |
47 ms |
87252 KB |
Output is correct |
58 |
Correct |
48 ms |
87200 KB |
Output is correct |
59 |
Correct |
47 ms |
87280 KB |
Output is correct |
60 |
Correct |
47 ms |
87212 KB |
Output is correct |
61 |
Correct |
47 ms |
87236 KB |
Output is correct |
62 |
Correct |
48 ms |
87256 KB |
Output is correct |
63 |
Correct |
50 ms |
88004 KB |
Output is correct |
64 |
Correct |
50 ms |
88012 KB |
Output is correct |
65 |
Correct |
51 ms |
87960 KB |
Output is correct |
66 |
Correct |
49 ms |
87840 KB |
Output is correct |
67 |
Correct |
49 ms |
87744 KB |
Output is correct |
68 |
Correct |
50 ms |
87336 KB |
Output is correct |
69 |
Correct |
48 ms |
87312 KB |
Output is correct |
70 |
Correct |
54 ms |
87304 KB |
Output is correct |
71 |
Correct |
47 ms |
87336 KB |
Output is correct |
72 |
Correct |
49 ms |
87236 KB |
Output is correct |
73 |
Correct |
48 ms |
87288 KB |
Output is correct |
74 |
Correct |
46 ms |
87276 KB |
Output is correct |
75 |
Correct |
47 ms |
87320 KB |
Output is correct |
76 |
Correct |
48 ms |
87236 KB |
Output is correct |
77 |
Correct |
48 ms |
87352 KB |
Output is correct |
78 |
Correct |
47 ms |
87236 KB |
Output is correct |
79 |
Correct |
47 ms |
87300 KB |
Output is correct |
80 |
Correct |
57 ms |
89428 KB |
Output is correct |
81 |
Correct |
54 ms |
88140 KB |
Output is correct |
82 |
Correct |
59 ms |
90028 KB |
Output is correct |
83 |
Correct |
54 ms |
88940 KB |
Output is correct |
84 |
Correct |
58 ms |
89716 KB |
Output is correct |
85 |
Correct |
51 ms |
88004 KB |
Output is correct |
86 |
Correct |
68 ms |
88184 KB |
Output is correct |
87 |
Correct |
60 ms |
87988 KB |
Output is correct |
88 |
Correct |
49 ms |
87624 KB |
Output is correct |
89 |
Correct |
50 ms |
87892 KB |
Output is correct |
90 |
Correct |
50 ms |
87820 KB |
Output is correct |
91 |
Correct |
69 ms |
90604 KB |
Output is correct |
92 |
Correct |
80 ms |
91072 KB |
Output is correct |
93 |
Correct |
75 ms |
91592 KB |
Output is correct |
94 |
Correct |
68 ms |
91984 KB |
Output is correct |
95 |
Correct |
70 ms |
92008 KB |
Output is correct |
96 |
Correct |
68 ms |
91976 KB |
Output is correct |
97 |
Correct |
79 ms |
91944 KB |
Output is correct |
98 |
Correct |
71 ms |
92132 KB |
Output is correct |
99 |
Correct |
51 ms |
88132 KB |
Output is correct |
100 |
Correct |
51 ms |
88204 KB |
Output is correct |
101 |
Correct |
61 ms |
88112 KB |
Output is correct |
102 |
Correct |
52 ms |
88148 KB |
Output is correct |
103 |
Correct |
51 ms |
88132 KB |
Output is correct |
104 |
Correct |
51 ms |
88132 KB |
Output is correct |
105 |
Correct |
80 ms |
91972 KB |
Output is correct |
106 |
Correct |
88 ms |
91888 KB |
Output is correct |
107 |
Correct |
81 ms |
92108 KB |
Output is correct |
108 |
Correct |
55 ms |
89392 KB |
Output is correct |
109 |
Execution timed out |
1611 ms |
405204 KB |
Time limit exceeded |
110 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
47 ms |
87208 KB |
Output is correct |
2 |
Correct |
49 ms |
87208 KB |
Output is correct |
3 |
Correct |
51 ms |
87236 KB |
Output is correct |
4 |
Correct |
47 ms |
87260 KB |
Output is correct |
5 |
Correct |
53 ms |
87272 KB |
Output is correct |
6 |
Correct |
46 ms |
87172 KB |
Output is correct |
7 |
Correct |
46 ms |
87236 KB |
Output is correct |
8 |
Correct |
46 ms |
87252 KB |
Output is correct |
9 |
Correct |
46 ms |
87264 KB |
Output is correct |
10 |
Correct |
46 ms |
87308 KB |
Output is correct |
11 |
Correct |
57 ms |
87216 KB |
Output is correct |
12 |
Correct |
52 ms |
87236 KB |
Output is correct |
13 |
Correct |
52 ms |
87324 KB |
Output is correct |
14 |
Correct |
53 ms |
87284 KB |
Output is correct |
15 |
Correct |
63 ms |
87236 KB |
Output is correct |
16 |
Correct |
61 ms |
87228 KB |
Output is correct |
17 |
Correct |
47 ms |
87264 KB |
Output is correct |
18 |
Correct |
48 ms |
87224 KB |
Output is correct |
19 |
Correct |
48 ms |
87252 KB |
Output is correct |
20 |
Correct |
49 ms |
87280 KB |
Output is correct |
21 |
Correct |
51 ms |
87352 KB |
Output is correct |
22 |
Correct |
49 ms |
87268 KB |
Output is correct |
23 |
Correct |
50 ms |
87220 KB |
Output is correct |
24 |
Correct |
78 ms |
91716 KB |
Output is correct |
25 |
Correct |
87 ms |
91736 KB |
Output is correct |
26 |
Correct |
70 ms |
91748 KB |
Output is correct |
27 |
Correct |
58 ms |
88452 KB |
Output is correct |
28 |
Correct |
52 ms |
88496 KB |
Output is correct |
29 |
Correct |
57 ms |
88964 KB |
Output is correct |
30 |
Correct |
53 ms |
89060 KB |
Output is correct |
31 |
Correct |
60 ms |
89180 KB |
Output is correct |
32 |
Correct |
55 ms |
89136 KB |
Output is correct |
33 |
Correct |
67 ms |
89508 KB |
Output is correct |
34 |
Correct |
58 ms |
89592 KB |
Output is correct |
35 |
Correct |
59 ms |
89508 KB |
Output is correct |
36 |
Correct |
61 ms |
89628 KB |
Output is correct |
37 |
Correct |
58 ms |
89612 KB |
Output is correct |
38 |
Correct |
59 ms |
89540 KB |
Output is correct |
39 |
Correct |
94 ms |
94044 KB |
Output is correct |
40 |
Correct |
91 ms |
94112 KB |
Output is correct |
41 |
Correct |
78 ms |
94052 KB |
Output is correct |
42 |
Correct |
69 ms |
92868 KB |
Output is correct |
43 |
Correct |
68 ms |
90692 KB |
Output is correct |
44 |
Correct |
75 ms |
95656 KB |
Output is correct |
45 |
Correct |
66 ms |
93320 KB |
Output is correct |
46 |
Correct |
69 ms |
93008 KB |
Output is correct |
47 |
Correct |
73 ms |
97076 KB |
Output is correct |
48 |
Correct |
102 ms |
101640 KB |
Output is correct |
49 |
Correct |
83 ms |
95812 KB |
Output is correct |
50 |
Correct |
85 ms |
98288 KB |
Output is correct |
51 |
Correct |
100 ms |
101728 KB |
Output is correct |
52 |
Correct |
105 ms |
102340 KB |
Output is correct |
53 |
Correct |
99 ms |
100448 KB |
Output is correct |
54 |
Correct |
70 ms |
93368 KB |
Output is correct |
55 |
Correct |
68 ms |
93380 KB |
Output is correct |
56 |
Correct |
71 ms |
95860 KB |
Output is correct |
57 |
Correct |
73 ms |
96520 KB |
Output is correct |
58 |
Correct |
74 ms |
97072 KB |
Output is correct |
59 |
Correct |
73 ms |
97108 KB |
Output is correct |
60 |
Correct |
107 ms |
103172 KB |
Output is correct |
61 |
Correct |
125 ms |
103172 KB |
Output is correct |
62 |
Correct |
124 ms |
103236 KB |
Output is correct |
63 |
Correct |
108 ms |
103284 KB |
Output is correct |
64 |
Correct |
107 ms |
103240 KB |
Output is correct |
65 |
Correct |
107 ms |
103184 KB |
Output is correct |
66 |
Correct |
122 ms |
107064 KB |
Output is correct |
67 |
Correct |
121 ms |
107076 KB |
Output is correct |
68 |
Correct |
118 ms |
107108 KB |
Output is correct |
69 |
Correct |
48 ms |
87260 KB |
Output is correct |
70 |
Correct |
47 ms |
87244 KB |
Output is correct |
71 |
Correct |
54 ms |
87252 KB |
Output is correct |
72 |
Correct |
47 ms |
87276 KB |
Output is correct |
73 |
Correct |
48 ms |
87712 KB |
Output is correct |
74 |
Correct |
48 ms |
87512 KB |
Output is correct |
75 |
Correct |
49 ms |
87492 KB |
Output is correct |
76 |
Correct |
48 ms |
87356 KB |
Output is correct |
77 |
Correct |
48 ms |
87536 KB |
Output is correct |
78 |
Correct |
55 ms |
87240 KB |
Output is correct |
79 |
Correct |
48 ms |
87236 KB |
Output is correct |
80 |
Correct |
47 ms |
87280 KB |
Output is correct |
81 |
Correct |
47 ms |
87260 KB |
Output is correct |
82 |
Correct |
47 ms |
87320 KB |
Output is correct |
83 |
Correct |
46 ms |
87244 KB |
Output is correct |
84 |
Correct |
47 ms |
87252 KB |
Output is correct |
85 |
Correct |
48 ms |
87200 KB |
Output is correct |
86 |
Correct |
47 ms |
87280 KB |
Output is correct |
87 |
Correct |
47 ms |
87212 KB |
Output is correct |
88 |
Correct |
47 ms |
87236 KB |
Output is correct |
89 |
Correct |
48 ms |
87256 KB |
Output is correct |
90 |
Correct |
50 ms |
88004 KB |
Output is correct |
91 |
Correct |
50 ms |
88012 KB |
Output is correct |
92 |
Correct |
51 ms |
87960 KB |
Output is correct |
93 |
Correct |
49 ms |
87840 KB |
Output is correct |
94 |
Correct |
49 ms |
87744 KB |
Output is correct |
95 |
Correct |
50 ms |
87336 KB |
Output is correct |
96 |
Correct |
48 ms |
87312 KB |
Output is correct |
97 |
Correct |
54 ms |
87304 KB |
Output is correct |
98 |
Correct |
47 ms |
87336 KB |
Output is correct |
99 |
Correct |
49 ms |
87236 KB |
Output is correct |
100 |
Correct |
48 ms |
87288 KB |
Output is correct |
101 |
Correct |
46 ms |
87276 KB |
Output is correct |
102 |
Correct |
47 ms |
87320 KB |
Output is correct |
103 |
Correct |
48 ms |
87236 KB |
Output is correct |
104 |
Correct |
48 ms |
87352 KB |
Output is correct |
105 |
Correct |
47 ms |
87236 KB |
Output is correct |
106 |
Correct |
47 ms |
87300 KB |
Output is correct |
107 |
Correct |
57 ms |
89428 KB |
Output is correct |
108 |
Correct |
54 ms |
88140 KB |
Output is correct |
109 |
Correct |
59 ms |
90028 KB |
Output is correct |
110 |
Correct |
54 ms |
88940 KB |
Output is correct |
111 |
Correct |
58 ms |
89716 KB |
Output is correct |
112 |
Correct |
51 ms |
88004 KB |
Output is correct |
113 |
Correct |
68 ms |
88184 KB |
Output is correct |
114 |
Correct |
60 ms |
87988 KB |
Output is correct |
115 |
Correct |
49 ms |
87624 KB |
Output is correct |
116 |
Correct |
50 ms |
87892 KB |
Output is correct |
117 |
Correct |
50 ms |
87820 KB |
Output is correct |
118 |
Correct |
69 ms |
90604 KB |
Output is correct |
119 |
Correct |
80 ms |
91072 KB |
Output is correct |
120 |
Correct |
75 ms |
91592 KB |
Output is correct |
121 |
Correct |
68 ms |
91984 KB |
Output is correct |
122 |
Correct |
70 ms |
92008 KB |
Output is correct |
123 |
Correct |
68 ms |
91976 KB |
Output is correct |
124 |
Correct |
79 ms |
91944 KB |
Output is correct |
125 |
Correct |
71 ms |
92132 KB |
Output is correct |
126 |
Correct |
51 ms |
88132 KB |
Output is correct |
127 |
Correct |
51 ms |
88204 KB |
Output is correct |
128 |
Correct |
61 ms |
88112 KB |
Output is correct |
129 |
Correct |
52 ms |
88148 KB |
Output is correct |
130 |
Correct |
51 ms |
88132 KB |
Output is correct |
131 |
Correct |
51 ms |
88132 KB |
Output is correct |
132 |
Correct |
80 ms |
91972 KB |
Output is correct |
133 |
Correct |
88 ms |
91888 KB |
Output is correct |
134 |
Correct |
81 ms |
92108 KB |
Output is correct |
135 |
Correct |
55 ms |
89392 KB |
Output is correct |
136 |
Execution timed out |
1611 ms |
405204 KB |
Time limit exceeded |
137 |
Halted |
0 ms |
0 KB |
- |