#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll,ll> P;
typedef vector<ll> vi;
typedef vector<vi> vvi;
typedef vector<P> vp;
typedef vector<vp> vvp;
typedef vector<bool> vb;
#define rep(i,n) for(ll i=0;i<(ll)(n);i++)
#define REP(i,k,n) for(ll i=(ll)(k);i<(ll)(n);i++)
#define all(a) a.begin(),a.end()
#define lb(v,k) (lower_bound(all(v),k)-v.begin())
#define fi first
#define se second
#define pb emplace_back
#define dupli(a) {sort(all(a));a.erase(unique(all(a)),a.end());}
template<class T> void out(T a){cout<<a<<endl;}
template<class T> void outv(T v){rep(i,v.size()){if(i)cout<<' ';cout<<v[i];}cout<<endl;}
template<class T> bool chmin(T&a,T b){if(a>b){a=b;return true;}return false;}
template<class T> bool chmax(T&a,T b){if(a<b){a=b;return true;}return false;}
const ll inf=1001001001001001001;
int main(){
ll n,K;cin>>n>>K;
ll tot=0,sum=0;
vi a(n),b(n);
rep(i,n)cin>>a[i];
cin>>tot;
rep(i,n)cin>>b[i];
reverse(all(a));
rep(i,n)sum-=a[i]*(i+1);
rep(i,n)sum+=b[i]*(i+1);
rep(i,n)tot+=a[i];
rep(i,n)tot+=b[i];
sum-=K;
if(sum<0){
sum*=-1;swap(a,b);
}
ll mx=1100000,mx2=500000;
auto sol=[&](vi v){
vi dp(mx+1,inf);dp[0]=0;
REP(i,1,v.size()+1){
vi ndp=dp;
rep(j,i){
deque<ll> deq;
for(ll k=j;k<=mx;k+=i){
if(dp[k]!=inf){
while(deq.size()&&dp[deq.back()]-deq.back()/i>=dp[k]-k/i)deq.pop_back();
deq.pb(k);
}
while(deq.size()&&deq.front()<k-i*v[i-1])deq.pop_front();
if(deq.size())chmin(ndp[k],dp[deq.front()]+(k-deq.front())/i);
}
}
dp=ndp;
}
return dp;
};
for(int i=n;i>0;i--)if(sum>mx2){
ll mi=min(b[i-1]-i,(sum-mx2)/i+1);
chmax(mi,0ll);
sum-=mi*i;
b[i-1]-=mi;
tot-=mi;
}
if(sum>mx){
out("impossible");
return 0;
}
vi dpa=sol(a);
vi dpb=sol(b);
ll ans=inf;
rep(i,dpa.size())if(i+sum<dpb.size())chmin(ans,dpa[i]+dpb[i+sum]);
if(ans==inf)out("impossible");
else out(tot-ans);
}
Compilation message
vault.cpp: In function 'int main()':
vault.cpp:74:30: warning: comparison of integer expressions of different signedness: 'll' {aka 'long long int'} and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
74 | rep(i,dpa.size())if(i+sum<dpb.size())chmin(ans,dpa[i]+dpb[i+sum]);
| ~~~~~^~~~~~~~~~~
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
39 ms |
26040 KB |
Output is correct |
2 |
Correct |
57 ms |
26032 KB |
Output is correct |
3 |
Correct |
27 ms |
26068 KB |
Output is correct |
4 |
Correct |
185 ms |
26092 KB |
Output is correct |
5 |
Correct |
0 ms |
212 KB |
Output is correct |
6 |
Correct |
1211 ms |
26124 KB |
Output is correct |
7 |
Correct |
1031 ms |
26124 KB |
Output is correct |
8 |
Correct |
1190 ms |
26124 KB |
Output is correct |
9 |
Correct |
1207 ms |
26128 KB |
Output is correct |
10 |
Correct |
1024 ms |
26120 KB |
Output is correct |
11 |
Correct |
1000 ms |
26124 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
39 ms |
26040 KB |
Output is correct |
2 |
Correct |
57 ms |
26032 KB |
Output is correct |
3 |
Correct |
27 ms |
26068 KB |
Output is correct |
4 |
Correct |
185 ms |
26092 KB |
Output is correct |
5 |
Correct |
0 ms |
212 KB |
Output is correct |
6 |
Correct |
1211 ms |
26124 KB |
Output is correct |
7 |
Correct |
1031 ms |
26124 KB |
Output is correct |
8 |
Correct |
1190 ms |
26124 KB |
Output is correct |
9 |
Correct |
1207 ms |
26128 KB |
Output is correct |
10 |
Correct |
1024 ms |
26120 KB |
Output is correct |
11 |
Correct |
1000 ms |
26124 KB |
Output is correct |
12 |
Correct |
36 ms |
26048 KB |
Output is correct |
13 |
Correct |
51 ms |
26116 KB |
Output is correct |
14 |
Correct |
27 ms |
26156 KB |
Output is correct |
15 |
Correct |
152 ms |
26120 KB |
Output is correct |
16 |
Correct |
1 ms |
212 KB |
Output is correct |
17 |
Correct |
939 ms |
26124 KB |
Output is correct |
18 |
Correct |
984 ms |
26124 KB |
Output is correct |
19 |
Correct |
1016 ms |
26120 KB |
Output is correct |
20 |
Correct |
1172 ms |
26220 KB |
Output is correct |
21 |
Correct |
1130 ms |
26116 KB |
Output is correct |
22 |
Correct |
1037 ms |
26120 KB |
Output is correct |
23 |
Correct |
1 ms |
212 KB |
Output is correct |
24 |
Correct |
2497 ms |
26136 KB |
Output is correct |
25 |
Correct |
2374 ms |
26124 KB |
Output is correct |
26 |
Correct |
2683 ms |
26040 KB |
Output is correct |
27 |
Correct |
3125 ms |
26216 KB |
Output is correct |
28 |
Correct |
2075 ms |
26128 KB |
Output is correct |
29 |
Correct |
2191 ms |
26124 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
165 ms |
26024 KB |
Output is correct |
2 |
Correct |
1352 ms |
26884 KB |
Output is correct |
3 |
Correct |
870 ms |
26216 KB |
Output is correct |
4 |
Correct |
1225 ms |
28388 KB |
Output is correct |
5 |
Correct |
1270 ms |
26824 KB |
Output is correct |
6 |
Correct |
1205 ms |
27432 KB |
Output is correct |
7 |
Correct |
612 ms |
26128 KB |
Output is correct |
8 |
Correct |
637 ms |
26052 KB |
Output is correct |
9 |
Correct |
1156 ms |
27420 KB |
Output is correct |
10 |
Correct |
1072 ms |
26364 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
165 ms |
26024 KB |
Output is correct |
2 |
Correct |
1352 ms |
26884 KB |
Output is correct |
3 |
Correct |
870 ms |
26216 KB |
Output is correct |
4 |
Correct |
1225 ms |
28388 KB |
Output is correct |
5 |
Correct |
1270 ms |
26824 KB |
Output is correct |
6 |
Correct |
1205 ms |
27432 KB |
Output is correct |
7 |
Correct |
612 ms |
26128 KB |
Output is correct |
8 |
Correct |
637 ms |
26052 KB |
Output is correct |
9 |
Correct |
1156 ms |
27420 KB |
Output is correct |
10 |
Correct |
1072 ms |
26364 KB |
Output is correct |
11 |
Correct |
42 ms |
26120 KB |
Output is correct |
12 |
Correct |
58 ms |
26124 KB |
Output is correct |
13 |
Correct |
27 ms |
26048 KB |
Output is correct |
14 |
Correct |
153 ms |
26120 KB |
Output is correct |
15 |
Correct |
1224 ms |
26884 KB |
Output is correct |
16 |
Correct |
943 ms |
26344 KB |
Output is correct |
17 |
Correct |
1259 ms |
28392 KB |
Output is correct |
18 |
Correct |
1220 ms |
26824 KB |
Output is correct |
19 |
Correct |
1205 ms |
27540 KB |
Output is correct |
20 |
Correct |
626 ms |
26128 KB |
Output is correct |
21 |
Correct |
665 ms |
26116 KB |
Output is correct |
22 |
Correct |
1315 ms |
27420 KB |
Output is correct |
23 |
Correct |
1173 ms |
26360 KB |
Output is correct |
24 |
Correct |
1894 ms |
26776 KB |
Output is correct |
25 |
Correct |
1191 ms |
26080 KB |
Output is correct |
26 |
Correct |
1850 ms |
26584 KB |
Output is correct |
27 |
Correct |
1813 ms |
26820 KB |
Output is correct |
28 |
Correct |
1772 ms |
27576 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
165 ms |
26024 KB |
Output is correct |
2 |
Correct |
1352 ms |
26884 KB |
Output is correct |
3 |
Correct |
870 ms |
26216 KB |
Output is correct |
4 |
Correct |
1225 ms |
28388 KB |
Output is correct |
5 |
Correct |
1270 ms |
26824 KB |
Output is correct |
6 |
Correct |
1205 ms |
27432 KB |
Output is correct |
7 |
Correct |
612 ms |
26128 KB |
Output is correct |
8 |
Correct |
637 ms |
26052 KB |
Output is correct |
9 |
Correct |
1156 ms |
27420 KB |
Output is correct |
10 |
Correct |
1072 ms |
26364 KB |
Output is correct |
11 |
Correct |
139 ms |
26120 KB |
Output is correct |
12 |
Correct |
1247 ms |
26988 KB |
Output is correct |
13 |
Correct |
847 ms |
26216 KB |
Output is correct |
14 |
Correct |
1106 ms |
28388 KB |
Output is correct |
15 |
Correct |
1056 ms |
26920 KB |
Output is correct |
16 |
Correct |
1059 ms |
27664 KB |
Output is correct |
17 |
Correct |
556 ms |
26084 KB |
Output is correct |
18 |
Correct |
546 ms |
26100 KB |
Output is correct |
19 |
Correct |
1086 ms |
27496 KB |
Output is correct |
20 |
Correct |
989 ms |
26476 KB |
Output is correct |
21 |
Correct |
863 ms |
26084 KB |
Output is correct |
22 |
Correct |
879 ms |
26120 KB |
Output is correct |
23 |
Correct |
1860 ms |
26648 KB |
Output is correct |
24 |
Correct |
1591 ms |
26536 KB |
Output is correct |
25 |
Correct |
1926 ms |
27636 KB |
Output is correct |
26 |
Correct |
1932 ms |
27416 KB |
Output is correct |
27 |
Correct |
1704 ms |
27108 KB |
Output is correct |
28 |
Correct |
1881 ms |
26604 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
39 ms |
26040 KB |
Output is correct |
2 |
Correct |
57 ms |
26032 KB |
Output is correct |
3 |
Correct |
27 ms |
26068 KB |
Output is correct |
4 |
Correct |
185 ms |
26092 KB |
Output is correct |
5 |
Correct |
0 ms |
212 KB |
Output is correct |
6 |
Correct |
1211 ms |
26124 KB |
Output is correct |
7 |
Correct |
1031 ms |
26124 KB |
Output is correct |
8 |
Correct |
1190 ms |
26124 KB |
Output is correct |
9 |
Correct |
1207 ms |
26128 KB |
Output is correct |
10 |
Correct |
1024 ms |
26120 KB |
Output is correct |
11 |
Correct |
1000 ms |
26124 KB |
Output is correct |
12 |
Correct |
165 ms |
26024 KB |
Output is correct |
13 |
Correct |
1352 ms |
26884 KB |
Output is correct |
14 |
Correct |
870 ms |
26216 KB |
Output is correct |
15 |
Correct |
1225 ms |
28388 KB |
Output is correct |
16 |
Correct |
1270 ms |
26824 KB |
Output is correct |
17 |
Correct |
1205 ms |
27432 KB |
Output is correct |
18 |
Correct |
612 ms |
26128 KB |
Output is correct |
19 |
Correct |
637 ms |
26052 KB |
Output is correct |
20 |
Correct |
1156 ms |
27420 KB |
Output is correct |
21 |
Correct |
1072 ms |
26364 KB |
Output is correct |
22 |
Correct |
42 ms |
26120 KB |
Output is correct |
23 |
Correct |
58 ms |
26124 KB |
Output is correct |
24 |
Correct |
27 ms |
26048 KB |
Output is correct |
25 |
Correct |
153 ms |
26120 KB |
Output is correct |
26 |
Correct |
1224 ms |
26884 KB |
Output is correct |
27 |
Correct |
943 ms |
26344 KB |
Output is correct |
28 |
Correct |
1259 ms |
28392 KB |
Output is correct |
29 |
Correct |
1220 ms |
26824 KB |
Output is correct |
30 |
Correct |
1205 ms |
27540 KB |
Output is correct |
31 |
Correct |
626 ms |
26128 KB |
Output is correct |
32 |
Correct |
665 ms |
26116 KB |
Output is correct |
33 |
Correct |
1315 ms |
27420 KB |
Output is correct |
34 |
Correct |
1173 ms |
26360 KB |
Output is correct |
35 |
Correct |
1894 ms |
26776 KB |
Output is correct |
36 |
Correct |
1191 ms |
26080 KB |
Output is correct |
37 |
Correct |
1850 ms |
26584 KB |
Output is correct |
38 |
Correct |
1813 ms |
26820 KB |
Output is correct |
39 |
Correct |
1772 ms |
27576 KB |
Output is correct |
40 |
Correct |
139 ms |
26120 KB |
Output is correct |
41 |
Correct |
1247 ms |
26988 KB |
Output is correct |
42 |
Correct |
847 ms |
26216 KB |
Output is correct |
43 |
Correct |
1106 ms |
28388 KB |
Output is correct |
44 |
Correct |
1056 ms |
26920 KB |
Output is correct |
45 |
Correct |
1059 ms |
27664 KB |
Output is correct |
46 |
Correct |
556 ms |
26084 KB |
Output is correct |
47 |
Correct |
546 ms |
26100 KB |
Output is correct |
48 |
Correct |
1086 ms |
27496 KB |
Output is correct |
49 |
Correct |
989 ms |
26476 KB |
Output is correct |
50 |
Correct |
863 ms |
26084 KB |
Output is correct |
51 |
Correct |
879 ms |
26120 KB |
Output is correct |
52 |
Correct |
1860 ms |
26648 KB |
Output is correct |
53 |
Correct |
1591 ms |
26536 KB |
Output is correct |
54 |
Correct |
1926 ms |
27636 KB |
Output is correct |
55 |
Correct |
1932 ms |
27416 KB |
Output is correct |
56 |
Correct |
1704 ms |
27108 KB |
Output is correct |
57 |
Correct |
1881 ms |
26604 KB |
Output is correct |
58 |
Correct |
37 ms |
26092 KB |
Output is correct |
59 |
Correct |
43 ms |
26048 KB |
Output is correct |
60 |
Correct |
25 ms |
26136 KB |
Output is correct |
61 |
Correct |
135 ms |
26180 KB |
Output is correct |
62 |
Correct |
0 ms |
212 KB |
Output is correct |
63 |
Correct |
890 ms |
26100 KB |
Output is correct |
64 |
Correct |
881 ms |
26128 KB |
Output is correct |
65 |
Correct |
898 ms |
26128 KB |
Output is correct |
66 |
Correct |
914 ms |
26124 KB |
Output is correct |
67 |
Correct |
864 ms |
26220 KB |
Output is correct |
68 |
Correct |
836 ms |
26136 KB |
Output is correct |
69 |
Correct |
1149 ms |
26888 KB |
Output is correct |
70 |
Correct |
809 ms |
26364 KB |
Output is correct |
71 |
Correct |
1170 ms |
28396 KB |
Output is correct |
72 |
Correct |
1059 ms |
26820 KB |
Output is correct |
73 |
Correct |
1044 ms |
27628 KB |
Output is correct |
74 |
Correct |
495 ms |
26124 KB |
Output is correct |
75 |
Correct |
518 ms |
26096 KB |
Output is correct |
76 |
Correct |
1083 ms |
27532 KB |
Output is correct |
77 |
Correct |
1084 ms |
26364 KB |
Output is correct |
78 |
Correct |
1713 ms |
26884 KB |
Output is correct |
79 |
Correct |
1004 ms |
26228 KB |
Output is correct |
80 |
Correct |
1529 ms |
26604 KB |
Output is correct |
81 |
Correct |
1633 ms |
26912 KB |
Output is correct |
82 |
Correct |
1608 ms |
27568 KB |
Output is correct |
83 |
Correct |
1857 ms |
26652 KB |
Output is correct |
84 |
Correct |
1558 ms |
26468 KB |
Output is correct |
85 |
Correct |
1898 ms |
27696 KB |
Output is correct |
86 |
Correct |
1877 ms |
27412 KB |
Output is correct |
87 |
Correct |
1678 ms |
27112 KB |
Output is correct |
88 |
Correct |
1873 ms |
26608 KB |
Output is correct |
89 |
Correct |
2796 ms |
26512 KB |
Output is correct |
90 |
Correct |
3053 ms |
27372 KB |
Output is correct |
91 |
Correct |
2897 ms |
27756 KB |
Output is correct |
92 |
Correct |
2724 ms |
27692 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
165 ms |
26024 KB |
Output is correct |
2 |
Correct |
1352 ms |
26884 KB |
Output is correct |
3 |
Correct |
870 ms |
26216 KB |
Output is correct |
4 |
Correct |
1225 ms |
28388 KB |
Output is correct |
5 |
Correct |
1270 ms |
26824 KB |
Output is correct |
6 |
Correct |
1205 ms |
27432 KB |
Output is correct |
7 |
Correct |
612 ms |
26128 KB |
Output is correct |
8 |
Correct |
637 ms |
26052 KB |
Output is correct |
9 |
Correct |
1156 ms |
27420 KB |
Output is correct |
10 |
Correct |
1072 ms |
26364 KB |
Output is correct |
11 |
Correct |
139 ms |
26120 KB |
Output is correct |
12 |
Correct |
1247 ms |
26988 KB |
Output is correct |
13 |
Correct |
847 ms |
26216 KB |
Output is correct |
14 |
Correct |
1106 ms |
28388 KB |
Output is correct |
15 |
Correct |
1056 ms |
26920 KB |
Output is correct |
16 |
Correct |
1059 ms |
27664 KB |
Output is correct |
17 |
Correct |
556 ms |
26084 KB |
Output is correct |
18 |
Correct |
546 ms |
26100 KB |
Output is correct |
19 |
Correct |
1086 ms |
27496 KB |
Output is correct |
20 |
Correct |
989 ms |
26476 KB |
Output is correct |
21 |
Correct |
863 ms |
26084 KB |
Output is correct |
22 |
Correct |
879 ms |
26120 KB |
Output is correct |
23 |
Correct |
1860 ms |
26648 KB |
Output is correct |
24 |
Correct |
1591 ms |
26536 KB |
Output is correct |
25 |
Correct |
1926 ms |
27636 KB |
Output is correct |
26 |
Correct |
1932 ms |
27416 KB |
Output is correct |
27 |
Correct |
1704 ms |
27108 KB |
Output is correct |
28 |
Correct |
1881 ms |
26604 KB |
Output is correct |
29 |
Correct |
148 ms |
26100 KB |
Output is correct |
30 |
Correct |
1151 ms |
26888 KB |
Output is correct |
31 |
Correct |
853 ms |
26220 KB |
Output is correct |
32 |
Correct |
1115 ms |
28280 KB |
Output is correct |
33 |
Correct |
1082 ms |
26832 KB |
Output is correct |
34 |
Correct |
1033 ms |
27624 KB |
Output is correct |
35 |
Correct |
499 ms |
26128 KB |
Output is correct |
36 |
Correct |
517 ms |
26124 KB |
Output is correct |
37 |
Correct |
1030 ms |
27424 KB |
Output is correct |
38 |
Correct |
995 ms |
26360 KB |
Output is correct |
39 |
Correct |
956 ms |
26120 KB |
Output is correct |
40 |
Correct |
955 ms |
26096 KB |
Output is correct |
41 |
Correct |
1861 ms |
26652 KB |
Output is correct |
42 |
Correct |
1615 ms |
26448 KB |
Output is correct |
43 |
Correct |
1898 ms |
27640 KB |
Output is correct |
44 |
Correct |
1845 ms |
27424 KB |
Output is correct |
45 |
Correct |
1731 ms |
27116 KB |
Output is correct |
46 |
Correct |
1935 ms |
26596 KB |
Output is correct |
47 |
Correct |
1784 ms |
26132 KB |
Output is correct |
48 |
Correct |
1808 ms |
26132 KB |
Output is correct |
49 |
Correct |
3828 ms |
28388 KB |
Output is correct |
50 |
Correct |
3166 ms |
26236 KB |
Output is correct |
51 |
Correct |
3914 ms |
29128 KB |
Output is correct |
52 |
Correct |
3925 ms |
27968 KB |
Output is correct |
53 |
Correct |
3346 ms |
26804 KB |
Output is correct |
54 |
Correct |
3781 ms |
27636 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
39 ms |
26040 KB |
Output is correct |
2 |
Correct |
57 ms |
26032 KB |
Output is correct |
3 |
Correct |
27 ms |
26068 KB |
Output is correct |
4 |
Correct |
185 ms |
26092 KB |
Output is correct |
5 |
Correct |
0 ms |
212 KB |
Output is correct |
6 |
Correct |
1211 ms |
26124 KB |
Output is correct |
7 |
Correct |
1031 ms |
26124 KB |
Output is correct |
8 |
Correct |
1190 ms |
26124 KB |
Output is correct |
9 |
Correct |
1207 ms |
26128 KB |
Output is correct |
10 |
Correct |
1024 ms |
26120 KB |
Output is correct |
11 |
Correct |
1000 ms |
26124 KB |
Output is correct |
12 |
Correct |
36 ms |
26048 KB |
Output is correct |
13 |
Correct |
51 ms |
26116 KB |
Output is correct |
14 |
Correct |
27 ms |
26156 KB |
Output is correct |
15 |
Correct |
152 ms |
26120 KB |
Output is correct |
16 |
Correct |
1 ms |
212 KB |
Output is correct |
17 |
Correct |
939 ms |
26124 KB |
Output is correct |
18 |
Correct |
984 ms |
26124 KB |
Output is correct |
19 |
Correct |
1016 ms |
26120 KB |
Output is correct |
20 |
Correct |
1172 ms |
26220 KB |
Output is correct |
21 |
Correct |
1130 ms |
26116 KB |
Output is correct |
22 |
Correct |
1037 ms |
26120 KB |
Output is correct |
23 |
Correct |
1 ms |
212 KB |
Output is correct |
24 |
Correct |
2497 ms |
26136 KB |
Output is correct |
25 |
Correct |
2374 ms |
26124 KB |
Output is correct |
26 |
Correct |
2683 ms |
26040 KB |
Output is correct |
27 |
Correct |
3125 ms |
26216 KB |
Output is correct |
28 |
Correct |
2075 ms |
26128 KB |
Output is correct |
29 |
Correct |
2191 ms |
26124 KB |
Output is correct |
30 |
Correct |
165 ms |
26024 KB |
Output is correct |
31 |
Correct |
1352 ms |
26884 KB |
Output is correct |
32 |
Correct |
870 ms |
26216 KB |
Output is correct |
33 |
Correct |
1225 ms |
28388 KB |
Output is correct |
34 |
Correct |
1270 ms |
26824 KB |
Output is correct |
35 |
Correct |
1205 ms |
27432 KB |
Output is correct |
36 |
Correct |
612 ms |
26128 KB |
Output is correct |
37 |
Correct |
637 ms |
26052 KB |
Output is correct |
38 |
Correct |
1156 ms |
27420 KB |
Output is correct |
39 |
Correct |
1072 ms |
26364 KB |
Output is correct |
40 |
Correct |
42 ms |
26120 KB |
Output is correct |
41 |
Correct |
58 ms |
26124 KB |
Output is correct |
42 |
Correct |
27 ms |
26048 KB |
Output is correct |
43 |
Correct |
153 ms |
26120 KB |
Output is correct |
44 |
Correct |
1224 ms |
26884 KB |
Output is correct |
45 |
Correct |
943 ms |
26344 KB |
Output is correct |
46 |
Correct |
1259 ms |
28392 KB |
Output is correct |
47 |
Correct |
1220 ms |
26824 KB |
Output is correct |
48 |
Correct |
1205 ms |
27540 KB |
Output is correct |
49 |
Correct |
626 ms |
26128 KB |
Output is correct |
50 |
Correct |
665 ms |
26116 KB |
Output is correct |
51 |
Correct |
1315 ms |
27420 KB |
Output is correct |
52 |
Correct |
1173 ms |
26360 KB |
Output is correct |
53 |
Correct |
1894 ms |
26776 KB |
Output is correct |
54 |
Correct |
1191 ms |
26080 KB |
Output is correct |
55 |
Correct |
1850 ms |
26584 KB |
Output is correct |
56 |
Correct |
1813 ms |
26820 KB |
Output is correct |
57 |
Correct |
1772 ms |
27576 KB |
Output is correct |
58 |
Correct |
139 ms |
26120 KB |
Output is correct |
59 |
Correct |
1247 ms |
26988 KB |
Output is correct |
60 |
Correct |
847 ms |
26216 KB |
Output is correct |
61 |
Correct |
1106 ms |
28388 KB |
Output is correct |
62 |
Correct |
1056 ms |
26920 KB |
Output is correct |
63 |
Correct |
1059 ms |
27664 KB |
Output is correct |
64 |
Correct |
556 ms |
26084 KB |
Output is correct |
65 |
Correct |
546 ms |
26100 KB |
Output is correct |
66 |
Correct |
1086 ms |
27496 KB |
Output is correct |
67 |
Correct |
989 ms |
26476 KB |
Output is correct |
68 |
Correct |
863 ms |
26084 KB |
Output is correct |
69 |
Correct |
879 ms |
26120 KB |
Output is correct |
70 |
Correct |
1860 ms |
26648 KB |
Output is correct |
71 |
Correct |
1591 ms |
26536 KB |
Output is correct |
72 |
Correct |
1926 ms |
27636 KB |
Output is correct |
73 |
Correct |
1932 ms |
27416 KB |
Output is correct |
74 |
Correct |
1704 ms |
27108 KB |
Output is correct |
75 |
Correct |
1881 ms |
26604 KB |
Output is correct |
76 |
Correct |
37 ms |
26092 KB |
Output is correct |
77 |
Correct |
43 ms |
26048 KB |
Output is correct |
78 |
Correct |
25 ms |
26136 KB |
Output is correct |
79 |
Correct |
135 ms |
26180 KB |
Output is correct |
80 |
Correct |
0 ms |
212 KB |
Output is correct |
81 |
Correct |
890 ms |
26100 KB |
Output is correct |
82 |
Correct |
881 ms |
26128 KB |
Output is correct |
83 |
Correct |
898 ms |
26128 KB |
Output is correct |
84 |
Correct |
914 ms |
26124 KB |
Output is correct |
85 |
Correct |
864 ms |
26220 KB |
Output is correct |
86 |
Correct |
836 ms |
26136 KB |
Output is correct |
87 |
Correct |
1149 ms |
26888 KB |
Output is correct |
88 |
Correct |
809 ms |
26364 KB |
Output is correct |
89 |
Correct |
1170 ms |
28396 KB |
Output is correct |
90 |
Correct |
1059 ms |
26820 KB |
Output is correct |
91 |
Correct |
1044 ms |
27628 KB |
Output is correct |
92 |
Correct |
495 ms |
26124 KB |
Output is correct |
93 |
Correct |
518 ms |
26096 KB |
Output is correct |
94 |
Correct |
1083 ms |
27532 KB |
Output is correct |
95 |
Correct |
1084 ms |
26364 KB |
Output is correct |
96 |
Correct |
1713 ms |
26884 KB |
Output is correct |
97 |
Correct |
1004 ms |
26228 KB |
Output is correct |
98 |
Correct |
1529 ms |
26604 KB |
Output is correct |
99 |
Correct |
1633 ms |
26912 KB |
Output is correct |
100 |
Correct |
1608 ms |
27568 KB |
Output is correct |
101 |
Correct |
1857 ms |
26652 KB |
Output is correct |
102 |
Correct |
1558 ms |
26468 KB |
Output is correct |
103 |
Correct |
1898 ms |
27696 KB |
Output is correct |
104 |
Correct |
1877 ms |
27412 KB |
Output is correct |
105 |
Correct |
1678 ms |
27112 KB |
Output is correct |
106 |
Correct |
1873 ms |
26608 KB |
Output is correct |
107 |
Correct |
2796 ms |
26512 KB |
Output is correct |
108 |
Correct |
3053 ms |
27372 KB |
Output is correct |
109 |
Correct |
2897 ms |
27756 KB |
Output is correct |
110 |
Correct |
2724 ms |
27692 KB |
Output is correct |
111 |
Correct |
148 ms |
26100 KB |
Output is correct |
112 |
Correct |
1151 ms |
26888 KB |
Output is correct |
113 |
Correct |
853 ms |
26220 KB |
Output is correct |
114 |
Correct |
1115 ms |
28280 KB |
Output is correct |
115 |
Correct |
1082 ms |
26832 KB |
Output is correct |
116 |
Correct |
1033 ms |
27624 KB |
Output is correct |
117 |
Correct |
499 ms |
26128 KB |
Output is correct |
118 |
Correct |
517 ms |
26124 KB |
Output is correct |
119 |
Correct |
1030 ms |
27424 KB |
Output is correct |
120 |
Correct |
995 ms |
26360 KB |
Output is correct |
121 |
Correct |
956 ms |
26120 KB |
Output is correct |
122 |
Correct |
955 ms |
26096 KB |
Output is correct |
123 |
Correct |
1861 ms |
26652 KB |
Output is correct |
124 |
Correct |
1615 ms |
26448 KB |
Output is correct |
125 |
Correct |
1898 ms |
27640 KB |
Output is correct |
126 |
Correct |
1845 ms |
27424 KB |
Output is correct |
127 |
Correct |
1731 ms |
27116 KB |
Output is correct |
128 |
Correct |
1935 ms |
26596 KB |
Output is correct |
129 |
Correct |
1784 ms |
26132 KB |
Output is correct |
130 |
Correct |
1808 ms |
26132 KB |
Output is correct |
131 |
Correct |
3828 ms |
28388 KB |
Output is correct |
132 |
Correct |
3166 ms |
26236 KB |
Output is correct |
133 |
Correct |
3914 ms |
29128 KB |
Output is correct |
134 |
Correct |
3925 ms |
27968 KB |
Output is correct |
135 |
Correct |
3346 ms |
26804 KB |
Output is correct |
136 |
Correct |
3781 ms |
27636 KB |
Output is correct |
137 |
Correct |
34 ms |
26132 KB |
Output is correct |
138 |
Correct |
46 ms |
26196 KB |
Output is correct |
139 |
Correct |
25 ms |
26048 KB |
Output is correct |
140 |
Correct |
144 ms |
26100 KB |
Output is correct |
141 |
Correct |
0 ms |
212 KB |
Output is correct |
142 |
Correct |
927 ms |
26100 KB |
Output is correct |
143 |
Correct |
889 ms |
26092 KB |
Output is correct |
144 |
Correct |
836 ms |
26180 KB |
Output is correct |
145 |
Correct |
941 ms |
26124 KB |
Output is correct |
146 |
Correct |
875 ms |
26136 KB |
Output is correct |
147 |
Correct |
906 ms |
26152 KB |
Output is correct |
148 |
Correct |
1 ms |
212 KB |
Output is correct |
149 |
Correct |
2144 ms |
26128 KB |
Output is correct |
150 |
Correct |
1864 ms |
26168 KB |
Output is correct |
151 |
Correct |
2358 ms |
26140 KB |
Output is correct |
152 |
Correct |
2352 ms |
26216 KB |
Output is correct |
153 |
Correct |
1789 ms |
26128 KB |
Output is correct |
154 |
Correct |
1802 ms |
26128 KB |
Output is correct |
155 |
Correct |
1137 ms |
26860 KB |
Output is correct |
156 |
Correct |
866 ms |
26232 KB |
Output is correct |
157 |
Correct |
1227 ms |
28396 KB |
Output is correct |
158 |
Correct |
1160 ms |
26736 KB |
Output is correct |
159 |
Correct |
996 ms |
27544 KB |
Output is correct |
160 |
Correct |
486 ms |
26132 KB |
Output is correct |
161 |
Correct |
491 ms |
26148 KB |
Output is correct |
162 |
Correct |
1060 ms |
27440 KB |
Output is correct |
163 |
Correct |
989 ms |
26364 KB |
Output is correct |
164 |
Correct |
1803 ms |
26736 KB |
Output is correct |
165 |
Correct |
1561 ms |
26520 KB |
Output is correct |
166 |
Correct |
1942 ms |
27660 KB |
Output is correct |
167 |
Correct |
1857 ms |
27420 KB |
Output is correct |
168 |
Correct |
1686 ms |
27164 KB |
Output is correct |
169 |
Correct |
1811 ms |
26604 KB |
Output is correct |
170 |
Correct |
1667 ms |
26992 KB |
Output is correct |
171 |
Correct |
1028 ms |
26096 KB |
Output is correct |
172 |
Correct |
1507 ms |
26476 KB |
Output is correct |
173 |
Correct |
1619 ms |
26896 KB |
Output is correct |
174 |
Correct |
1622 ms |
27572 KB |
Output is correct |
175 |
Correct |
2949 ms |
26512 KB |
Output is correct |
176 |
Correct |
3146 ms |
27336 KB |
Output is correct |
177 |
Correct |
2889 ms |
27656 KB |
Output is correct |
178 |
Correct |
2714 ms |
27612 KB |
Output is correct |
179 |
Correct |
4064 ms |
28388 KB |
Output is correct |
180 |
Correct |
3396 ms |
26240 KB |
Output is correct |
181 |
Correct |
4398 ms |
29140 KB |
Output is correct |
182 |
Correct |
4098 ms |
27976 KB |
Output is correct |
183 |
Correct |
3438 ms |
26772 KB |
Output is correct |
184 |
Correct |
4164 ms |
27640 KB |
Output is correct |
185 |
Execution timed out |
5047 ms |
27040 KB |
Time limit exceeded |
186 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
165 ms |
26024 KB |
Output is correct |
2 |
Correct |
1352 ms |
26884 KB |
Output is correct |
3 |
Correct |
870 ms |
26216 KB |
Output is correct |
4 |
Correct |
1225 ms |
28388 KB |
Output is correct |
5 |
Correct |
1270 ms |
26824 KB |
Output is correct |
6 |
Correct |
1205 ms |
27432 KB |
Output is correct |
7 |
Correct |
612 ms |
26128 KB |
Output is correct |
8 |
Correct |
637 ms |
26052 KB |
Output is correct |
9 |
Correct |
1156 ms |
27420 KB |
Output is correct |
10 |
Correct |
1072 ms |
26364 KB |
Output is correct |
11 |
Correct |
139 ms |
26120 KB |
Output is correct |
12 |
Correct |
1247 ms |
26988 KB |
Output is correct |
13 |
Correct |
847 ms |
26216 KB |
Output is correct |
14 |
Correct |
1106 ms |
28388 KB |
Output is correct |
15 |
Correct |
1056 ms |
26920 KB |
Output is correct |
16 |
Correct |
1059 ms |
27664 KB |
Output is correct |
17 |
Correct |
556 ms |
26084 KB |
Output is correct |
18 |
Correct |
546 ms |
26100 KB |
Output is correct |
19 |
Correct |
1086 ms |
27496 KB |
Output is correct |
20 |
Correct |
989 ms |
26476 KB |
Output is correct |
21 |
Correct |
863 ms |
26084 KB |
Output is correct |
22 |
Correct |
879 ms |
26120 KB |
Output is correct |
23 |
Correct |
1860 ms |
26648 KB |
Output is correct |
24 |
Correct |
1591 ms |
26536 KB |
Output is correct |
25 |
Correct |
1926 ms |
27636 KB |
Output is correct |
26 |
Correct |
1932 ms |
27416 KB |
Output is correct |
27 |
Correct |
1704 ms |
27108 KB |
Output is correct |
28 |
Correct |
1881 ms |
26604 KB |
Output is correct |
29 |
Correct |
148 ms |
26100 KB |
Output is correct |
30 |
Correct |
1151 ms |
26888 KB |
Output is correct |
31 |
Correct |
853 ms |
26220 KB |
Output is correct |
32 |
Correct |
1115 ms |
28280 KB |
Output is correct |
33 |
Correct |
1082 ms |
26832 KB |
Output is correct |
34 |
Correct |
1033 ms |
27624 KB |
Output is correct |
35 |
Correct |
499 ms |
26128 KB |
Output is correct |
36 |
Correct |
517 ms |
26124 KB |
Output is correct |
37 |
Correct |
1030 ms |
27424 KB |
Output is correct |
38 |
Correct |
995 ms |
26360 KB |
Output is correct |
39 |
Correct |
956 ms |
26120 KB |
Output is correct |
40 |
Correct |
955 ms |
26096 KB |
Output is correct |
41 |
Correct |
1861 ms |
26652 KB |
Output is correct |
42 |
Correct |
1615 ms |
26448 KB |
Output is correct |
43 |
Correct |
1898 ms |
27640 KB |
Output is correct |
44 |
Correct |
1845 ms |
27424 KB |
Output is correct |
45 |
Correct |
1731 ms |
27116 KB |
Output is correct |
46 |
Correct |
1935 ms |
26596 KB |
Output is correct |
47 |
Correct |
1784 ms |
26132 KB |
Output is correct |
48 |
Correct |
1808 ms |
26132 KB |
Output is correct |
49 |
Correct |
3828 ms |
28388 KB |
Output is correct |
50 |
Correct |
3166 ms |
26236 KB |
Output is correct |
51 |
Correct |
3914 ms |
29128 KB |
Output is correct |
52 |
Correct |
3925 ms |
27968 KB |
Output is correct |
53 |
Correct |
3346 ms |
26804 KB |
Output is correct |
54 |
Correct |
3781 ms |
27636 KB |
Output is correct |
55 |
Correct |
139 ms |
26192 KB |
Output is correct |
56 |
Correct |
1199 ms |
26888 KB |
Output is correct |
57 |
Correct |
865 ms |
26220 KB |
Output is correct |
58 |
Correct |
1134 ms |
28392 KB |
Output is correct |
59 |
Correct |
1169 ms |
26828 KB |
Output is correct |
60 |
Correct |
1092 ms |
27548 KB |
Output is correct |
61 |
Correct |
543 ms |
26092 KB |
Output is correct |
62 |
Correct |
586 ms |
26224 KB |
Output is correct |
63 |
Correct |
1072 ms |
27544 KB |
Output is correct |
64 |
Correct |
1070 ms |
26352 KB |
Output is correct |
65 |
Correct |
910 ms |
26124 KB |
Output is correct |
66 |
Correct |
907 ms |
26120 KB |
Output is correct |
67 |
Correct |
1906 ms |
26656 KB |
Output is correct |
68 |
Correct |
1584 ms |
26476 KB |
Output is correct |
69 |
Correct |
1866 ms |
27644 KB |
Output is correct |
70 |
Correct |
1931 ms |
27428 KB |
Output is correct |
71 |
Correct |
1668 ms |
27112 KB |
Output is correct |
72 |
Correct |
1877 ms |
26592 KB |
Output is correct |
73 |
Correct |
1800 ms |
26144 KB |
Output is correct |
74 |
Correct |
1756 ms |
26132 KB |
Output is correct |
75 |
Correct |
3855 ms |
28392 KB |
Output is correct |
76 |
Correct |
3107 ms |
26392 KB |
Output is correct |
77 |
Correct |
3896 ms |
29148 KB |
Output is correct |
78 |
Correct |
3887 ms |
27972 KB |
Output is correct |
79 |
Correct |
3365 ms |
26864 KB |
Output is correct |
80 |
Correct |
3894 ms |
27644 KB |
Output is correct |
81 |
Execution timed out |
5071 ms |
26864 KB |
Time limit exceeded |
82 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
39 ms |
26040 KB |
Output is correct |
2 |
Correct |
57 ms |
26032 KB |
Output is correct |
3 |
Correct |
27 ms |
26068 KB |
Output is correct |
4 |
Correct |
185 ms |
26092 KB |
Output is correct |
5 |
Correct |
0 ms |
212 KB |
Output is correct |
6 |
Correct |
1211 ms |
26124 KB |
Output is correct |
7 |
Correct |
1031 ms |
26124 KB |
Output is correct |
8 |
Correct |
1190 ms |
26124 KB |
Output is correct |
9 |
Correct |
1207 ms |
26128 KB |
Output is correct |
10 |
Correct |
1024 ms |
26120 KB |
Output is correct |
11 |
Correct |
1000 ms |
26124 KB |
Output is correct |
12 |
Correct |
36 ms |
26048 KB |
Output is correct |
13 |
Correct |
51 ms |
26116 KB |
Output is correct |
14 |
Correct |
27 ms |
26156 KB |
Output is correct |
15 |
Correct |
152 ms |
26120 KB |
Output is correct |
16 |
Correct |
1 ms |
212 KB |
Output is correct |
17 |
Correct |
939 ms |
26124 KB |
Output is correct |
18 |
Correct |
984 ms |
26124 KB |
Output is correct |
19 |
Correct |
1016 ms |
26120 KB |
Output is correct |
20 |
Correct |
1172 ms |
26220 KB |
Output is correct |
21 |
Correct |
1130 ms |
26116 KB |
Output is correct |
22 |
Correct |
1037 ms |
26120 KB |
Output is correct |
23 |
Correct |
1 ms |
212 KB |
Output is correct |
24 |
Correct |
2497 ms |
26136 KB |
Output is correct |
25 |
Correct |
2374 ms |
26124 KB |
Output is correct |
26 |
Correct |
2683 ms |
26040 KB |
Output is correct |
27 |
Correct |
3125 ms |
26216 KB |
Output is correct |
28 |
Correct |
2075 ms |
26128 KB |
Output is correct |
29 |
Correct |
2191 ms |
26124 KB |
Output is correct |
30 |
Correct |
165 ms |
26024 KB |
Output is correct |
31 |
Correct |
1352 ms |
26884 KB |
Output is correct |
32 |
Correct |
870 ms |
26216 KB |
Output is correct |
33 |
Correct |
1225 ms |
28388 KB |
Output is correct |
34 |
Correct |
1270 ms |
26824 KB |
Output is correct |
35 |
Correct |
1205 ms |
27432 KB |
Output is correct |
36 |
Correct |
612 ms |
26128 KB |
Output is correct |
37 |
Correct |
637 ms |
26052 KB |
Output is correct |
38 |
Correct |
1156 ms |
27420 KB |
Output is correct |
39 |
Correct |
1072 ms |
26364 KB |
Output is correct |
40 |
Correct |
42 ms |
26120 KB |
Output is correct |
41 |
Correct |
58 ms |
26124 KB |
Output is correct |
42 |
Correct |
27 ms |
26048 KB |
Output is correct |
43 |
Correct |
153 ms |
26120 KB |
Output is correct |
44 |
Correct |
1224 ms |
26884 KB |
Output is correct |
45 |
Correct |
943 ms |
26344 KB |
Output is correct |
46 |
Correct |
1259 ms |
28392 KB |
Output is correct |
47 |
Correct |
1220 ms |
26824 KB |
Output is correct |
48 |
Correct |
1205 ms |
27540 KB |
Output is correct |
49 |
Correct |
626 ms |
26128 KB |
Output is correct |
50 |
Correct |
665 ms |
26116 KB |
Output is correct |
51 |
Correct |
1315 ms |
27420 KB |
Output is correct |
52 |
Correct |
1173 ms |
26360 KB |
Output is correct |
53 |
Correct |
1894 ms |
26776 KB |
Output is correct |
54 |
Correct |
1191 ms |
26080 KB |
Output is correct |
55 |
Correct |
1850 ms |
26584 KB |
Output is correct |
56 |
Correct |
1813 ms |
26820 KB |
Output is correct |
57 |
Correct |
1772 ms |
27576 KB |
Output is correct |
58 |
Correct |
139 ms |
26120 KB |
Output is correct |
59 |
Correct |
1247 ms |
26988 KB |
Output is correct |
60 |
Correct |
847 ms |
26216 KB |
Output is correct |
61 |
Correct |
1106 ms |
28388 KB |
Output is correct |
62 |
Correct |
1056 ms |
26920 KB |
Output is correct |
63 |
Correct |
1059 ms |
27664 KB |
Output is correct |
64 |
Correct |
556 ms |
26084 KB |
Output is correct |
65 |
Correct |
546 ms |
26100 KB |
Output is correct |
66 |
Correct |
1086 ms |
27496 KB |
Output is correct |
67 |
Correct |
989 ms |
26476 KB |
Output is correct |
68 |
Correct |
863 ms |
26084 KB |
Output is correct |
69 |
Correct |
879 ms |
26120 KB |
Output is correct |
70 |
Correct |
1860 ms |
26648 KB |
Output is correct |
71 |
Correct |
1591 ms |
26536 KB |
Output is correct |
72 |
Correct |
1926 ms |
27636 KB |
Output is correct |
73 |
Correct |
1932 ms |
27416 KB |
Output is correct |
74 |
Correct |
1704 ms |
27108 KB |
Output is correct |
75 |
Correct |
1881 ms |
26604 KB |
Output is correct |
76 |
Correct |
37 ms |
26092 KB |
Output is correct |
77 |
Correct |
43 ms |
26048 KB |
Output is correct |
78 |
Correct |
25 ms |
26136 KB |
Output is correct |
79 |
Correct |
135 ms |
26180 KB |
Output is correct |
80 |
Correct |
0 ms |
212 KB |
Output is correct |
81 |
Correct |
890 ms |
26100 KB |
Output is correct |
82 |
Correct |
881 ms |
26128 KB |
Output is correct |
83 |
Correct |
898 ms |
26128 KB |
Output is correct |
84 |
Correct |
914 ms |
26124 KB |
Output is correct |
85 |
Correct |
864 ms |
26220 KB |
Output is correct |
86 |
Correct |
836 ms |
26136 KB |
Output is correct |
87 |
Correct |
1149 ms |
26888 KB |
Output is correct |
88 |
Correct |
809 ms |
26364 KB |
Output is correct |
89 |
Correct |
1170 ms |
28396 KB |
Output is correct |
90 |
Correct |
1059 ms |
26820 KB |
Output is correct |
91 |
Correct |
1044 ms |
27628 KB |
Output is correct |
92 |
Correct |
495 ms |
26124 KB |
Output is correct |
93 |
Correct |
518 ms |
26096 KB |
Output is correct |
94 |
Correct |
1083 ms |
27532 KB |
Output is correct |
95 |
Correct |
1084 ms |
26364 KB |
Output is correct |
96 |
Correct |
1713 ms |
26884 KB |
Output is correct |
97 |
Correct |
1004 ms |
26228 KB |
Output is correct |
98 |
Correct |
1529 ms |
26604 KB |
Output is correct |
99 |
Correct |
1633 ms |
26912 KB |
Output is correct |
100 |
Correct |
1608 ms |
27568 KB |
Output is correct |
101 |
Correct |
1857 ms |
26652 KB |
Output is correct |
102 |
Correct |
1558 ms |
26468 KB |
Output is correct |
103 |
Correct |
1898 ms |
27696 KB |
Output is correct |
104 |
Correct |
1877 ms |
27412 KB |
Output is correct |
105 |
Correct |
1678 ms |
27112 KB |
Output is correct |
106 |
Correct |
1873 ms |
26608 KB |
Output is correct |
107 |
Correct |
2796 ms |
26512 KB |
Output is correct |
108 |
Correct |
3053 ms |
27372 KB |
Output is correct |
109 |
Correct |
2897 ms |
27756 KB |
Output is correct |
110 |
Correct |
2724 ms |
27692 KB |
Output is correct |
111 |
Correct |
148 ms |
26100 KB |
Output is correct |
112 |
Correct |
1151 ms |
26888 KB |
Output is correct |
113 |
Correct |
853 ms |
26220 KB |
Output is correct |
114 |
Correct |
1115 ms |
28280 KB |
Output is correct |
115 |
Correct |
1082 ms |
26832 KB |
Output is correct |
116 |
Correct |
1033 ms |
27624 KB |
Output is correct |
117 |
Correct |
499 ms |
26128 KB |
Output is correct |
118 |
Correct |
517 ms |
26124 KB |
Output is correct |
119 |
Correct |
1030 ms |
27424 KB |
Output is correct |
120 |
Correct |
995 ms |
26360 KB |
Output is correct |
121 |
Correct |
956 ms |
26120 KB |
Output is correct |
122 |
Correct |
955 ms |
26096 KB |
Output is correct |
123 |
Correct |
1861 ms |
26652 KB |
Output is correct |
124 |
Correct |
1615 ms |
26448 KB |
Output is correct |
125 |
Correct |
1898 ms |
27640 KB |
Output is correct |
126 |
Correct |
1845 ms |
27424 KB |
Output is correct |
127 |
Correct |
1731 ms |
27116 KB |
Output is correct |
128 |
Correct |
1935 ms |
26596 KB |
Output is correct |
129 |
Correct |
1784 ms |
26132 KB |
Output is correct |
130 |
Correct |
1808 ms |
26132 KB |
Output is correct |
131 |
Correct |
3828 ms |
28388 KB |
Output is correct |
132 |
Correct |
3166 ms |
26236 KB |
Output is correct |
133 |
Correct |
3914 ms |
29128 KB |
Output is correct |
134 |
Correct |
3925 ms |
27968 KB |
Output is correct |
135 |
Correct |
3346 ms |
26804 KB |
Output is correct |
136 |
Correct |
3781 ms |
27636 KB |
Output is correct |
137 |
Correct |
34 ms |
26132 KB |
Output is correct |
138 |
Correct |
46 ms |
26196 KB |
Output is correct |
139 |
Correct |
25 ms |
26048 KB |
Output is correct |
140 |
Correct |
144 ms |
26100 KB |
Output is correct |
141 |
Correct |
0 ms |
212 KB |
Output is correct |
142 |
Correct |
927 ms |
26100 KB |
Output is correct |
143 |
Correct |
889 ms |
26092 KB |
Output is correct |
144 |
Correct |
836 ms |
26180 KB |
Output is correct |
145 |
Correct |
941 ms |
26124 KB |
Output is correct |
146 |
Correct |
875 ms |
26136 KB |
Output is correct |
147 |
Correct |
906 ms |
26152 KB |
Output is correct |
148 |
Correct |
1 ms |
212 KB |
Output is correct |
149 |
Correct |
2144 ms |
26128 KB |
Output is correct |
150 |
Correct |
1864 ms |
26168 KB |
Output is correct |
151 |
Correct |
2358 ms |
26140 KB |
Output is correct |
152 |
Correct |
2352 ms |
26216 KB |
Output is correct |
153 |
Correct |
1789 ms |
26128 KB |
Output is correct |
154 |
Correct |
1802 ms |
26128 KB |
Output is correct |
155 |
Correct |
1137 ms |
26860 KB |
Output is correct |
156 |
Correct |
866 ms |
26232 KB |
Output is correct |
157 |
Correct |
1227 ms |
28396 KB |
Output is correct |
158 |
Correct |
1160 ms |
26736 KB |
Output is correct |
159 |
Correct |
996 ms |
27544 KB |
Output is correct |
160 |
Correct |
486 ms |
26132 KB |
Output is correct |
161 |
Correct |
491 ms |
26148 KB |
Output is correct |
162 |
Correct |
1060 ms |
27440 KB |
Output is correct |
163 |
Correct |
989 ms |
26364 KB |
Output is correct |
164 |
Correct |
1803 ms |
26736 KB |
Output is correct |
165 |
Correct |
1561 ms |
26520 KB |
Output is correct |
166 |
Correct |
1942 ms |
27660 KB |
Output is correct |
167 |
Correct |
1857 ms |
27420 KB |
Output is correct |
168 |
Correct |
1686 ms |
27164 KB |
Output is correct |
169 |
Correct |
1811 ms |
26604 KB |
Output is correct |
170 |
Correct |
1667 ms |
26992 KB |
Output is correct |
171 |
Correct |
1028 ms |
26096 KB |
Output is correct |
172 |
Correct |
1507 ms |
26476 KB |
Output is correct |
173 |
Correct |
1619 ms |
26896 KB |
Output is correct |
174 |
Correct |
1622 ms |
27572 KB |
Output is correct |
175 |
Correct |
2949 ms |
26512 KB |
Output is correct |
176 |
Correct |
3146 ms |
27336 KB |
Output is correct |
177 |
Correct |
2889 ms |
27656 KB |
Output is correct |
178 |
Correct |
2714 ms |
27612 KB |
Output is correct |
179 |
Correct |
4064 ms |
28388 KB |
Output is correct |
180 |
Correct |
3396 ms |
26240 KB |
Output is correct |
181 |
Correct |
4398 ms |
29140 KB |
Output is correct |
182 |
Correct |
4098 ms |
27976 KB |
Output is correct |
183 |
Correct |
3438 ms |
26772 KB |
Output is correct |
184 |
Correct |
4164 ms |
27640 KB |
Output is correct |
185 |
Execution timed out |
5047 ms |
27040 KB |
Time limit exceeded |
186 |
Halted |
0 ms |
0 KB |
- |