QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#138062 | #1142. Fountain Parks | yahia# | 30 | 2239ms | 66672kb | C++14 | 3.8kb | 2023-08-10 21:45:48 | 2024-07-04 01:35:19 |
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: 3852kb
input:
ba73dbf9c7d5e5202834d6a500541c 1 2 2
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 0
result:
ok
Test #2:
score: 0
Accepted
time: 0ms
memory: 4120kb
input:
ba73dbf9c7d5e5202834d6a500541c 2 2 2 2 4
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 1 0 1 3 3
result:
ok
Test #3:
score: 0
Accepted
time: 0ms
memory: 3880kb
input:
ba73dbf9c7d5e5202834d6a500541c 2 2 2 2 6
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #4:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
ba73dbf9c7d5e5202834d6a500541c 3 2 2 2 4 2 6
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 2 1 0 3 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 3 3 1 2 3 5 2 3 3 7
result:
ok
Test #6:
score: 0
Accepted
time: 0ms
memory: 4112kb
input:
ba73dbf9c7d5e5202834d6a500541c 3 2 2 2 4 2 8
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #7:
score: 0
Accepted
time: 0ms
memory: 3860kb
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: 3864kb
input:
ba73dbf9c7d5e5202834d6a500541c 4 2 2 2 4 2 6 2 10
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #9:
score: 0
Accepted
time: 164ms
memory: 34892kb
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 24610 36222 1 114707 24610 88181 3 114709 36222 77503 1 114705 88181 3961 1 114711 77503 72794 3 114703 3961 48835 1 114713 72794 62164 3 114701 48835 45527 3 114715 62164 53029 3 114699 45527 39784 1 114717 53029 69086 3 114697 39784 76074 3 11471...
result:
ok
Test #10:
score: 0
Accepted
time: 13ms
memory: 7136kb
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 4610 4609 1 12343 4610 4611 3 12345 4609 4608 1 12341 4611 4612 1 12347 4608 4607 3 12339 4612 4613 1 12349 4607 4606 3 12337 4613 4614 3 12351 4606 4605 3 12335 4614 4615 1 12353 4605 4604 3 12333 4615 4616 3 12355 4604 4603 3 12331 4616 4617 1 123...
result:
ok
Test #11:
score: 0
Accepted
time: 81ms
memory: 20636kb
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 12642 12641 1 28849 12642 12643 3 28851 12641 12640 1 28847 12643 12644 1 28853 12640 12639 3 28845 12644 12645 1 28855 12639 12638 3 28843 12645 12646 3 28857 12638 12637 3 28841 12646 12647 1 28859 12637 12636 3 28839 12647 12648 3 28861 12636 12...
result:
ok
Test #12:
score: 0
Accepted
time: 19ms
memory: 8276kb
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 2765 2764 1 10483 2765 2766 3 10485 2764 2763 1 10481 2766 2767 1 10487 2763 2762 3 10479 2767 2768 1 10489 2762 2761 3 10477 2768 2769 3 10491 2761 2760 3 10475 2769 2770 1 10493 2760 2759 3 10473 2770 2771 3 10495 2759 2758 3 10471 2771 2772 1 10...
result:
ok
Test #13:
score: 0
Accepted
time: 22ms
memory: 8960kb
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: 4304kb
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: 1ms
memory: 4112kb
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: 154ms
memory: 35024kb
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 24610 76041 1 175107 24610 16341 3 175109 76041 65403 1 175105 16341 95126 1 175111 65403 16916 3 175103 95126 67352 1 175113 16916 24043 3 175101 67352 81794 3 175115 24043 48003 3 175099 81794 12686 1 175117 48003 87823 3 175097 12686 2446 3 1751...
result:
ok
Subtask #2:
score: 10
Accepted
Dependency #1:
100%
Accepted
Test #17:
score: 10
Accepted
time: 0ms
memory: 3884kb
input:
ba73dbf9c7d5e5202834d6a500541c 4 4 4 2 4 4 2 2 2
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 3 2 3 3 1 2 0 5 3 3 1 1 3
result:
ok
Test #18:
score: 0
Accepted
time: 0ms
memory: 3892kb
input:
ba73dbf9c7d5e5202834d6a500541c 4 4 4 2 6 2 4 4 6
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 3 2 0 3 3 2 1 3 5 0 3 5 5
result:
ok
Test #19:
score: 0
Accepted
time: 0ms
memory: 3888kb
input:
ba73dbf9c7d5e5202834d6a500541c 6 4 6 2 4 2 2 4 2 4 4 2 6
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 5 2 3 3 1 2 1 3 3 3 4 5 3 1 5 1 5 4 0 5 5
result:
ok
Test #20:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
ba73dbf9c7d5e5202834d6a500541c 8 4 2 2 6 4 8 2 4 4 6 2 2 4 4 2 8
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 7 2 7 3 7 2 4 5 7 7 1 1 7 4 6 3 5 1 3 1 5 6 0 3 3 3 5 1 3
result:
ok
Test #21:
score: 0
Accepted
time: 0ms
memory: 3860kb
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: 3888kb
input:
ba73dbf9c7d5e5202834d6a500541c 4 2 200000 4 199998 2 199998 4 200000
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 3 2 1 3 199997 2 0 3 199999 1 3 5 199999
result:
ok
Test #23:
score: 0
Accepted
time: 368ms
memory: 53768kb
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 140402 41971 3 42707 140402 116949 5 42707 140402 100993 5 42709 41971 20498 1 42707 41971 92274 3 42709 116949 147985 3 42705 100993 130219 3 42711 20498 14090 1 42705 92274 46297 1 42711 147985 16094 3 42703 130219 91726 3 42713 14090 150230 1 4...
result:
ok
Test #24:
score: 0
Accepted
time: 1ms
memory: 3864kb
input:
ba73dbf9c7d5e5202834d6a500541c 8 2 183570 4 183570 4 183572 2 183572 2 183578 4 183574 2 183576 4 183576
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 7 2 3 3 183571 2 1 5 183571 2 5 5 183573 3 0 1 183571 5 7 5 183575 7 6 3 183575 6 4 1 183577
result:
ok
Test #25:
score: 0
Accepted
time: 2ms
memory: 4200kb
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 257 1104 3 186155 257 420 1 186155 257 293 3 186157 1104 13 5 186155 1104 416 5 186157 420 76 1 186153 293 641 1 186159 13 1108 3 186153 416 350 5 186159 76 448 1 186151 641 1037 1 186161 1108 670 3 186151 350 968 3 186161 448 239 3 186149 1037 887 ...
result:
ok
Test #26:
score: 0
Accepted
time: 2ms
memory: 4224kb
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: 0ms
memory: 4220kb
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: 124ms
memory: 23544kb
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 60402 74023 3 44919 60402 72002 5 44919 60402 7675 5 44921 74023 42847 1 44919 74023 74671 3 44921 72002 17226 3 44917 7675 41350 3 44923 42847 69858 1 44917 74671 7390 1 44923 17226 53739 3 44915 41350 20720 3 44925 69858 12261 1 44915 7390 71380 ...
result:
ok
Test #29:
score: 0
Accepted
time: 180ms
memory: 33588kb
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 20402 103524 3 92603 20402 18787 1 92603 20402 37355 3 92605 103524 94964 5 92603 103524 71891 5 92605 18787 97389 1 92601 37355 63351 1 92607 94964 118248 3 92601 71891 109380 5 92607 97389 45144 1 92599 63351 8230 1 92609 118248 48578 3 92599 10...
result:
ok
Test #30:
score: 0
Accepted
time: 294ms
memory: 43804kb
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 36211 130741 3 85645 36211 96046 1 85645 36211 118428 3 85647 130741 18442 5 85645 130741 87460 5 85647 96046 5136 1 85643 118428 148721 3 85649 18442 153277 5 85643 87460 149609 5 85649 5136 12240 3 85641 148721 21058 1 85651 153277 68103 5 85641...
result:
ok
Test #31:
score: 0
Accepted
time: 373ms
memory: 53768kb
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 196211 78845 3 124533 196211 81593 1 124533 196211 13367 3 124535 78845 185097 5 124533 78845 183305 5 124535 81593 108948 1 124531 13367 24046 3 124537 185097 80840 5 124531 183305 188470 5 124537 108948 21987 3 124529 24046 36976 1 124539 80840 ...
result:
ok
Test #32:
score: 0
Accepted
time: 0ms
memory: 3940kb
input:
ba73dbf9c7d5e5202834d6a500541c 2 4 2 4 4
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 1 1 0 5 3
result:
ok
Test #33:
score: 0
Accepted
time: 0ms
memory: 3884kb
input:
ba73dbf9c7d5e5202834d6a500541c 2 2 2 4 2
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 1 1 0 3 3
result:
ok
Test #34:
score: 0
Accepted
time: 0ms
memory: 3892kb
input:
ba73dbf9c7d5e5202834d6a500541c 2 2 4 4 4
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 1 1 0 3 5
result:
ok
Test #35:
score: 0
Accepted
time: 0ms
memory: 3856kb
input:
ba73dbf9c7d5e5202834d6a500541c 2 2 2 4 4
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #36:
score: 0
Accepted
time: 0ms
memory: 4152kb
input:
ba73dbf9c7d5e5202834d6a500541c 2 2 4 4 2
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #37:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
ba73dbf9c7d5e5202834d6a500541c 3 2 2 2 4 4 2
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 2 1 0 3 3 0 2 3 1
result:
ok
Test #38:
score: 0
Accepted
time: 0ms
memory: 3884kb
input:
ba73dbf9c7d5e5202834d6a500541c 3 2 2 2 4 4 4
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 2 1 2 3 5 1 0 3 3
result:
ok
Test #39:
score: 0
Accepted
time: 0ms
memory: 3884kb
input:
ba73dbf9c7d5e5202834d6a500541c 3 2 2 4 2 4 4
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 2 1 0 3 3 1 2 5 3
result:
ok
Test #40:
score: 0
Accepted
time: 0ms
memory: 3864kb
input:
ba73dbf9c7d5e5202834d6a500541c 3 2 4 4 2 4 4
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 2 1 2 5 3 2 0 3 5
result:
ok
Test #41:
score: 0
Accepted
time: 0ms
memory: 4140kb
input:
ba73dbf9c7d5e5202834d6a500541c 3 2 4 4 2 4 6
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #42:
score: 0
Accepted
time: 0ms
memory: 3760kb
input:
ba73dbf9c7d5e5202834d6a500541c 3 2 200000 2 199998 4 200000
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 2 1 0 3 199999 0 2 3 200001
result:
ok
Test #43:
score: 0
Accepted
time: 1ms
memory: 4208kb
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: 4152kb
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: 148ms
memory: 30932kb
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 3835 30909 3 185943 3835 45546 3 185941 3835 94844 1 185943 45546 86841 3 185939 94844 78633 1 185945 86841 24007 3 185937 86841 3003 1 185937 78633 70584 3 185947 3003 27397 1 185935 70584 27734 3 185949 70584 98545 1 185949 27397 91036 3 185935 2...
result:
ok
Test #46:
score: 0
Accepted
time: 232ms
memory: 43568kb
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 69387 135163 3 181709 135163 20495 1 181707 135163 4418 1 181709 20495 2860 3 181705 4418 18912 3 181711 2860 66261 3 181703 2860 66492 1 181703 18912 13789 3 181713 18912 22093 1 181713 66492 51431 3 181701 22093 81095 3 181715 51431 11669 3 1816...
result:
ok
Test #47:
score: 0
Accepted
time: 223ms
memory: 43644kb
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 23546 129239 5 1589 23546 144028 3 1591 129239 23177 3 1587 144028 121370 3 1593 144028 119832 5 1593 23177 128020 1 1587 119832 95574 5 1595 128020 35168 1 1585 95574 30232 3 1595 95574 74686 5 1597 35168 84985 3 1583 74686 53260 5 1599 84985 129...
result:
ok
Subtask #3:
score: 15
Accepted
Dependency #2:
100%
Accepted
Test #48:
score: 15
Accepted
time: 0ms
memory: 3864kb
input:
ba73dbf9c7d5e5202834d6a500541c 4 6 2 4 2 6 4 4 4
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 3 0 1 5 3 0 2 7 3 1 3 3 3
result:
ok
Test #49:
score: 0
Accepted
time: 0ms
memory: 3884kb
input:
ba73dbf9c7d5e5202834d6a500541c 4 6 6 4 4 6 4 4 6
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 3 0 3 5 7 0 2 5 5 3 1 3 5
result:
ok
Test #50:
score: 0
Accepted
time: 0ms
memory: 4164kb
input:
ba73dbf9c7d5e5202834d6a500541c 6 6 2 2 2 6 4 2 4 4 2 4 4
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 5 2 5 5 5 2 0 7 3 5 3 3 5 5 4 3 3 3 1 1 3
result:
ok
Test #51:
score: 0
Accepted
time: 0ms
memory: 3864kb
input:
ba73dbf9c7d5e5202834d6a500541c 7 6 4 4 4 2 2 4 6 4 2 2 4 6 6
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 6 5 1 3 5 5 2 1 3 1 0 5 3 1 4 3 3 1 3 5 5 0 6 7 5
result:
ok
Test #52:
score: 0
Accepted
time: 0ms
memory: 3864kb
input:
ba73dbf9c7d5e5202834d6a500541c 8 4 2 2 2 6 8 4 6 4 8 4 4 6 6 2 4
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 7 0 1 3 3 0 5 5 3 1 7 1 3 5 3 5 5 3 6 5 7 3 4 3 7 6 2 7 7
result:
ok
Test #53:
score: 0
Accepted
time: 0ms
memory: 3888kb
input:
ba73dbf9c7d5e5202834d6a500541c 7 2 4 4 4 6 2 4 2 2 6 4 6 6 4
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 6 5 4 3 7 5 1 3 5 4 0 1 5 1 6 5 5 1 3 5 3 6 2 7 3
result:
ok
Test #54:
score: 0
Accepted
time: 0ms
memory: 3956kb
input:
ba73dbf9c7d5e5202834d6a500541c 8 4 2 4 8 4 6 6 2 2 6 4 4 2 8 6 4
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 7 0 3 5 3 0 5 3 3 3 7 7 3 5 2 5 5 2 4 3 7 2 1 5 7 4 6 1 7
result:
ok
Test #55:
score: 0
Accepted
time: 373ms
memory: 49740kb
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 82300 190060 3 25181 82300 199205 5 25183 82300 125834 5 25181 82300 62322 3 25183 190060 185774 1 25181 190060 101685 1 25183 199205 95560 7 25181 199205 151702 7 25183 125834 18059 5 25179 62322 16122 3 25185 185774 43571 1 25179 101685 46222 1 ...
result:
ok
Test #56:
score: 0
Accepted
time: 0ms
memory: 3952kb
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 2 1 3 183573 2 5 5 183575 1 8 3 183571 1 0 5 183573 1 9 5 183571 5 3 3 183575 5 4 5 183577 0 7 7 183571 3 6 3 183577
result:
ok
Test #57:
score: 0
Accepted
time: 5ms
memory: 4356kb
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 778 333 5 186495 778 947 7 186495 778 914 7 186497 333 570 3 186497 333 444 3 186495 333 786 5 186497 947 902 5 186493 914 1577 7 186499 570 1178 1 186495 570 1105 1 186497 444 89 3 186493 786 365 3 186499 902 821 5 186491 1577 181 5 186501 1178 124...
result:
ok
Test #58:
score: 0
Accepted
time: 30ms
memory: 5436kb
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 5422 1012 3 90221 5422 2851 1 90219 5422 1403 1 90221 1012 2665 5 90219 1012 3531 3 90219 1012 2274 5 90221 2851 4286 1 90217 1403 82 3 90223 2665 1785 7 90219 2665 2344 7 90221 3531 4564 3 90217 2274 5357 5 90223 4286 4719 1 90215 82 1104 1 90225 1...
result:
ok
Test #59:
score: 0
Accepted
time: 4ms
memory: 4848kb
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: 147ms
memory: 26656kb
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 77422 88651 3 3213 77422 36696 5 3215 77422 11183 5 3213 77422 73096 3 3215 88651 59784 1 3213 88651 45829 1 3215 36696 13204 7 3213 36696 30575 7 3215 11183 35669 5 3211 73096 30969 3 3217 59784 42890 1 3211 45829 65762 1 3217 13204 52968 7 3211 3...
result:
ok
Test #61:
score: 0
Accepted
time: 233ms
memory: 35044kb
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 91814 7729 5 1737 91814 119068 7 1735 91814 96263 7 1737 7729 124240 3 1735 7729 24192 5 1735 7729 2419 3 1737 119068 11822 7 1733 96263 52675 7 1739 124240 48246 1 1735 124240 30166 1 1737 24192 6093 3 1733 2419 125388 3 1739 11822 69133 7 1731 5...
result:
ok
Test #62:
score: 0
Accepted
time: 424ms
memory: 41916kb
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 1814 150503 3 115901 1814 79021 1 115899 1814 80530 1 115901 150503 35777 5 115899 150503 53843 3 115899 150503 149601 5 115901 79021 19279 3 115897 80530 121275 3 115903 35777 45441 7 115899 35777 109470 7 115901 53843 82374 5 115897 149601 22428...
result:
ok
Test #63:
score: 0
Accepted
time: 371ms
memory: 49964kb
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 79508 118093 5 142393 79508 154742 7 142393 79508 195147 7 142395 118093 153596 3 142395 118093 92471 3 142393 118093 188692 5 142395 154742 53125 5 142391 195147 180338 7 142397 153596 79538 1 142393 153596 161321 1 142395 92471 151384 3 142391 1...
result:
ok
Test #64:
score: 0
Accepted
time: 0ms
memory: 3884kb
input:
ba73dbf9c7d5e5202834d6a500541c 2 2 2 6 2
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #65:
score: 0
Accepted
time: 0ms
memory: 3816kb
input:
ba73dbf9c7d5e5202834d6a500541c 3 2 2 4 2 6 2
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 2 0 1 3 1 1 2 5 1
result:
ok
Test #66:
score: 0
Accepted
time: 0ms
memory: 3888kb
input:
ba73dbf9c7d5e5202834d6a500541c 4 2 4 4 2 4 6 6 4
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
ok
Test #67:
score: 0
Accepted
time: 335ms
memory: 60128kb
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 84331 65116 1 67093 84331 55062 1 67095 65116 34095 3 67091 55062 2312 3 67097 34095 32058 1 67089 2312 171586 1 67099 32058 83159 1 67087 171586 35402 3 67101 83159 53314 3 67085 35402 43183 1 67103 53314 83715 1 67083 43183 11513 3 67105 83715 6...
result:
ok
Test #68:
score: 0
Accepted
time: 369ms
memory: 60080kb
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 85297 49514 7 118207 85297 48213 7 118209 49514 146562 7 118205 48213 182365 5 118211 146562 184791 5 118203 182365 100990 5 118213 184791 119051 7 118201 100990 186320 5 118215 119051 189655 5 118199 186320 91750 5 118217 189655 128098 5 118197 9...
result:
ok
Test #69:
score: 0
Accepted
time: 322ms
memory: 60092kb
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 140305 172950 7 193313 140305 60158 7 193315 172950 11872 5 193311 60158 81261 7 193317 11872 4852 7 193309 81261 2268 7 193319 4852 127176 7 193307 2268 49312 7 193321 127176 110289 5 193305 49312 111850 5 193323 110289 198435 7 193303 111850 131...
result:
ok
Test #70:
score: 0
Accepted
time: 3ms
memory: 4428kb
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: 4ms
memory: 4940kb
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: 784ms
memory: 29720kb
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 33020 18920 3 78737 33020 92294 5 78735 33020 31646 5 78737 92294 54379 5 78733 31646 56936 5 78739 31646 15162 3 78739 54379 42691 7 78733 15162 82318 5 78741 42691 24281 5 78731 82318 98238 3 78741 82318 63044 5 78743 82318 49232 3 78743 24281 33...
result:
ok
Test #73:
score: 0
Accepted
time: 947ms
memory: 42668kb
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 37943 118929 1 72691 37943 52306 1 72693 118929 133100 3 72689 52306 28099 3 72693 52306 118241 1 72695 133100 47962 5 72689 28099 8092 5 72695 118241 2681 1 72697 47962 146175 5 72687 47962 75850 3 72687 8092 84952 5 72693 8092 62125 7 72695 2681...
result:
ok
Test #74:
score: 0
Accepted
time: 1417ms
memory: 55876kb
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 147146 58175 3 191863 147146 163194 1 191865 58175 17038 3 191861 58175 101891 1 191861 163194 160702 3 191867 101891 27810 1 191859 160702 1644 3 191869 160702 163907 1 191869 27810 133605 3 191857 1644 136534 5 191867 163907 20273 3 191871 13360...
result:
ok
Test #75:
score: 0
Accepted
time: 337ms
memory: 53876kb
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 143533 123674 5 148499 143533 43021 5 148501 123674 145651 5 148497 123674 63363 7 148497 43021 136433 5 148503 43021 21786 7 148503 145651 189998 3 148497 63363 176897 7 148495 136433 130386 3 148501 21786 22247 7 148505 189998 144958 1 148497 18...
result:
ok
Test #76:
score: 0
Accepted
time: 361ms
memory: 60276kb
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 127583 116178 7 156271 127583 65021 5 156273 116178 138729 7 156269 65021 59475 5 156275 138729 129132 5 156267 59475 153254 7 156277 129132 143980 5 156265 153254 152801 7 156279 143980 40008 7 156263 152801 122954 7 156281 40008 122872 7 156261 ...
result:
ok
Test #77:
score: 0
Accepted
time: 3ms
memory: 4404kb
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: 5ms
memory: 5120kb
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: 598ms
memory: 28752kb
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 85897 31583 1 72957 85897 73695 3 72959 31583 6899 3 72955 31583 12875 1 72955 73695 55294 3 72961 73695 38205 1 72961 6899 27056 5 72957 12875 52282 1 72953 55294 96036 5 72961 38205 59074 1 72963 27056 41757 7 72955 27056 4034 7 72957 52282 88212...
result:
ok
Test #80:
score: 0
Accepted
time: 860ms
memory: 41848kb
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 35897 56720 5 108749 35897 136834 7 108749 35897 107779 5 108751 56720 54759 3 108751 107779 126294 7 108753 54759 33715 3 108749 54759 50718 1 108751 126294 131143 5 108753 33715 148509 3 108747 50718 90800 1 108753 131143 107959 5 108755 148509 ...
result:
ok
Test #81:
score: 0
Accepted
time: 1711ms
memory: 54544kb
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 67958 8972 3 111343 67958 151624 5 111341 8972 49858 3 111341 8972 151694 1 111343 151624 118343 7 111341 151624 144550 7 111343 49858 15003 3 111339 151694 132121 3 111345 118343 83768 5 111339 144550 164945 5 111345 15003 152908 3 111337 15003 1...
result:
ok
Subtask #4:
score: 0
Wrong Answer
Test #82:
score: 20
Accepted
time: 0ms
memory: 3864kb
input:
ba73dbf9c7d5e5202834d6a500541c 3 200000 2 200000 4 199998 2
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 2 2 0 199999 3 0 1 200001 3
result:
ok
Test #83:
score: 0
Accepted
time: 0ms
memory: 3948kb
input:
ba73dbf9c7d5e5202834d6a500541c 3 200000 200000 200000 199998 199998 200000
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 2 2 0 199999 200001 0 1 200001 199999
result:
ok
Test #84:
score: 0
Accepted
time: 0ms
memory: 3848kb
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: 332ms
memory: 54012kb
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 41311 75292 65809 134195 41311 44333 65807 134195 75292 71375 65809 134193 44333 78099 65807 134197 71375 174919 65811 134191 78099 29228 65805 134197 174919 55402 65813 134191 29228 156090 65805 134199 55402 156969 65813 134189 156090 28522 65803...
result:
ok
Test #86:
score: 0
Accepted
time: 328ms
memory: 53876kb
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 46623 156487 99441 99447 46623 108562 99443 99447 156487 64918 99439 99445 108562 134636 99443 99449 64918 146073 99439 99443 134636 104158 99445 99449 146073 120415 99437 99443 104158 168160 99445 99451 120415 22310 99437 99441 168160 74073 99447...
result:
ok
Test #87:
score: 0
Accepted
time: 342ms
memory: 53872kb
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 85026 77360 12831 87181 85026 93225 12831 87183 77360 92209 12833 87181 93225 2238 12829 87183 92209 92739 12833 87179 2238 101285 12829 87185 92739 16033 12835 87179 101285 47774 12827 87187 16033 52619 12835 87177 47774 19039 12825 87187 52619 1...
result:
ok
Test #88:
score: 0
Accepted
time: 287ms
memory: 56980kb
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 33685 35492 62645 3 33685 11875 62647 1 35492 139347 62643 3 11875 2306 62649 1 139347 90215 62641 1 2306 141478 62651 1 90215 106710 62639 3 141478 140935 62653 3 106710 15489 62637 3 140935 51675 62655 1 15489 57476 62635 1 51675 26255 62657 1 5...
result:
ok
Test #89:
score: 0
Accepted
time: 78ms
memory: 19272kb
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: 88ms
memory: 19388kb
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: 79ms
memory: 19452kb
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: 867ms
memory: 54068kb
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 173440 192981 1111 717 173440 67284 1109 719 192981 88807 1111 715 67284 56894 1109 721 88807 153410 1109 713 56894 155221 1109 723 153410 174688 1111 711 155221 164718 1111 725 174688 55507 1111 709 164718 112656 1109 727 55507 183542 1109 707 11...
result:
ok
Test #93:
score: 0
Accepted
time: 862ms
memory: 54292kb
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 191967 194486 523 591 191967 178630 521 593 194486 30184 523 589 178630 6362 521 595 30184 3239 523 587 6362 107012 523 597 3239 110303 521 585 107012 116687 523 599 110303 110227 523 583 116687 57926 521 601 110227 132995 521 581 57926 94477 523 ...
result:
ok
Test #94:
score: 0
Accepted
time: 411ms
memory: 53828kb
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 181409 166656 959 83 181409 34537 961 83 166656 18710 957 83 34537 13752 963 81 18710 104803 955 81 13752 119248 965 81 104803 78341 953 83 119248 155368 967 83 78341 199888 951 81 155368 125994 969 83 199888 28304 949 83 125994 173221 971 83 2830...
result:
ok
Test #95:
score: 0
Accepted
time: 429ms
memory: 54148kb
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 74019 42450 415 1053 74019 99560 417 1055 42450 183501 413 1053 99560 79503 419 1055 183501 28513 411 1053 79503 123647 421 1055 28513 172586 409 1053 123647 168013 423 1053 172586 108055 407 1055 168013 74611 425 1055 108055 131436 405 1055 74611...
result:
ok
Test #96:
score: 0
Accepted
time: 0ms
memory: 3868kb
input:
ba73dbf9c7d5e5202834d6a500541c 7 183572 142078 183572 142080 183568 142076 183574 142078 183574 142076 183568 142078 183570 142078
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 6 1 0 183571 142079 0 6 183571 142077 0 3 183573 142077 6 5 183569 142079 3 4 183575 142077 5 2 183569 142077
result:
ok
Test #97:
score: 0
Accepted
time: 182ms
memory: 7376kb
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 1248 2597 186121 20637 1248 9841 186123 20639 2597 13290 186119 20637 2597 3490 186121 20639 13290 13408 186117 20637 3490 8977 186121 20641 13408 4939 186115 20637 8977 4462 186121 20643 8977 5442 186119 20643 4939 2174 186115 20639 2174 3689 1861...
result:
ok
Test #98:
score: 0
Accepted
time: 34ms
memory: 11092kb
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: 332ms
memory: 53840kb
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 173838 133507 16227 16227 173838 162262 16225 16225 133507 110748 16229 16227 162262 134074 16225 16223 110748 75405 16229 16229 134074 85079 16223 16223 75405 138762 16231 16229 85079 181754 16223 16221 138762 113886 16231 16231 181754 20930 1622...
result:
ok
Test #100:
score: 0
Accepted
time: 7ms
memory: 4944kb
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: 23ms
memory: 7992kb
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: 11880kb
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: 1790ms
memory: 22028kb
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 45739 52380 110311 196873 45739 23319 110309 196873 52380 51685 110313 196871 23319 69978 110309 196875 51685 42328 110315 196871 51685 48157 110315 196873 42328 57010 110315 196869 48157 1355 110315 196875 48157 36747 110313 196875 57010 63399 110...
result:
ok
Test #104:
score: -20
Wrong Answer
time: 2239ms
memory: 25392kb
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:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 0
result:
wrong answer Solution announced impossible, but it is possible.
Subtask #5:
score: 0
Time Limit Exceeded
Test #108:
score: 20
Accepted
time: 360ms
memory: 66396kb
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 110631 79329 3 89059 110631 73561 1 89061 79329 45719 1 89057 73561 2416 1 89063 45719 84737 1 89055 2416 177724 3 89065 84737 83923 1 89053 177724 151754 1 89067 83923 13328 3 89051 151754 41989 3 89069 13328 21823 3 89049 41989 171906 3 89071 21...
result:
ok
Test #109:
score: 0
Accepted
time: 414ms
memory: 66672kb
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 111201 114319 100003 50953 111201 197324 100001 50955 114319 172321 100001 50951 197324 27786 100001 50957 172321 157452 100001 50949 27786 156463 100003 50959 157452 186371 100001 50947 156463 12587 100001 50961 186371 158782 100003 50945 12587 1...
result:
ok
Test #110:
score: 0
Accepted
time: 377ms
memory: 53772kb
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 106291 46581 68407 81595 106291 140962 68409 81595 46581 134025 68407 81597 140962 48197 68409 81593 134025 52519 68405 81599 48197 190196 68411 81593 52519 120331 68403 81599 190196 137898 68411 81591 120331 162386 68403 81601 137898 157891 68413...
result:
ok
Test #111:
score: 0
Accepted
time: 1621ms
memory: 44816kb
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 116852 135621 713 517 116852 184616 715 519 116852 85233 715 517 116852 103923 713 519 135621 169042 711 517 184616 116609 717 519 85233 162359 715 515 103923 122938 715 521 169042 195139 709 519 169042 82007 709 517 169042 180941 711 519 116609 3...
result:
ok
Test #112:
score: 0
Accepted
time: 1103ms
memory: 51324kb
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 81585 123889 1133 791 81585 17354 1135 793 123889 11396 1131 793 123889 58387 1131 791 123889 67415 1133 793 17354 22293 1137 791 11396 173642 1129 793 58387 65742 1131 789 67415 103762 1131 795 22293 68140 1139 791 173642 32359 1127 791 65742 866...
result:
ok
Test #113:
score: 0
Accepted
time: 0ms
memory: 4148kb
input:
ba73dbf9c7d5e5202834d6a500541c 7 183572 142078 183572 142080 183568 142076 183574 142078 183574 142076 183568 142078 183570 142078
output:
3kr2yac8xnf3ktgcoqviaw115df6rra7is6p5uix OK 1 6 1 0 183573 142079 0 6 183571 142079 0 3 183573 142077 6 5 183569 142079 3 4 183575 142077 5 2 183567 142077
result:
ok
Test #114:
score: 0
Accepted
time: 302ms
memory: 10900kb
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 13892 11245 185641 21315 13892 7292 185643 21315 11245 30369 185639 21313 11245 2748 185641 21313 11245 25260 185639 21315 7292 22342 185645 21313 30369 14187 185637 21313 2748 20371 185641 21311 25260 19955 185641 21317 22342 17183 185647 21315 22...
result:
ok
Test #115:
score: 0
Accepted
time: 14ms
memory: 5856kb
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: 36ms
memory: 9220kb
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: 58ms
memory: 13372kb
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: 1682ms
memory: 25520kb
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 89407 5336 21121 185705 89407 68176 21123 185707 5336 28908 21119 185707 5336 93136 21119 185705 5336 36256 21121 185707 68176 25266 21123 185705 68176 72335 21125 185707 28908 87877 21117 185707 93136 26014 21121 185703 36256 60938 21119 185709 25...
result:
ok
Test #119:
score: 0
Accepted
time: 1796ms
memory: 30848kb
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 4468 94403 143541 112637 4468 46799 143543 112639 4468 71579 143543 112637 4468 61718 143541 112639 94403 44741 143539 112637 46799 58162 143545 112639 71579 35243 143541 112635 61718 43153 143541 112641 44741 86016 143537 112639 44741 35216 14353...
result:
ok
Test #120:
score: -20
Time Limit Exceeded
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:
Subtask #6:
score: 0
Skipped
Dependency #1:
100%
Accepted
Dependency #2:
100%
Accepted
Dependency #3:
100%
Accepted
Dependency #4:
0%