QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#138025 | #1142. Fountain Parks | yahia# | 30 | 2855ms | 66572kb | C++14 | 3.8kb | 2023-08-10 20:56:07 | 2024-07-04 01:34:35 |
Judging History
answer
#include "parks.h"
#pragma GCC optimize ("O3")
#pragma GCC optimize ("unroll-loops")
#pragma GCC optimize("-Ofast")
#include <bits/stdc++.h>
using namespace std;
typedef int in;
// #define int long long
#define double long double
#define f first
#define s second
#define pb push_back
#define pp push
#define ceil(x,y) (x/y)+(x%y!=0)*(x*y<0?0:1)
#define floor(x,y) (x/y)+(x%y!=0)*(x*y<0?-1:0)
const int MAAX=1e18;
const int MOD=1e9+7;
const int MAX=1e9;
bool vis[200010],lst[200010],ch[200010];
map<pair<int,int>,int> mp;
map<pair<int,int>,int> tk;
in construct_roads(vector<in> x, vector<in> y) {
if (x.size() == 1) {
build({}, {}, {}, {});
return 1;
}
vector<in> ansu,ansv,ansa,ansb;
int n=x.size();
for(int i=0;i<n;i++){
mp[{x[i],y[i]}]=i+1;
ch[i]=1;
}
int cur=1;
queue<int> q;
srand(time(0));
int rn=rand()%n;
q.pp(rn);
vis[rn]=1;
while(q.size()&&cur<n){
int curx=x[q.front()],cury=y[q.front()],curid=q.front();
q.pop();
if(mp[{curx-2,cury}]&&!vis[mp[{curx-2,cury}]-1]){
int idx=mp[{curx-2,cury}]-1;
vis[idx]=1;
cur++;
q.pp(idx);
ansu.pb(curid);
ansv.pb(idx);
}
if(mp[{curx+2,cury}]&&!vis[mp[{curx+2,cury}]-1]){
int idx=mp[{curx+2,cury}]-1;
vis[idx]=1;
cur++;
q.pp(idx);
ansu.pb(curid);
ansv.pb(idx);
}
if(mp[{curx,cury-2}]&&!vis[mp[{curx,cury-2}]-1]){
int idx=mp[{curx,cury-2}]-1;
vis[idx]=1;
cur++;
q.pp(idx);
ansu.pb(curid);
ansv.pb(idx);
}
if(mp[{curx,cury+2}]&&!vis[mp[{curx,cury+2}]-1]){
int idx=mp[{curx,cury+2}]-1;
vis[idx]=1;
cur++;
q.pp(idx);
ansu.pb(curid);
ansv.pb(idx);
}
}
if(cur<n)
return 0;
int c=0;
int t=time(0);
while(1){
bool cor=1;
for(int i=0;i<ansu.size();i++){
if(time(0)-t==3){
return 0;
}
int x1=x[ansu[i]],y1=y[ansu[i]],x2=x[ansv[i]],y2=y[ansv[i]];
if(x1==x2+2){
int rnd=lst[i];
if(ch[i])
rnd=rand()%2;
ch[i]=0;
lst[i]=rnd;
int bx=x1-1,by=y1-1+2*rnd;
if(tk[{bx,by}])
rnd=!rnd;
by=y1-1+2*rnd;
if(tk[{bx,by}]){
ch[i]=1;
ch[tk[{bx,by}]-1]=1;
rnd=!rnd;
by=y1-1+2*rnd;
ch[tk[{bx,by}]-1]=1;
cor=0;
continue;
}
tk[{bx,by}]=i+1;
ansa.pb(bx);
ansb.pb(by);
}
else if(x1==x2-2){
int rnd=lst[i];
if(ch[i])
rnd=rand()%2;
ch[i]=0;
lst[i]=rnd;
int bx=x1+1,by=y1-1+2*rnd;
if(tk[{bx,by}])
rnd=!rnd;
by=y1-1+2*rnd;
if(tk[{bx,by}]){
ch[i]=1;
ch[tk[{bx,by}]-1]=1;
rnd=!rnd;
by=y1-1+2*rnd;
ch[tk[{bx,by}]-1]=1;
cor=0;
continue;
}
tk[{bx,by}]=i+1;
ansa.pb(bx);
ansb.pb(by);
}
else if(y1==y2+2){
int rnd=lst[i];
if(ch[i])
rnd=rand()%2;
ch[i]=0;
lst[i]=rnd;
int bx=x1-1+2*rnd,by=y1-1;
if(tk[{bx,by}])
rnd=!rnd;
bx=x1-1+2*rnd;
if(tk[{bx,by}]){
ch[i]=1;
ch[tk[{bx,by}]-1]=1;
rnd=!rnd;
bx=x1-1+2*rnd;
ch[tk[{bx,by}]-1]=1;
cor=0;
continue;
}
tk[{bx,by}]=i+1;
ansa.pb(bx);
ansb.pb(by);
}
else{
int rnd=lst[i];
if(ch[i])
rnd=rand()%2;
ch[i]=0;
lst[i]=rnd;
int bx=x1-1+2*rnd,by=y1+1;
if(tk[{bx,by}])
rnd=!rnd;
bx=x1-1+2*rnd;
if(tk[{bx,by}]){
ch[i]=1;
ch[tk[{bx,by}]-1]=1;
rnd=!rnd;
bx=x1-1+2*rnd;
ch[tk[{bx,by}]-1]=1;
cor=0;
continue;
}
tk[{bx,by}]=i+1;
ansa.pb(bx);
ansb.pb(by);
}
}
if(cor)
break;
tk.clear();
ansa.clear();
ansb.clear();
if(time(0)-t==3){
return 0;
}
}
build(ansu,ansv,ansa,ansb);
return 1;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 5
Accepted
Test #1:
score: 5
Accepted
time: 0ms
memory: 3904kb
input:
ba73dbf9c7d5e5202834d6a500541c 1 2 2
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 0
result:
ok
Test #2:
score: 0
Accepted
time: 0ms
memory: 3840kb
input:
ba73dbf9c7d5e5202834d6a500541c 2 2 2 2 4
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 1 0 1 1 3
result:
ok
Test #3:
score: 0
Accepted
time: 0ms
memory: 3956kb
input:
ba73dbf9c7d5e5202834d6a500541c 2 2 2 2 6
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #4:
score: 0
Accepted
time: 0ms
memory: 3840kb
input:
ba73dbf9c7d5e5202834d6a500541c 3 2 2 2 4 2 6
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 2 0 1 1 3 1 2 3 5
result:
ok
Test #5:
score: 0
Accepted
time: 0ms
memory: 3888kb
input:
ba73dbf9c7d5e5202834d6a500541c 4 2 2 2 4 2 6 2 8
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 3 0 1 1 3 1 2 3 5 2 3 1 7
result:
ok
Test #6:
score: 0
Accepted
time: 0ms
memory: 3892kb
input:
ba73dbf9c7d5e5202834d6a500541c 3 2 2 2 4 2 8
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #7:
score: 0
Accepted
time: 0ms
memory: 4184kb
input:
ba73dbf9c7d5e5202834d6a500541c 4 2 2 2 4 2 8 2 10
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #8:
score: 0
Accepted
time: 0ms
memory: 4176kb
input:
ba73dbf9c7d5e5202834d6a500541c 4 2 2 2 4 2 6 2 10
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #9:
score: 0
Accepted
time: 163ms
memory: 34752kb
input:
ba73dbf9c7d5e5202834d6a500541c 100000 2 15660 2 23918 2 132200 2 117654 2 162750 2 183010 2 75554 2 29740 2 185476 2 135138 2 194024 2 182274 2 1338 2 42922 2 51616 2 171196 2 159598 2 136432 2 84454 2 61806 2 136968 2 167442 2 150036 2 23974 2 10064 2 86342 2 146274 2 174318 2 130832 2 118838 2 180...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 99999 71424 37323 1 116613 71424 8103 3 116615 37323 65258 1 116611 8103 49525 1 116617 65258 7369 1 116609 49525 92942 1 116619 7369 44811 1 116607 92942 23703 1 116621 44811 30232 1 116605 23703 89677 3 116623 30232 9370 3 116603 89677 22968 1 116625 9...
result:
ok
Test #10:
score: 0
Accepted
time: 12ms
memory: 6944kb
input:
ba73dbf9c7d5e5202834d6a500541c 10000 2 3124 2 3126 2 3128 2 3130 2 3132 2 3134 2 3136 2 3138 2 3140 2 3142 2 3144 2 3146 2 3148 2 3150 2 3152 2 3154 2 3156 2 3158 2 3160 2 3162 2 3164 2 3166 2 3168 2 3170 2 3172 2 3174 2 3176 2 3178 2 3180 2 3182 2 3184 2 3186 2 3188 2 3190 2 3192 2 3194 2 3196 2 31...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 9999 1424 1423 1 5971 1424 1425 3 5973 1423 1422 1 5969 1425 1426 1 5975 1422 1421 1 5967 1426 1427 1 5977 1421 1420 1 5965 1427 1428 1 5979 1420 1419 1 5963 1428 1429 3 5981 1419 1418 3 5961 1429 1430 1 5983 1418 1417 1 5959 1430 1431 3 5985 1417 1416 1...
result:
ok
Test #11:
score: 0
Accepted
time: 73ms
memory: 20420kb
input:
ba73dbf9c7d5e5202834d6a500541c 53891 2 3566 2 3568 2 3570 2 3572 2 3574 2 3576 2 3578 2 3580 2 3582 2 3584 2 3586 2 3588 2 3590 2 3592 2 3594 2 3596 2 3598 2 3600 2 3602 2 3604 2 3606 2 3608 2 3610 2 3612 2 3614 2 3616 2 3618 2 3620 2 3622 2 3624 2 3626 2 3628 2 3630 2 3632 2 3634 2 3636 2 3638 2 36...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 53890 48061 48060 1 99687 48061 48062 3 99689 48060 48059 1 99685 48062 48063 1 99691 48059 48058 1 99683 48063 48064 1 99693 48058 48057 1 99681 48064 48065 1 99695 48057 48056 1 99679 48065 48066 3 99697 48056 48055 3 99677 48066 48067 1 99699 48055 48...
result:
ok
Test #12:
score: 0
Accepted
time: 20ms
memory: 8224kb
input:
ba73dbf9c7d5e5202834d6a500541c 14979 2 4954 2 4956 2 4958 2 4960 2 4962 2 4964 2 4966 2 4968 2 4970 2 4972 2 4974 2 4976 2 4978 2 4980 2 4982 2 4984 2 4986 2 4988 2 4990 2 4992 2 4994 2 4996 2 4998 2 5000 2 5002 2 5004 2 5006 2 5008 2 5010 2 5012 2 5014 2 5016 2 5018 2 5020 2 5022 2 5024 2 5026 2 50...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 14978 10662 10661 1 26277 10662 10663 3 26279 10661 10660 1 26275 10663 10664 1 26281 10660 10659 1 26273 10664 10665 1 26283 10659 10658 1 26271 10665 10666 1 26285 10658 10657 1 26269 10666 10667 3 26287 10657 10656 3 26267 10667 10668 1 26289 10656 10...
result:
ok
Test #13:
score: 0
Accepted
time: 22ms
memory: 8804kb
input:
ba73dbf9c7d5e5202834d6a500541c 44171 2 36500 2 36502 2 36504 2 36506 2 36508 2 36510 2 36512 2 36514 2 36516 2 36518 2 36520 2 36522 2 36524 2 36526 2 36528 2 36530 2 36532 2 36534 2 36536 2 36538 2 36540 2 36542 2 36544 2 36546 2 36548 2 36550 2 36552 2 36554 2 36556 2 36558 2 36560 2 36562 2 36564...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #14:
score: 0
Accepted
time: 1ms
memory: 4040kb
input:
ba73dbf9c7d5e5202834d6a500541c 1000 2 20406 2 20378 2 37840 2 37702 2 20448 2 37688 2 37780 2 20720 2 38256 2 20612 2 38050 2 20152 2 37880 2 20116 2 20030 2 20526 2 38324 2 20956 2 20852 2 20356 2 37668 2 20292 2 37648 2 20320 2 20078 2 38060 2 38014 2 37738 2 37878 2 20336 2 20472 2 20214 2 38340 ...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #15:
score: 0
Accepted
time: 0ms
memory: 4080kb
input:
ba73dbf9c7d5e5202834d6a500541c 2000 2 19578 2 1754 2 1760 2 130946 2 164378 2 1038 2 20302 2 131788 2 131632 2 164392 2 19868 2 164924 2 131380 2 130972 2 131348 2 1070 2 131568 2 19492 2 19876 2 131606 2 1142 2 1588 2 1424 2 1726 2 131416 2 946 2 20158 2 19574 2 20106 2 1736 2 1186 2 19476 2 164256...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #16:
score: 0
Accepted
time: 178ms
memory: 35052kb
input:
ba73dbf9c7d5e5202834d6a500541c 100000 2 103034 2 75068 2 69976 2 84860 2 113488 2 156808 2 109250 2 119184 2 169250 2 182382 2 161594 2 169232 2 41046 2 87158 2 10192 2 32612 2 84228 2 49708 2 157912 2 160028 2 160234 2 167142 2 22010 2 37360 2 64100 2 113388 2 81460 2 52862 2 77902 2 155958 2 13330...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 99999 71424 59355 1 108751 71424 4792 3 108753 59355 5115 1 108749 4792 6438 1 108755 5115 82219 1 108747 6438 73684 1 108757 82219 10034 1 108745 73684 59426 1 108759 10034 22158 1 108743 59426 60230 3 108761 22158 52037 3 108741 60230 34372 1 108763 52...
result:
ok
Subtask #2:
score: 10
Accepted
Dependency #1:
100%
Accepted
Test #17:
score: 10
Accepted
time: 0ms
memory: 4184kb
input:
ba73dbf9c7d5e5202834d6a500541c 4 4 4 2 4 4 2 2 2
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 3 1 0 3 5 1 3 1 3 0 2 5 3
result:
ok
Test #18:
score: 0
Accepted
time: 0ms
memory: 4184kb
input:
ba73dbf9c7d5e5202834d6a500541c 4 4 4 2 6 2 4 4 6
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 3 1 3 3 7 1 2 1 5 3 0 5 5
result:
ok
Test #19:
score: 0
Accepted
time: 0ms
memory: 3928kb
input:
ba73dbf9c7d5e5202834d6a500541c 6 4 6 2 4 2 2 4 2 4 4 2 6
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 5 5 0 3 7 5 1 1 5 0 4 5 5 1 2 3 3 4 3 5 3
result:
ok
Test #20:
score: 0
Accepted
time: 0ms
memory: 3892kb
input:
ba73dbf9c7d5e5202834d6a500541c 8 4 2 2 6 4 8 2 4 4 6 2 2 4 4 2 8
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 7 1 4 3 7 1 3 1 5 1 7 1 7 4 6 5 5 4 2 5 7 3 5 1 3 6 0 3 3
result:
ok
Test #21:
score: 0
Accepted
time: 0ms
memory: 3956kb
input:
ba73dbf9c7d5e5202834d6a500541c 8 2 10 2 4 4 4 4 8 2 2 2 8 4 10 4 2
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #22:
score: 0
Accepted
time: 0ms
memory: 3976kb
input:
ba73dbf9c7d5e5202834d6a500541c 4 2 200000 4 199998 2 199998 4 200000
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 3 1 2 3 199999 1 3 5 199999 2 0 1 199999
result:
ok
Test #23:
score: 0
Accepted
time: 369ms
memory: 53824kb
input:
ba73dbf9c7d5e5202834d6a500541c 200000 4 177614 4 159166 2 99950 4 127824 2 158654 4 82678 2 76278 2 198694 4 142000 4 8782 2 49352 2 71260 2 194790 2 87904 2 70702 2 20966 4 161326 2 52586 2 18108 2 36098 2 160702 2 102232 2 67042 2 16712 2 141944 4 27120 4 43282 4 139388 2 144766 4 75542 4 5228 2 1...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 199999 64289 19612 3 26453 64289 73053 1 26451 64289 108689 1 26453 19612 112878 5 26451 19612 180858 5 26453 73053 53847 1 26449 108689 69500 1 26455 112878 38209 3 26449 180858 119972 5 26455 53847 74901 1 26447 69500 147643 3 26457 38209 109021 3 2644...
result:
ok
Test #24:
score: 0
Accepted
time: 1ms
memory: 4184kb
input:
ba73dbf9c7d5e5202834d6a500541c 8 2 183570 4 183570 4 183572 2 183572 2 183578 4 183574 2 183576 4 183576
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 7 1 0 3 183571 1 2 5 183571 0 3 1 183571 2 5 5 183573 5 7 3 183575 7 6 3 183577 6 4 1 183577
result:
ok
Test #25:
score: 0
Accepted
time: 2ms
memory: 4156kb
input:
ba73dbf9c7d5e5202834d6a500541c 1173 2 186526 2 185928 4 185842 4 185780 4 185692 4 186148 4 186016 2 186236 4 185948 4 185626 2 186332 4 186206 2 186480 4 186154 2 186542 2 186504 2 186230 2 186654 2 185902 4 186762 4 186074 2 185804 4 186262 4 185834 2 186224 4 186544 4 185604 2 186300 2 186042 4 1...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 1172 227 952 3 186729 227 38 3 186727 227 291 5 186729 952 179 1 186727 952 431 1 186729 38 650 3 186725 291 607 3 186731 179 972 1 186725 431 559 1 186731 650 1038 3 186723 607 368 5 186733 972 571 1 186723 559 595 1 186733 1038 1089 3 186721 368 178 3 ...
result:
ok
Test #26:
score: 0
Accepted
time: 2ms
memory: 4236kb
input:
ba73dbf9c7d5e5202834d6a500541c 3000 2 109002 2 197108 4 198220 4 197488 4 108286 2 109006 2 197954 2 108586 4 197416 4 197132 4 197374 4 197448 4 197898 2 108330 2 197992 4 109556 2 197598 4 108114 4 109046 2 197128 2 108454 2 108892 2 108110 4 108622 4 197756 2 197924 2 109102 2 198050 2 108460 2 1...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #27:
score: 0
Accepted
time: 2ms
memory: 4268kb
input:
ba73dbf9c7d5e5202834d6a500541c 4000 2 140462 2 140478 2 140596 2 4466 2 172072 2 140272 4 64560 2 64340 4 172244 4 64230 2 57126 4 158866 2 140482 2 64878 4 159028 4 140276 2 56814 2 4364 2 64356 4 64834 4 57096 2 3922 2 172124 4 64542 2 159218 4 140762 2 172112 4 140320 4 56964 4 158988 4 140398 2 ...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #28:
score: 0
Accepted
time: 138ms
memory: 23636kb
input:
ba73dbf9c7d5e5202834d6a500541c 80000 2 77930 2 34884 4 40062 2 34158 2 6130 4 32544 2 51290 2 50478 4 70072 4 69616 2 75800 4 5656 2 4510 2 77766 2 68358 2 42792 4 52374 4 48488 2 75616 2 46682 4 45386 4 28842 2 12918 4 8206 2 20568 2 70466 2 5562 4 61202 2 65046 4 71854 4 9510 2 45910 2 14066 4 608...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 79999 24289 29270 3 32787 24289 18063 1 32785 24289 13672 1 32787 29270 46506 5 32785 29270 23347 5 32787 18063 73713 1 32783 13672 69644 1 32789 46506 11776 3 32783 23347 74051 5 32789 73713 77476 1 32781 69644 24643 3 32791 11776 40789 3 32781 74051 30...
result:
ok
Test #29:
score: 0
Accepted
time: 205ms
memory: 33728kb
input:
ba73dbf9c7d5e5202834d6a500541c 120000 2 107882 4 86012 4 127996 2 176868 2 178032 4 122930 4 178436 4 160026 4 152606 2 160512 2 84884 2 161726 4 190586 2 149048 2 131608 2 80390 2 155598 4 84696 2 182976 4 158014 4 173998 2 159392 4 128890 4 119618 4 196866 2 97962 4 188404 2 133252 4 166790 4 1593...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 119999 109236 48271 3 104215 109236 70847 1 104215 109236 102214 1 104217 48271 73592 5 104215 48271 91730 5 104217 70847 39887 1 104213 102214 101168 3 104219 73592 83476 3 104213 91730 92340 5 104219 39887 70172 3 104211 101168 117827 1 104221 83476 23...
result:
ok
Test #30:
score: 0
Accepted
time: 274ms
memory: 43760kb
input:
ba73dbf9c7d5e5202834d6a500541c 160000 2 52858 4 164410 2 75528 2 52886 4 109942 4 170460 2 186328 2 124554 4 197478 2 192650 4 78512 4 153868 4 155132 2 162316 4 122256 2 166830 2 163464 2 129030 4 191906 4 68290 4 64288 4 152134 4 79376 2 125460 4 51150 2 106656 4 139088 2 136352 2 52620 4 95892 2 ...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 159999 69236 137935 3 147979 69236 50298 1 147979 69236 586 1 147981 137935 92412 5 147979 137935 159130 5 147981 50298 128178 1 147977 586 110583 3 147983 92412 106936 3 147977 159130 145807 5 147983 128178 119940 3 147975 110583 152801 1 147985 106936 ...
result:
ok
Test #31:
score: 0
Accepted
time: 390ms
memory: 53888kb
input:
ba73dbf9c7d5e5202834d6a500541c 200000 4 159176 4 173814 4 148140 4 192932 2 10458 4 82176 2 192792 4 58608 4 152072 2 179396 4 65044 2 43890 2 6200 4 72634 2 27580 2 178602 2 61556 4 157146 2 133400 4 126376 4 18694 2 195536 4 159494 4 84034 2 33830 4 92734 2 6522 4 109768 2 101402 4 6176 4 53030 2 ...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 199999 23933 51340 3 106947 23933 158865 5 106947 23933 91605 5 106949 51340 50688 1 106947 51340 127649 1 106949 158865 192890 5 106945 91605 108772 3 106951 50688 31883 3 106945 127649 174505 1 106951 192890 61062 5 106943 108772 145451 5 106953 31883 ...
result:
ok
Test #32:
score: 0
Accepted
time: 0ms
memory: 3908kb
input:
ba73dbf9c7d5e5202834d6a500541c 2 4 2 4 4
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 1 1 0 3 3
result:
ok
Test #33:
score: 0
Accepted
time: 0ms
memory: 3888kb
input:
ba73dbf9c7d5e5202834d6a500541c 2 2 2 4 2
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 1 1 0 3 1
result:
ok
Test #34:
score: 0
Accepted
time: 0ms
memory: 4184kb
input:
ba73dbf9c7d5e5202834d6a500541c 2 2 4 4 4
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 1 1 0 3 3
result:
ok
Test #35:
score: 0
Accepted
time: 0ms
memory: 3864kb
input:
ba73dbf9c7d5e5202834d6a500541c 2 2 2 4 4
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #36:
score: 0
Accepted
time: 0ms
memory: 4180kb
input:
ba73dbf9c7d5e5202834d6a500541c 2 2 4 4 2
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #37:
score: 0
Accepted
time: 0ms
memory: 4196kb
input:
ba73dbf9c7d5e5202834d6a500541c 3 2 2 2 4 4 2
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 2 1 0 1 3 0 2 3 3
result:
ok
Test #38:
score: 0
Accepted
time: 0ms
memory: 3888kb
input:
ba73dbf9c7d5e5202834d6a500541c 3 2 2 2 4 4 4
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 2 1 2 3 3 1 0 1 3
result:
ok
Test #39:
score: 0
Accepted
time: 0ms
memory: 4148kb
input:
ba73dbf9c7d5e5202834d6a500541c 3 2 2 4 2 4 4
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 2 1 0 3 1 1 2 5 3
result:
ok
Test #40:
score: 0
Accepted
time: 0ms
memory: 4192kb
input:
ba73dbf9c7d5e5202834d6a500541c 3 2 4 4 2 4 4
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 2 1 2 3 3 2 0 3 5
result:
ok
Test #41:
score: 0
Accepted
time: 0ms
memory: 4180kb
input:
ba73dbf9c7d5e5202834d6a500541c 3 2 4 4 2 4 6
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #42:
score: 0
Accepted
time: 0ms
memory: 3928kb
input:
ba73dbf9c7d5e5202834d6a500541c 3 2 200000 2 199998 4 200000
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 2 1 0 1 199999 0 2 3 200001
result:
ok
Test #43:
score: 0
Accepted
time: 1ms
memory: 4180kb
input:
ba73dbf9c7d5e5202834d6a500541c 2000 2 66072 2 15600 2 65278 2 65372 2 15154 2 64698 4 15472 4 15336 4 15714 4 65714 2 65516 4 65552 2 64890 2 15174 2 65674 2 14732 2 15150 4 65768 2 15672 2 14610 4 15530 2 65776 2 15370 4 65724 2 15308 2 15412 4 15712 4 14620 4 14600 2 15404 4 15918 2 14858 2 15488 ...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #44:
score: 0
Accepted
time: 1ms
memory: 4184kb
input:
ba73dbf9c7d5e5202834d6a500541c 3000 2 111548 2 111040 4 70070 2 177612 2 110868 2 111368 4 17940 2 111432 2 59736 2 177494 4 110958 2 70064 2 59920 2 70092 4 177672 2 59336 4 69988 4 111040 2 59840 4 18638 4 18042 2 111192 2 177526 4 69992 4 177776 4 69676 4 177824 4 111128 4 111278 4 59162 2 111592...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #45:
score: 0
Accepted
time: 157ms
memory: 31188kb
input:
ba73dbf9c7d5e5202834d6a500541c 100000 4 169676 2 166424 4 184362 4 189372 4 92358 4 163106 4 106516 4 84160 2 80238 2 189392 4 195840 2 118396 4 94344 4 188728 2 189284 2 164532 2 140524 2 126720 4 182624 4 131538 2 172512 2 163134 2 123156 4 137156 4 168310 2 140776 4 181764 2 92658 2 124148 4 1125...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 99999 23933 61396 3 64203 23933 99348 5 64203 23933 39839 5 64205 99348 65008 3 64201 39839 8891 3 64207 65008 53386 3 64199 65008 25575 5 64199 8891 4151 5 64209 25575 88936 5 64197 4151 86251 3 64211 4151 39306 5 64211 88936 65744 3 64197 88936 49760 5...
result:
ok
Test #46:
score: 0
Accepted
time: 243ms
memory: 43680kb
input:
ba73dbf9c7d5e5202834d6a500541c 145093 2 166114 2 57160 2 100318 2 183710 2 157582 4 87300 2 108292 4 26942 4 152146 4 67878 2 189520 2 105504 4 182488 4 20028 4 149088 2 27528 4 54250 2 100720 2 62956 4 60756 2 107208 4 156884 2 184558 2 79524 4 152584 4 101220 2 8320 4 149952 4 2512 4 63280 2 14975...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 145092 60077 117390 3 9607 60077 14633 3 9605 117390 105703 1 9607 14633 39154 3 9603 105703 42571 1 9609 39154 101332 3 9601 39154 124972 5 9601 42571 84802 3 9609 124972 116636 3 9599 84802 132609 5 9611 116636 137674 3 9597 116636 90120 5 9597 132609 ...
result:
ok
Test #47:
score: 0
Accepted
time: 250ms
memory: 43812kb
input:
ba73dbf9c7d5e5202834d6a500541c 145075 2 155250 2 136442 2 94908 2 158406 4 57086 2 97650 4 48200 2 12782 2 185128 2 197282 4 27270 2 122262 4 66214 2 31156 2 150590 2 12294 4 1562 4 94584 2 23458 4 157278 4 33026 2 191138 4 147538 2 8652 2 108482 4 67498 4 157020 2 13190 2 30028 4 77576 4 44258 4 16...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 145074 87077 104370 3 69207 87077 116361 5 69207 104370 22647 1 69205 116361 130473 3 69209 22647 100700 1 69203 130473 12261 3 69211 130473 32990 5 69211 100700 59701 3 69201 100700 122796 1 69201 32990 49853 5 69213 122796 29362 1 69199 49853 32136 3 6...
result:
ok
Subtask #3:
score: 15
Accepted
Dependency #2:
100%
Accepted
Test #48:
score: 15
Accepted
time: 0ms
memory: 3976kb
input:
ba73dbf9c7d5e5202834d6a500541c 4 6 2 4 2 6 4 4 4
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 3 2 3 5 3 2 0 7 3 3 1 3 3
result:
ok
Test #49:
score: 0
Accepted
time: 0ms
memory: 3900kb
input:
ba73dbf9c7d5e5202834d6a500541c 4 6 6 4 4 6 4 4 6
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 3 2 1 5 3 2 0 5 5 1 3 3 5
result:
ok
Test #50:
score: 0
Accepted
time: 0ms
memory: 3892kb
input:
ba73dbf9c7d5e5202834d6a500541c 6 6 2 2 2 6 4 2 4 4 2 4 4
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 5 0 4 5 1 0 2 5 3 4 1 3 1 4 5 3 3 1 3 1 3
result:
ok
Test #51:
score: 0
Accepted
time: 0ms
memory: 3872kb
input:
ba73dbf9c7d5e5202834d6a500541c 7 6 4 4 4 2 2 4 6 4 2 2 4 6 6
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 6 4 2 3 1 4 1 3 3 2 5 1 3 1 0 5 3 1 3 3 5 0 6 5 5
result:
ok
Test #52:
score: 0
Accepted
time: 0ms
memory: 3976kb
input:
ba73dbf9c7d5e5202834d6a500541c 8 4 2 2 2 6 8 4 6 4 8 4 4 6 6 2 4
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 7 6 3 5 5 6 2 5 7 3 5 3 5 3 4 3 7 5 7 3 3 5 0 5 3 7 1 1 3
result:
ok
Test #53:
score: 0
Accepted
time: 0ms
memory: 4180kb
input:
ba73dbf9c7d5e5202834d6a500541c 7 2 4 4 4 6 2 4 2 2 6 4 6 6 4
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 6 4 5 3 5 4 0 1 5 5 1 5 5 1 6 5 3 1 3 3 3 6 2 7 3
result:
ok
Test #54:
score: 0
Accepted
time: 0ms
memory: 3896kb
input:
ba73dbf9c7d5e5202834d6a500541c 8 4 2 4 8 4 6 6 2 2 6 4 4 2 8 6 4
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 7 6 1 3 7 6 4 1 7 1 2 5 7 2 5 3 5 5 7 5 3 5 0 3 3 7 3 7 3
result:
ok
Test #55:
score: 0
Accepted
time: 1027ms
memory: 49688kb
input:
ba73dbf9c7d5e5202834d6a500541c 199998 6 95048 2 124620 6 92330 2 87562 4 64650 2 76818 6 94884 6 106050 2 87068 2 36890 4 118972 4 58310 2 59538 6 30350 4 14668 2 71226 4 83464 6 1438 2 63320 6 130540 6 20760 2 11738 6 121604 6 69304 2 35164 4 1904 6 63076 4 116444 6 96292 2 5438 6 16630 4 14906 6 8...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 199997 48168 27440 5 32225 48168 124675 7 32225 48168 6284 7 32227 27440 28218 3 32227 27440 181850 3 32225 27440 176081 5 32227 124675 142050 7 32223 6284 125059 5 32229 28218 46070 1 32225 28218 151272 1 32227 181850 189873 3 32223 176081 164665 3 3222...
result:
ok
Test #56:
score: 0
Accepted
time: 0ms
memory: 3976kb
input:
ba73dbf9c7d5e5202834d6a500541c 10 6 183572 4 183572 4 183574 2 183576 6 183576 4 183576 2 183578 6 183570 2 183572 4 183570
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 9 8 1 3 183573 1 0 5 183571 1 9 3 183571 1 2 5 183573 0 7 7 183571 2 5 5 183575 5 3 3 183575 5 4 5 183577 3 6 3 183577
result:
ok
Test #57:
score: 0
Accepted
time: 3ms
memory: 4308kb
input:
ba73dbf9c7d5e5202834d6a500541c 1758 2 186528 2 185930 6 186026 4 185782 4 185694 4 186150 4 186018 2 186238 4 185950 4 185628 2 186334 6 185770 2 186482 4 186156 6 185842 6 186334 2 186232 2 186656 2 185904 4 186764 4 186076 2 185806 6 185650 4 185836 2 186226 4 186546 4 185606 2 186302 2 186044 4 1...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 1757 422 299 3 186139 422 1139 5 186137 422 703 3 186137 422 780 5 186139 299 1012 1 186137 299 690 1 186139 1139 1191 7 186137 1139 507 7 186139 703 1733 5 186135 780 1339 5 186141 1012 758 3 186135 690 332 1 186141 1191 602 7 186135 507 1104 7 186141 1...
result:
ok
Test #58:
score: 0
Accepted
time: 9ms
memory: 5216kb
input:
ba73dbf9c7d5e5202834d6a500541c 6000 4 91732 4 90280 6 89008 2 91010 6 91888 4 90450 6 90196 6 90416 4 90156 6 91718 6 88708 6 89872 2 91232 2 91566 2 90018 2 89016 4 90382 2 88900 6 91918 4 89424 4 88672 2 89576 4 90656 6 88592 2 91610 2 90672 4 89684 2 91674 2 90820 2 91412 6 90820 2 91702 2 89464 ...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 5999 1868 4205 3 90127 1868 1644 5 90125 1868 5980 3 90125 1868 4262 5 90127 4205 2119 1 90125 4205 262 1 90127 1644 5912 7 90125 1644 1408 7 90127 5980 2174 5 90123 4262 2221 5 90129 2119 3690 3 90123 262 2441 1 90129 5912 3862 7 90123 1408 4452 7 90129...
result:
ok
Test #59:
score: 0
Accepted
time: 4ms
memory: 4792kb
input:
ba73dbf9c7d5e5202834d6a500541c 10000 2 85892 4 103848 4 55116 2 75724 6 178108 2 178416 6 104794 6 104736 6 54334 4 76036 4 86888 4 178912 4 86578 2 85994 6 74754 2 178168 4 103636 6 179140 4 75786 4 86246 6 85520 4 178886 6 104314 6 104818 6 74798 2 104170 4 103618 2 179026 2 178698 6 75788 2 54676...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #60:
score: 0
Accepted
time: 161ms
memory: 26484kb
input:
ba73dbf9c7d5e5202834d6a500541c 100000 6 4304 4 17988 4 43862 6 2282 6 37606 2 66400 2 11222 2 26524 2 66522 6 29288 2 54226 2 45692 4 66428 4 22820 6 65310 2 50814 2 8860 6 48664 2 40386 4 54982 2 23044 4 31694 4 6372 6 38602 2 9752 4 32596 6 53798 4 49586 2 24848 6 23096 6 40944 2 48824 6 16910 6 6...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 99999 75868 4171 3 65373 75868 4176 1 65371 75868 68205 1 65373 4171 84639 5 65371 4171 67936 3 65371 4171 47319 5 65373 4176 90748 1 65369 68205 26251 1 65375 84639 84403 7 65371 84639 23800 7 65373 67936 31112 5 65369 47319 85033 3 65375 90748 9415 1 6...
result:
ok
Test #61:
score: 0
Accepted
time: 510ms
memory: 34900kb
input:
ba73dbf9c7d5e5202834d6a500541c 135000 4 80108 4 55532 6 15996 2 55940 6 40018 4 78816 6 35830 6 17658 2 86938 4 83772 2 72238 6 5506 6 61968 2 58268 6 43876 2 23076 4 27904 4 89178 6 35424 6 35176 4 89584 2 78888 6 7010 6 12638 2 42660 4 44862 6 60734 4 79580 2 74128 2 18674 2 19372 6 73860 6 54040 ...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 134999 4926 84786 3 16317 4926 56870 1 16315 4926 47020 1 16317 84786 106413 5 16315 84786 4167 3 16315 84786 15544 5 16317 56870 120583 1 16313 47020 86024 1 16319 106413 67628 7 16315 106413 61769 7 16317 4167 15129 3 16313 15544 64432 3 16319 120583 1...
result:
ok
Test #62:
score: 0
Accepted
time: 714ms
memory: 41944kb
input:
ba73dbf9c7d5e5202834d6a500541c 165000 6 172066 4 138088 2 134464 6 123142 4 170926 2 117864 2 185690 6 179060 6 187756 6 91450 4 92788 6 97334 6 134770 6 139588 2 121126 4 136832 4 197742 6 100388 6 91908 2 109104 6 106976 2 107942 4 142116 4 115082 2 113344 6 172824 6 110544 6 112464 4 149004 6 175...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 164999 79926 133507 3 184119 79926 66131 1 184117 79926 69015 1 184119 133507 130278 5 184117 133507 86666 3 184117 133507 118975 5 184119 66131 152592 1 184115 69015 152541 1 184121 130278 85727 7 184117 130278 132102 7 184119 86666 58050 3 184115 11897...
result:
ok
Test #63:
score: 0
Accepted
time: 549ms
memory: 49840kb
input:
ba73dbf9c7d5e5202834d6a500541c 200000 6 86562 2 132164 2 161960 4 166102 4 94656 6 164844 6 45856 2 99300 4 77424 6 76788 6 162328 4 78372 4 103764 4 140704 6 127746 4 169652 4 96084 4 49796 6 172202 6 104484 4 167568 4 176392 6 129104 4 49314 4 56440 6 102854 4 59986 6 118008 6 145490 6 74630 4 788...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 199999 169895 149756 5 128179 169895 86734 7 128179 169895 130679 7 128181 149756 28774 3 128181 149756 14027 3 128179 149756 186222 5 128181 86734 187605 5 128177 130679 157456 7 128183 28774 77024 1 128179 28774 153696 1 128181 14027 1210 3 128177 1862...
result:
ok
Test #64:
score: 0
Accepted
time: 1ms
memory: 3892kb
input:
ba73dbf9c7d5e5202834d6a500541c 2 2 2 6 2
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #65:
score: 0
Accepted
time: 0ms
memory: 3896kb
input:
ba73dbf9c7d5e5202834d6a500541c 3 2 2 4 2 6 2
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 2 2 1 5 1 1 0 3 1
result:
ok
Test #66:
score: 0
Accepted
time: 1ms
memory: 3864kb
input:
ba73dbf9c7d5e5202834d6a500541c 4 2 4 4 2 4 6 6 4
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #67:
score: 0
Accepted
time: 333ms
memory: 60104kb
input:
ba73dbf9c7d5e5202834d6a500541c 199999 2 115866 2 154134 2 3960 6 59348 6 111954 6 53896 2 15912 6 199914 2 163078 6 49868 2 137758 2 48042 2 69990 2 70364 2 133946 2 34468 2 130622 2 15364 6 196702 6 46780 2 128410 6 18592 6 4278 6 133068 6 142246 6 26900 6 43072 2 122198 6 124978 2 159380 2 85902 2...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 199998 87424 149047 5 48513 87424 156971 5 48515 149047 143138 5 48511 156971 33636 7 48517 143138 82497 7 48509 33636 59580 7 48519 82497 24939 7 48507 59580 159709 5 48521 24939 57127 7 48505 159709 74458 5 48523 57127 17120 5 48503 74458 31521 5 48525...
result:
ok
Test #68:
score: 0
Accepted
time: 348ms
memory: 59988kb
input:
ba73dbf9c7d5e5202834d6a500541c 199999 2 90630 6 168226 6 175968 2 130260 2 126026 6 119368 6 52682 6 64202 6 70518 2 170700 2 21860 2 178410 2 76192 2 38016 6 199270 6 23782 2 192152 2 106458 2 80892 6 163314 2 106656 6 49920 6 157054 2 136682 2 55556 2 79540 2 106102 6 88696 6 7678 2 52468 2 172280...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 199998 26193 45889 3 96743 26193 96274 3 96745 45889 182149 1 96741 96274 100116 3 96747 182149 8512 3 96739 100116 178578 3 96749 8512 67701 1 96737 178578 121961 3 96751 67701 72076 3 96735 121961 199321 3 96753 72076 86598 3 96733 199321 172010 1 9675...
result:
ok
Test #69:
score: 0
Accepted
time: 341ms
memory: 59780kb
input:
ba73dbf9c7d5e5202834d6a500541c 199005 6 34654 2 127948 6 190536 6 15644 2 120332 6 178698 6 3046 6 62338 6 12832 6 2824 2 48818 2 44152 6 71348 6 58418 2 151464 6 152242 2 111332 6 138662 6 146622 2 110626 6 6934 2 39908 2 108378 6 21936 6 164090 6 15418 2 36712 6 81888 6 146740 6 199770 6 158344 6 ...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 199004 169646 169932 3 45587 169646 48913 3 45589 169932 88254 1 45585 48913 91887 3 45591 88254 120880 3 45583 91887 87031 3 45593 120880 7049 1 45581 87031 195801 3 45595 7049 116944 3 45579 195801 111064 3 45597 116944 107189 3 45577 111064 140430 1 4...
result:
ok
Test #70:
score: 0
Accepted
time: 3ms
memory: 4364kb
input:
ba73dbf9c7d5e5202834d6a500541c 4000 6 103928 6 191558 6 192994 6 104234 6 104228 6 192602 6 191276 6 192742 6 102730 6 102798 2 102814 2 191852 4 193088 2 192554 2 191866 6 192580 2 102534 2 104064 4 102812 4 103152 4 104060 6 104430 4 192606 6 192594 6 191350 2 103266 2 191778 2 191878 6 192648 2 1...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #71:
score: 0
Accepted
time: 2ms
memory: 4684kb
input:
ba73dbf9c7d5e5202834d6a500541c 8000 6 141670 6 184016 6 5642 4 184462 4 7172 4 185262 2 127694 6 184208 2 127008 6 5812 2 141736 6 184706 2 141928 6 141792 2 6068 2 7032 6 142914 2 127674 6 184572 2 143142 2 127594 2 128398 6 5628 6 5856 4 143130 6 6290 4 184104 4 142184 6 141864 4 7106 4 127108 2 1...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #72:
score: 0
Accepted
time: 546ms
memory: 29520kb
input:
ba73dbf9c7d5e5202834d6a500541c 100000 6 42836 2 5972 2 35490 6 39484 4 28614 2 35194 2 2202 4 80528 4 30536 4 90140 6 92102 6 54632 6 34240 4 84986 4 37206 4 64602 2 43952 6 49232 4 9034 2 67488 4 54660 2 16758 4 25776 2 89570 2 39854 2 16688 2 71262 6 79192 2 46376 2 47100 4 63702 2 10200 6 30688 2...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 99999 48104 10945 3 7735 48104 43387 5 7735 10945 93018 1 7733 43387 8797 5 7737 43387 61532 3 7737 93018 5246 3 7731 61532 79289 3 7739 61532 1348 5 7739 5246 96513 3 7729 1348 2067 5 7741 96513 99980 5 7729 2067 64044 3 7741 2067 82339 5 7743 2067 6203...
result:
ok
Test #73:
score: 0
Accepted
time: 1270ms
memory: 42688kb
input:
ba73dbf9c7d5e5202834d6a500541c 150000 6 78236 4 79810 4 91776 2 64708 4 102410 4 70544 2 103230 6 172210 4 115452 6 112350 4 54632 4 94094 2 70820 2 136734 6 59966 6 63288 6 158212 4 183616 2 142072 6 84484 2 184338 4 197862 2 96278 6 120562 2 66086 4 97884 6 115196 2 176864 6 138738 2 173644 6 1435...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 149999 80658 49188 3 117721 80658 125835 5 117719 49188 79687 3 117719 49188 76933 1 117721 125835 141180 7 117719 125835 4256 7 117721 141180 11848 7 117717 4256 491 5 117723 11848 59788 5 117715 491 72849 5 117725 491 68480 7 117725 59788 77608 5 11771...
result:
ok
Test #74:
score: 0
Accepted
time: 1656ms
memory: 55840kb
input:
ba73dbf9c7d5e5202834d6a500541c 200000 4 87744 2 105360 6 34704 2 171792 4 20694 6 25286 4 111544 6 25068 6 64900 2 15046 6 42920 2 56676 6 73896 6 62404 4 12270 4 170618 4 53634 2 178476 4 16464 6 188544 6 76360 4 15978 4 121632 4 38548 6 17998 2 106472 2 152492 2 70066 2 137378 4 55310 4 110092 2 9...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 199999 1735 196742 3 64433 1735 94850 1 64433 196742 184374 5 64431 196742 175930 3 64431 94850 23679 1 64435 184374 37876 7 64433 175930 183148 3 64429 23679 150374 3 64437 23679 111474 1 64437 183148 10362 3 64427 183148 129700 5 64429 183148 101369 5 ...
result:
ok
Test #75:
score: 0
Accepted
time: 371ms
memory: 53736kb
input:
ba73dbf9c7d5e5202834d6a500541c 199998 2 4288 6 133692 4 30182 2 60312 4 47290 6 120388 2 130714 6 53616 4 91442 6 58218 6 71180 2 104478 6 57206 2 86644 2 93842 4 10502 2 92832 2 136286 6 157256 4 13610 4 148186 4 43542 2 18784 4 103326 4 15658 6 60290 2 23282 6 85690 6 148178 2 59640 2 84698 2 7120...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 199997 139551 120123 5 57331 139551 127972 7 57333 120123 151926 5 57329 120123 9111 7 57329 127972 82662 5 57333 127972 73906 5 57335 151926 97567 3 57331 9111 161380 7 57327 82662 133154 3 57333 73906 105415 7 57337 97567 62785 3 57329 97567 182919 1 5...
result:
ok
Test #76:
score: 0
Accepted
time: 363ms
memory: 59976kb
input:
ba73dbf9c7d5e5202834d6a500541c 200000 2 129082 6 72610 6 194734 2 112750 6 82944 6 30138 6 15770 6 183396 2 154782 2 193764 2 194778 2 166484 2 193426 2 188262 2 145992 2 174192 6 123650 6 7554 2 119606 6 29826 6 67290 6 85018 2 126458 6 98598 6 55728 2 19416 2 57930 6 51516 6 193690 6 149696 6 6076...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 199999 185137 148934 7 67891 185137 97875 5 67893 148934 157351 5 67889 97875 163926 7 67895 157351 37890 7 67887 163926 37350 5 67897 37890 57403 5 67885 37350 15770 7 67899 57403 16749 5 67883 15770 105020 5 67901 16749 40050 7 67881 105020 133666 5 67...
result:
ok
Test #77:
score: 0
Accepted
time: 3ms
memory: 4460kb
input:
ba73dbf9c7d5e5202834d6a500541c 5000 4 156154 4 156368 2 196426 6 156928 6 196174 6 196750 4 197822 4 157596 6 197540 6 156240 6 157920 4 156878 6 158036 4 157232 4 196778 6 197648 6 198212 2 196894 2 197104 6 157446 4 158124 4 157874 4 158094 2 156192 2 157168 4 156104 6 156272 2 156800 6 156712 4 1...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #78:
score: 0
Accepted
time: 4ms
memory: 4744kb
input:
ba73dbf9c7d5e5202834d6a500541c 9000 4 170344 4 169674 2 32968 6 32518 6 169052 6 32668 6 167364 6 170438 2 113068 6 113654 6 169248 2 73998 2 113724 4 168816 6 114556 6 73758 6 169778 2 114014 4 168766 6 32746 4 33158 2 168994 6 113252 2 167962 2 74106 6 74430 2 33446 6 113268 4 167946 2 169548 6 16...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #79:
score: 0
Accepted
time: 521ms
memory: 28936kb
input:
ba73dbf9c7d5e5202834d6a500541c 100000 6 66826 6 39954 2 73296 2 75802 2 4612 4 61128 6 31252 6 31446 4 40332 2 9172 4 71820 6 84754 4 21092 6 61782 6 64606 6 51960 2 83080 2 19798 2 58636 2 87918 2 47708 4 11814 4 23664 2 50458 6 40382 2 63084 4 9814 2 72088 2 50462 4 50442 4 77972 6 1870 2 30758 2 ...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 99999 89326 89459 5 12951 89326 39791 5 12953 89459 68577 5 12949 89459 47806 7 12949 39791 71855 7 12955 68577 76694 3 12951 47806 13132 7 12947 71855 88358 5 12957 71855 56037 7 12957 76694 16914 1 12949 76694 78159 1 12951 13132 77259 5 12947 88358 68...
result:
ok
Test #80:
score: 0
Accepted
time: 1311ms
memory: 41912kb
input:
ba73dbf9c7d5e5202834d6a500541c 150000 2 174028 4 144676 2 118168 6 186418 4 106026 2 169150 4 190940 2 67752 2 196266 4 96144 2 124170 2 82348 4 155326 6 144152 6 108674 2 127704 6 147302 2 94080 6 88216 4 121306 6 148108 2 73550 4 122830 6 112894 6 98012 2 195176 2 82024 6 152408 2 72600 4 80088 4 ...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 149999 39326 6537 5 119473 39326 12725 5 119475 6537 59364 5 119471 12725 105870 5 119477 12725 110961 7 119477 59364 45604 5 119469 105870 57354 3 119477 110961 73600 7 119479 45604 149498 3 119471 45604 98139 3 119469 57354 7819 1 119475 57354 21779 1 ...
result:
ok
Test #81:
score: 0
Accepted
time: 1373ms
memory: 54648kb
input:
ba73dbf9c7d5e5202834d6a500541c 200000 2 52140 2 66722 6 68358 4 184262 6 44806 6 104740 4 58058 6 25488 6 29594 4 52850 6 130906 6 55904 2 160352 6 116632 4 52134 6 137734 2 180134 2 106380 6 114282 2 194328 6 79594 6 184894 2 42778 2 102758 6 144008 6 50926 6 119278 4 128810 4 21484 2 134002 6 1561...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 199999 67365 197437 1 168113 67365 45942 1 168115 197437 167320 3 168113 197437 128755 1 168111 45942 113987 3 168117 45942 195779 1 168117 167320 28984 5 168111 128755 99104 3 168109 113987 74013 5 168117 195779 42181 1 168119 28984 151977 7 168111 2898...
result:
ok
Subtask #4:
score: 0
Time Limit Exceeded
Test #82:
score: 20
Accepted
time: 0ms
memory: 3928kb
input:
ba73dbf9c7d5e5202834d6a500541c 3 200000 2 200000 4 199998 2
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 2 0 2 199999 3 0 1 200001 3
result:
ok
Test #83:
score: 0
Accepted
time: 0ms
memory: 4160kb
input:
ba73dbf9c7d5e5202834d6a500541c 3 200000 200000 200000 199998 199998 200000
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 2 0 2 199999 200001 0 1 199999 199999
result:
ok
Test #84:
score: 0
Accepted
time: 0ms
memory: 3892kb
input:
ba73dbf9c7d5e5202834d6a500541c 12 2 2 2 4 4 2 2 200000 2 199998 4 200000 200000 2 200000 4 199998 2 200000 200000 200000 199998 199998 200000
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #85:
score: 0
Accepted
time: 340ms
memory: 54044kb
input:
ba73dbf9c7d5e5202834d6a500541c 199999 195232 4772 192370 7632 64282 135722 174444 25558 54846 145156 70170 129832 196228 3774 23234 176768 186862 13140 22458 177546 18158 181846 144902 55100 109692 90310 154220 45782 180406 19598 176744 23260 69098 130906 83308 116694 728 199274 143272 56730 17012 1...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 199998 21395 157439 118083 81921 21395 35906 118081 81921 157439 110278 118085 81919 35906 12979 118081 81923 110278 160034 118085 81917 12979 51846 118079 81923 160034 141345 118087 81917 51846 3631 118079 81925 141345 113731 118087 81915 3631 131528 11...
result:
ok
Test #86:
score: 0
Accepted
time: 363ms
memory: 53904kb
input:
ba73dbf9c7d5e5202834d6a500541c 199997 56858 56864 1456 1462 51406 51410 89266 89272 53562 53556 80164 80158 13970 13966 41960 41966 48338 48342 98766 98772 82904 82898 38168 38172 28780 28774 38142 38146 16616 16612 15258 15262 69676 69672 85410 85416 59306 59310 712 718 6144 6140 61280 61286 28928 ...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 199996 36229 61203 17333 17339 36229 156635 17335 17339 61203 47974 17333 17337 156635 137704 17335 17341 47974 7773 17331 17337 137704 119009 17337 17341 7773 40028 17329 17335 119009 169259 17337 17343 40028 52280 17329 17333 169259 36874 17339 17343 5...
result:
ok
Test #87:
score: 0
Accepted
time: 344ms
memory: 53740kb
input:
ba73dbf9c7d5e5202834d6a500541c 199997 65538 34474 61104 38910 57364 42638 29768 70236 50488 49524 91868 8146 42764 57238 16096 83906 17718 82294 91644 8368 90818 9186 83908 16096 97246 2756 68350 31652 53514 46498 10854 89158 64174 35838 62258 37746 36734 63280 76516 23496 19968 80036 2764 97240 559...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 199996 124916 139587 61413 38601 124916 136907 61413 38599 139587 52710 61411 38601 136907 121901 61415 38597 52710 126251 61411 38603 121901 162889 61417 38597 126251 39741 61409 38603 162889 12410 61417 38595 39741 163854 61409 38605 12410 8474 61419 3...
result:
ok
Test #88:
score: 0
Accepted
time: 287ms
memory: 57020kb
input:
ba73dbf9c7d5e5202834d6a500541c 169995 97050 40000 83488 40000 83726 40000 100000 25052 100000 13668 2 904 60986 40000 28594 20000 51184 40000 40000 12506 92936 2 32440 40000 61562 2 29342 2 29178 2 31564 2 84020 2 22850 2 86310 40000 2 25682 67964 20000 27174 2 34700 40000 100000 18902 24042 20000 8...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 169994 76110 49078 3 17451 76110 51830 3 17453 49078 17673 1 17449 51830 93775 1 17455 17673 100569 1 17447 93775 13187 3 17457 100569 38020 3 17445 13187 143479 1 17459 38020 85063 1 17443 143479 71496 1 17461 85063 101396 3 17441 71496 85785 3 17463 10...
result:
ok
Test #89:
score: 0
Accepted
time: 83ms
memory: 19284kb
input:
ba73dbf9c7d5e5202834d6a500541c 200000 1314 1854 274 822 298 698 1510 1034 958 1170 938 878 558 406 1442 1542 1394 734 546 1234 1018 1426 1206 1454 414 402 210 566 1578 426 230 278 1022 1102 462 1026 166 66 1374 1810 1334 202 314 1042 602 1658 1598 550 718 1650 186 1618 1062 1806 262 1614 1082 1950 9...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #90:
score: 0
Accepted
time: 75ms
memory: 19652kb
input:
ba73dbf9c7d5e5202834d6a500541c 200000 194 138 778 1194 636 506 688 34 322 418 332 1882 706 574 106 746 162 1682 16 650 90 830 794 926 266 1642 468 914 790 438 354 1242 200 1530 706 402 482 822 612 1926 292 1934 224 662 172 1362 676 1294 344 1602 290 466 734 1238 300 1938 224 30 184 1370 520 822 264 ...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #91:
score: 0
Accepted
time: 74ms
memory: 19444kb
input:
ba73dbf9c7d5e5202834d6a500541c 200000 166 984 734 960 1026 70 1018 572 774 48 758 496 486 720 1090 680 862 120 1510 284 790 824 58 878 1102 690 910 256 322 140 6 750 630 554 86 506 122 898 1498 886 1266 110 470 514 114 832 338 182 1094 300 718 288 278 532 470 42 630 614 438 96 958 252 378 764 958 11...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #92:
score: 0
Accepted
time: 812ms
memory: 53840kb
input:
ba73dbf9c7d5e5202834d6a500541c 199999 1398 812 1458 624 1286 630 1430 638 1250 584 1026 92 1026 148 1114 750 38 642 1202 748 842 38 998 638 662 594 1570 430 710 258 26 552 154 442 10 666 922 378 90 488 1490 538 1594 662 1154 502 210 416 670 672 454 256 898 774 590 148 1318 842 1266 794 746 860 310 9...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 199998 109438 83253 1241 481 109438 113017 1243 483 83253 159446 1243 479 113017 182300 1243 485 159446 12721 1243 477 182300 122539 1243 487 12721 190759 1243 475 122539 53479 1243 489 190759 157433 1241 473 53479 118483 1241 491 157433 128562 1241 471 ...
result:
ok
Test #93:
score: 0
Accepted
time: 736ms
memory: 54328kb
input:
ba73dbf9c7d5e5202834d6a500541c 199999 866 434 1150 510 298 342 1442 170 382 976 686 442 854 894 318 976 166 640 1562 246 1438 814 1382 872 1558 782 578 320 1378 474 1474 320 1590 628 1554 278 682 82 554 318 34 248 674 870 246 522 726 482 1390 920 1298 682 294 622 402 472 1198 742 614 264 598 630 910...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 199998 84229 59118 891 93 84229 75927 891 95 59118 130258 889 91 75927 11593 889 97 130258 17223 889 89 11593 8830 891 99 17223 94628 889 87 8830 193471 889 101 94628 191444 889 85 193471 79785 891 103 191444 77461 889 83 79785 113917 889 105 77461 19390...
result:
ok
Test #94:
score: 0
Accepted
time: 402ms
memory: 54068kb
input:
ba73dbf9c7d5e5202834d6a500541c 199999 972 594 440 1198 762 586 426 1542 468 126 252 1434 182 1442 452 814 778 386 744 1118 854 82 912 178 84 1366 982 1202 212 1106 226 1442 210 878 570 890 422 846 264 1334 772 910 66 926 118 1094 304 98 810 1426 34 158 142 2 258 698 732 554 152 1110 290 490 794 690 ...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 199998 72113 121002 959 1403 72113 175709 961 1401 121002 17654 957 1401 175709 8036 963 1403 17654 104592 955 1403 8036 190934 965 1403 104592 65205 953 1403 190934 4140 967 1403 65205 189509 951 1403 4140 86991 969 1403 189509 116645 949 1401 86991 147...
result:
ok
Test #95:
score: 0
Accepted
time: 429ms
memory: 54128kb
input:
ba73dbf9c7d5e5202834d6a500541c 199999 628 130 416 710 642 1042 500 138 150 202 294 166 742 1166 872 1094 854 378 500 846 72 490 122 10 328 422 54 834 340 1426 264 818 466 774 254 422 338 1554 952 542 238 1502 42 322 672 474 826 1246 994 1454 614 1418 816 386 314 346 620 1526 982 1298 296 1490 310 67...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 199998 75708 103756 315 1135 75708 47238 317 1133 103756 60966 313 1135 47238 25780 319 1135 60966 128153 311 1133 25780 78157 321 1133 128153 49449 309 1133 78157 124587 323 1133 49449 136428 307 1133 124587 80895 325 1135 136428 94410 305 1133 80895 32...
result:
ok
Test #96:
score: 0
Accepted
time: 0ms
memory: 3892kb
input:
ba73dbf9c7d5e5202834d6a500541c 7 183572 142078 183572 142080 183568 142076 183574 142078 183574 142076 183568 142078 183570 142078
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 6 2 5 183569 142077 5 6 183569 142079 6 0 183571 142077 0 3 183573 142077 0 1 183571 142079 3 4 183575 142077
result:
ok
Test #97:
score: 0
Accepted
time: 135ms
memory: 7168kb
input:
ba73dbf9c7d5e5202834d6a500541c 14125 185792 20626 186256 20742 186128 20844 186294 20356 185902 20752 186302 20350 185884 20314 185894 20614 185980 20576 186148 20520 185830 20870 185858 20382 186108 20826 186204 20714 185822 20694 185928 20984 185768 20438 186176 20758 185926 20604 186106 20672 185...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 14124 12162 3458 185751 20743 12162 3599 185753 20741 3458 12435 185749 20743 3599 9484 185755 20741 3599 6534 185753 20743 12435 9529 185749 20745 12435 1594 185751 20745 9484 4087 185755 20739 9484 1840 185753 20739 1594 500 185751 20747 1840 4640 1857...
result:
ok
Test #98:
score: 0
Accepted
time: 31ms
memory: 11260kb
input:
ba73dbf9c7d5e5202834d6a500541c 100000 177456 177456 171074 171074 168200 168200 161352 161352 67104 67104 118318 118318 52258 52258 922 922 48450 48450 198048 198048 78358 78358 25852 25852 190812 190812 55744 55744 100624 100624 67562 67562 100866 100866 151566 151566 150458 150458 89932 89932 1124...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #99:
score: 0
Accepted
time: 340ms
memory: 53744kb
input:
ba73dbf9c7d5e5202834d6a500541c 199999 36996 36996 186060 186060 138654 138654 119648 119648 77274 77274 155998 155998 126848 126846 40008 40008 131372 131372 176154 176154 52550 52550 28622 28620 152276 152274 163746 163744 77792 77790 26394 26392 107542 107542 137218 137218 99318 99318 123124 12312...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 199998 28957 96091 65325 65323 28957 36175 65325 65325 96091 82818 65323 65323 36175 22597 65327 65325 82818 164454 65323 65321 22597 23147 65327 65327 164454 2410 65321 65321 23147 68333 65329 65329 2410 196954 65321 65319 68333 113049 65331 65329 19695...
result:
ok
Test #100:
score: 0
Accepted
time: 7ms
memory: 4968kb
input:
ba73dbf9c7d5e5202834d6a500541c 10000 176796 4336 103510 178630 176666 4270 176706 4416 176736 4434 176678 4446 176682 4352 176682 4328 103620 178604 176774 4284 176762 4278 176664 4418 103654 178692 176752 4376 176800 4358 176700 4426 103638 178626 176668 4434 103624 178694 103638 178756 103504 1786...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #101:
score: 0
Accepted
time: 27ms
memory: 7980kb
input:
ba73dbf9c7d5e5202834d6a500541c 50000 19712 125246 21028 78432 107586 175540 41632 93316 40222 19636 107864 175496 41542 93234 19724 125336 21004 78390 19840 125472 107696 175608 107744 175604 107868 175560 20950 78474 40432 19666 41542 93254 19828 125410 19672 125296 41694 93142 41650 93228 20986 78...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #102:
score: 0
Accepted
time: 49ms
memory: 11792kb
input:
ba73dbf9c7d5e5202834d6a500541c 100000 11532 82706 12484 8300 116672 115008 12586 8316 116574 115040 91278 196254 167350 193456 91178 196396 167250 193500 11696 82884 12456 8192 167330 193490 167264 193368 162872 76530 162838 76386 11692 82780 21684 51392 116554 115012 167308 193302 167246 193300 175...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #103:
score: 0
Accepted
time: 1627ms
memory: 21900kb
input:
ba73dbf9c7d5e5202834d6a500541c 80000 110632 196678 110706 196562 110062 196474 110372 197130 110334 196998 110584 196940 110462 196562 110576 196678 110076 196620 110630 196486 110586 196562 110194 197046 110232 196526 110576 196778 110488 197020 110092 196852 110704 196558 110254 196698 110692 1966...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 79999 66808 25156 110225 196513 66808 3992 110227 196513 25156 62548 110223 196515 25156 68893 110223 196513 25156 58834 110225 196515 3992 14451 110229 196513 58834 5889 110225 196517 14451 43419 110229 196511 5889 57592 110223 196517 5889 65415 110225 ...
result:
ok
Test #104:
score: -20
Time Limit Exceeded
input:
ba73dbf9c7d5e5202834d6a500541c 110000 153248 86150 153422 86140 153336 85974 153374 85680 153026 85962 153322 85930 153536 85810 152996 86246 153750 85712 153536 86158 153790 86094 153098 85904 153182 85690 153078 86148 153848 86062 153656 85888 153066 85882 153096 85824 153554 85590 153518 86200 15...
output:
Unauthorized output
result:
Subtask #5:
score: 0
Wrong Answer
Test #108:
score: 20
Accepted
time: 354ms
memory: 66572kb
input:
ba73dbf9c7d5e5202834d6a500541c 200000 82422 100002 100002 52498 82816 2 97624 2 100002 58032 20638 100002 100002 7646 80512 2 2 10584 28426 100002 2 83036 2 64556 47872 100002 55196 2 85350 100002 2 95376 2 23942 12488 100002 83178 2 2 9086 85598 2 100002 78820 100002 10868 98810 2 84182 100002 2 71...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 199999 67285 87283 28195 3 67285 53533 28197 1 87283 76289 28193 3 53533 155619 28199 1 76289 76644 28191 3 155619 158660 28201 1 76644 47371 28189 3 158660 172103 28203 1 47371 195738 28187 1 172103 185388 28205 1 195738 79564 28185 3 185388 133581 2820...
result:
ok
Test #109:
score: 0
Accepted
time: 808ms
memory: 66524kb
input:
ba73dbf9c7d5e5202834d6a500541c 199999 10674 50002 7228 2 31566 50002 48790 2 87212 50002 100002 76172 54282 100002 2 33136 100002 78564 50002 9882 50848 50002 50002 83692 92422 100002 100002 78880 100002 71432 50002 65586 3750 2 50002 11898 50002 17296 50002 44774 3836 2 49936 50002 50002 48536 1542...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 199998 71088 88694 75537 50003 71088 134404 75539 50001 88694 1907 75535 50003 134404 134610 75541 50001 1907 68868 75533 50003 134610 128124 75543 50001 68868 102366 75531 50003 128124 80621 75545 50001 102366 82207 75529 50001 80621 198677 75547 50001 ...
result:
ok
Test #110:
score: 0
Accepted
time: 349ms
memory: 53804kb
input:
ba73dbf9c7d5e5202834d6a500541c 199996 47612 97612 29284 20722 30860 80858 2350 52348 49558 99558 33234 83232 9050 59048 92420 57584 4174 54172 42730 92728 72144 77860 69182 19182 77286 72716 43440 6566 57918 7918 35822 85822 24864 25142 87024 37024 96744 46746 29472 79472 28650 78648 26748 76746 253...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 199995 44190 190851 53255 96749 44190 89668 53257 96747 190851 53351 53253 96749 89668 30006 53257 96745 53351 4429 53253 96751 30006 182988 53259 96745 4429 102872 53251 96751 182988 122252 53259 96743 102872 91455 53251 96753 122252 93708 53261 96743 9...
result:
ok
Test #111:
score: 0
Accepted
time: 1486ms
memory: 44972kb
input:
ba73dbf9c7d5e5202834d6a500541c 196096 266 878 52 818 34 890 674 450 960 390 446 622 224 138 794 360 22 436 234 760 126 336 454 434 672 386 286 36 94 134 736 774 782 752 1014 692 228 594 778 878 550 1008 246 732 588 250 982 460 786 76 342 404 2 68 58 174 230 282 604 358 700 438 274 156 94 324 706 948...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 196095 172633 166429 331 443 172633 187370 329 445 166429 85294 329 443 166429 84866 331 441 166429 30676 329 441 187370 38154 329 447 187370 41172 331 445 187370 184625 331 447 85294 59636 327 443 84866 46915 333 443 30676 134897 329 439 38154 47719 327...
result:
ok
Test #112:
score: 0
Accepted
time: 1161ms
memory: 51632kb
input:
ba73dbf9c7d5e5202834d6a500541c 175280 382 334 666 902 752 406 992 1306 1252 256 252 422 762 1018 72 210 1078 102 478 1182 1392 68 942 530 180 252 152 1176 2 594 52 182 522 1032 482 1386 242 260 242 276 112 572 782 138 762 1034 532 586 222 160 232 236 914 392 172 1006 612 1258 1170 832 1236 992 1370 ...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 175279 63731 39037 401 1269 63731 8881 401 1271 39037 99985 401 1267 8881 120922 401 1273 8881 24419 403 1271 8881 88718 403 1273 99985 155035 403 1265 120922 122656 399 1271 24419 79863 405 1273 88718 137665 401 1275 155035 144842 401 1263 122656 22373 ...
result:
ok
Test #113:
score: 0
Accepted
time: 0ms
memory: 3900kb
input:
ba73dbf9c7d5e5202834d6a500541c 7 183572 142078 183572 142080 183568 142076 183574 142078 183574 142076 183568 142078 183570 142078
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 6 2 5 183567 142077 5 6 183569 142079 6 0 183571 142077 0 3 183573 142077 0 1 183573 142079 3 4 183575 142077
result:
ok
Test #114:
score: 0
Accepted
time: 242ms
memory: 10880kb
input:
ba73dbf9c7d5e5202834d6a500541c 31065 186080 21286 185980 21532 185748 21002 185714 21252 185436 20722 186236 21564 185932 21236 185414 20700 185944 21578 185658 20936 185856 21540 186034 21122 186020 21492 186014 21310 185282 20638 185482 20878 185224 20682 185670 21264 186032 21510 186004 21112 185...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 31064 14426 29936 185847 21137 29936 27822 185849 21137 29936 14842 185847 21139 27822 7119 185849 21135 27822 19889 185847 21135 14842 12552 185849 21139 7119 22992 185851 21135 19889 1507 185847 21133 19889 21605 185849 21133 12552 1457 185851 21141 12...
result:
ok
Test #115:
score: 0
Accepted
time: 15ms
memory: 5888kb
input:
ba73dbf9c7d5e5202834d6a500541c 20000 70262 161716 35896 78638 36020 78778 35780 78778 70374 161892 35858 78838 35908 78680 70376 161802 35886 78784 35858 78886 70436 161842 35884 78716 36030 78752 70344 161912 70270 161766 35868 78870 70276 161828 35806 78664 70330 161764 35978 78806 35850 78718 703...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #116:
score: 0
Accepted
time: 32ms
memory: 9548kb
input:
ba73dbf9c7d5e5202834d6a500541c 70000 101734 41174 53110 85692 125290 151418 53092 85668 125240 151526 101728 41006 155882 162620 70032 179926 125070 151314 69944 179838 125086 151362 101720 41088 125220 151418 78622 142762 70006 179900 78714 142782 53076 85646 78466 142806 156134 162652 69884 179760...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #117:
score: 0
Accepted
time: 55ms
memory: 13360kb
input:
ba73dbf9c7d5e5202834d6a500541c 120000 81980 29184 45086 128478 45130 128460 34094 161734 34312 161616 6660 133698 45032 128422 6464 133838 77706 149488 29744 82012 34066 161698 34152 161602 67876 16558 81992 29244 41026 168276 6594 133820 6410 133690 34300 161660 172610 38842 172506 38750 40990 1682...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #118:
score: 0
Accepted
time: 2715ms
memory: 25480kb
input:
ba73dbf9c7d5e5202834d6a500541c 100000 21246 185820 20976 186272 21262 185900 20648 185812 21086 186086 20868 185712 21114 185810 21262 186168 20684 185892 20982 186216 20922 186194 21206 185654 20762 185796 21248 186200 21142 185850 21060 185510 20926 185746 21326 185710 20948 185798 21056 185958 21...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 99999 39246 13521 21069 185957 39246 12871 21071 185955 39246 55721 21069 185955 39246 56575 21071 185957 13521 58777 21067 185955 12871 86192 21073 185955 55721 70415 21069 185953 56575 45812 21071 185959 58777 53466 21065 185955 58777 70881 21065 18595...
result:
ok
Test #119:
score: 0
Accepted
time: 2855ms
memory: 30792kb
input:
ba73dbf9c7d5e5202834d6a500541c 125000 143578 113244 143620 112756 143600 113284 143670 113030 143848 113452 143654 113456 144176 112896 143982 112746 143648 112962 143542 113182 143954 113258 143500 112982 143960 113170 144016 112808 143802 112736 143952 112846 143364 112900 143658 112576 143632 112...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 124999 88568 89890 143877 112735 88568 113147 143879 112735 89890 66946 143877 112733 89890 52595 143875 112735 113147 10546 143879 112733 113147 64909 143881 112735 66946 21824 143875 112733 66946 24228 143877 112731 52595 5463 143875 112737 52595 11344...
result:
ok
Test #120:
score: -20
Wrong Answer
time: 2789ms
memory: 32100kb
input:
ba73dbf9c7d5e5202834d6a500541c 150000 115254 119710 115364 119296 115174 119288 115390 119648 115444 119620 115682 119260 115616 118782 114978 119008 115702 119260 115590 119250 115170 119030 115146 119308 115222 118958 114912 118972 115304 118678 115034 119388 115326 119348 115328 119082 115256 118...
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
wrong answer Solution announced impossible, but it is possible.
Subtask #6:
score: 0
Skipped
Dependency #1:
100%
Accepted
Dependency #2:
100%
Accepted
Dependency #3:
100%
Accepted
Dependency #4:
0%