QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#120660#6660. 택시 여행csy2005#100 ✓531ms113272kbC++144.3kb2023-07-07 09:15:322024-05-26 01:46:25

Judging History

你现在查看的是最新测评结果

  • [2024-05-26 01:46:25]
  • 评测
  • 测评结果:100
  • 用时:531ms
  • 内存:113272kb
  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-07-07 09:15:32]
  • 提交

answer

#include <iostream>
#include <algorithm>
#include<cmath>
#include<cstring>
#include<cstdio>
#include<cstdlib>
#include<vector>
#include<iomanip>
#include<ctime>
#include<set>
#include<map>
#include<queue>
#include<stack>
#include<bitset>
#include<cassert>
#define sqr(x) ((x)*(x))
#define fz1(i,n) for ((i)=1;(i)<=(n);(i)++)
#define fd1(i,n) for ((i)=(n);(i)>=1;(i)--)
#define fz0g(i,n) for ((i)=0;(i)<=(n);(i)++)
#define fd0g(i,n) for ((i)=(n);(i)>=0;(i)--)
#define fz0k(i,n) for ((i)=0;(i)<(n);(i)++)
#define fd0k(i,n) for ((i)=(((long long)(n))-1);(i)>=0;(i)--)
#define fz(i,x,y) for ((i)=(x);(i)<=(y);(i)++)
#define fd(i,y,x) for ((i)=(y);(i)>=(x);(i)--)
#define fzin fz1(i,n)
#define fzim fz1(i,m)
#define fzjn fz1(j,n)
#define fzjm fz1(j,m)
#define ff(c,itr) for (__typeof((c).begin()) itr=(c).begin();itr!=(c).end();++itr)
#define pb push_back
#define mk make_pair
#define rdst(st,len){static char ss[len];scanf(" %s",ss);(st)=ss;}
#define spln(i,n) (i==n?'\n':' ')
#define fac_init(n){fac[0]=fac[1]=inv[1]=fi[0]=fi[1]=1;fz(i,2,n){fac[i]=1ll*fac[i-1]*i%mod;inv[i]=1ll*(mod-mod/i)*inv[mod%i]%mod;fi[i]=1ll*fi[i-1]*inv[i]%mod;}}
using namespace std;
typedef long long i64;
typedef long double f80;
typedef unsigned int u32;
typedef unsigned long long u64;
//typedef __int128 i128;
//typedef unsigned __int128 u128;
/*#ifndef ONLINE_JUDGE
	FILE *___=freopen(".in","r",stdin);
#endif*/
inline void read(int &x)
{
	char c;int f=1;
	while(!isdigit(c=getchar()))if(c=='-')f=-1;
	x=(c&15);while(isdigit(c=getchar()))x=(x<<1)+(x<<3)+(c&15);
	x*=f;
}
int n,m,i,j;
i64 a[100005];int b[100005];
vector<pair<int,int> > bi[100005];
i64 dis[100005];
priority_queue<pair<i64,int> > pq;
int vis[100005],sz[100005],mx[100005],rt,ddp[100005],dfa[100005];
i64 dds[18][100005];vector<pair<i64,int> > vd[100005];int ptr[100005];
void dfs_sz(int x,int fa)
{
	sz[x]=1;ff(bi[x],it)if(it->first!=fa&&!vis[it->first])dfs_sz(it->first,x),sz[x]+=sz[it->first];
}
void dfs_rt(int x,int fa,int all)
{
	mx[x]=all-sz[x];ff(bi[x],it)if(it->first!=fa&&!vis[it->first])dfs_rt(it->first,x,all),mx[x]=max(mx[x],sz[it->first]);
	if(rt==-1||mx[x]<mx[rt])rt=x;
}
void dfs_dis(int x,int fa,i64 ds,int d)
{
	dds[d][x]=ds;vd[rt].push_back(make_pair(ds,x));
	ff(bi[x],it)if(it->first!=fa&&!vis[it->first])dfs_dis(it->first,x,ds+it->second,d);
}
int dfs(int x,int d)
{
	dfs_sz(x,0);rt=-1;dfs_rt(x,0,sz[x]);vis[x=rt]=1;ddp[x]=d;
	dfs_dis(x,0,0,d);sort(vd[x].begin(),vd[x].end());
	ff(bi[x],it)if(!vis[it->first])dfa[dfs(it->first,d+1)]=x;
	return x;
}
struct lne
{
	int x;i64 y;
	i64 f(i64 k){return x*k+y;}
}tr[8000005];
int rrt[100005],lc[8000005],rc[8000005],cur,cnt;
void update(int &x,int l,int r,lne t)
{
	if(!x){x=++cnt;tr[x]=t;return;}int mid=(l+r)/2;
	i64 vl=vd[cur][l].first,vm=vd[cur][mid].first,vr=vd[cur][r].first;
	if(tr[x].f(vl)>t.f(vl)) swap(tr[x],t);
	if(tr[x].f(vm)>t.f(vm)) swap(tr[x],t),update(lc[x],l,mid,t);
	if(tr[x].f(vr)>t.f(vr)) update(rc[x],mid+1,r,t);
}
i64 query(int x,int l,int r,int p)
{
	if(!x) return 0x3f3f3f3f3f3f3f3fll;
	i64 res=tr[x].f(vd[cur][p].first);if(l==r) return res;
	int mid=(l+r)/2;if(p<=mid)res=min(res,query(lc[x],l,mid,p));else res=min(res,query(rc[x],mid+1,r,p));
	return res;
}
void insert(int x,i64 a,int b)
{
	cur=x;lne t=(lne){b,a};
	update(rrt[x],0,vd[x].size()-1,t);
}
void flush(int x)
{
	cur=x;while(ptr[x]<vd[x].size()&&vis[vd[x][ptr[x]].second])ptr[x]++;
	if(ptr[x]<vd[x].size()) pq.push(make_pair(-query(rrt[x],0,vd[x].size()-1,ptr[x]),vd[x][ptr[x]].second));
}
void update(int x,i64 a,int b)
{
	int d=ddp[x],y=x;
	while(y){
		insert(y,a+1ll*b*dds[d][x],b);
		flush(y);
		y=dfa[y];d--;
	}	
}
void dijkstra()
{
	memset(vis,0,sizeof(vis));
	while(!pq.empty()){
		int x=pq.top().second;i64 d=pq.top().first*(-1);pq.pop();
		if(vis[x])continue;vis[x]=1;dis[x]=d;
		update(x,dis[x]+a[x],b[x]);
	}
}
std::vector<long long> travel(std::vector<long long> A,std::vector<int> B, std::vector<int> U, std::vector<int> V, std::vector<int> W)
{
	n=A.size();fz1(i,n)a[i]=A[i-1],b[i]=B[i-1];fz0k(i,U.size())bi[U[i]+1].push_back(make_pair(V[i]+1,W[i])),bi[V[i]+1].push_back(make_pair(U[i]+1,W[i]));
	memset(dis,0x3f,sizeof(dis));dis[1]=0;pq.push(make_pair(0,1));
	dfs(1,0);
	dijkstra();
	vector<long long> res;fz(i,2,n)res.push_back(dis[i]);return res;
}

详细

Subtask #1:

score: 7
Accepted

Test #1:

score: 7
Accepted
time: 0ms
memory: 17056kb

input:

2
684124582850 713748627948
74361 256955
0 1 661088

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
733283747618
secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I

result:

ok 3 lines

Test #2:

score: 0
Accepted
time: 2ms
memory: 14044kb

input:

3
251115773325 363097865287 358609487841
826785 213106 914768
0 1 851938
2 0 231697

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
955485332655
442679377470
secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I

result:

ok 4 lines

Test #3:

score: 0
Accepted
time: 2ms
memory: 16172kb

input:

3
489998888627 318672977903 70353752652
258347 458793 258657
2 1 156120
0 2 524840

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
665922861747
625589728107
secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I

result:

ok 4 lines

Test #4:

score: 0
Accepted
time: 0ms
memory: 14112kb

input:

3
737471938521 315388610250 818943569900
726908 666797 564862
0 1 460302
0 2 785280

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
1072069144737
1308298252761
secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I

result:

ok 4 lines

Test #5:

score: 0
Accepted
time: 0ms
memory: 16916kb

input:

4
201836820267 208957719162 992553400562 566050337171
243994 65303 590123 936951
1 0 259719
0 3 860376
3 2 513584

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
265206697953
537074816507
411763402011
secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I

result:

ok 5 lines

Test #6:

score: 0
Accepted
time: 0ms
memory: 18092kb

input:

4
440719935569 160237864481 704297665373 767778991240
451998 371509 46564 828427
1 0 861960
1 3 830699
2 3 185693

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
830324131649
1289731282865
1205798418251
secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I

result:

ok 5 lines

Test #7:

score: 0
Accepted
time: 0ms
memory: 18432kb

input:

5
148262899914 9382086008 622202345986 443806901161 213829280326
178155 503016 333953 572340 461148
0 3 453941
3 2 84057
4 0 171136
3 1 598794

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
335812903839
244109933604
229134758769
178751633994
secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I

result:

ok 6 lines

Test #8:

score: 0
Accepted
time: 0ms
memory: 18112kb

input:

5
391440982512 969252165920 333946610796 649830522527 902812044171
522045 996458 225429 545971 667483
0 1 701500
0 4 514779
2 1 435377
3 0 919439

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
757655550012
984941935977
871429515267
660178785567
secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I

result:

ok 6 lines

Test #9:

score: 0
Accepted
time: 3ms
memory: 18092kb

input:

17
315015458526 65513576283 829720084774 654640079244 561177336848 463903843105 496216524512 837433489064 92734412345 807145138979 250511786518 915329126804 373916658654 78276842047 121976569238 432447179015 519384539551
696133 642473 231377 987220 589587 337763 790202 785083 249580 108311 73808 892...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
430639669161
417840567823
403532946274
499079112962
498466070651
495984520010
499402357184
501387707132
498265325456
501233852966
474661031682
494612046266
411867746683
497598865088
499819422548
496976423075
secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I

result:

ok 18 lines

Test #10:

score: 0
Accepted
time: 0ms
memory: 18184kb

input:

20
764145449871 794297102632 450082553736 427358261877 587251097098 98567356955 15910789509 321286084089 25839798358 969219436118 975479420690 937908953492 410498404545 180209954689 302999489632 849828117651 171771046425 800442975277 295169929534 146003957886
828538 724406 733109 79844 665172 652593...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
1384833390877
871900130923
1446847771547
1245326093057
924349900475
1046486123707
1063981383357
864751505059
1159443240947
824076089025
1448542597977
1486181926466
1488465960086
1424780088987
1478403270966
1303312410681
1485431478966
1135576549657
1412080059777...

result:

ok 21 lines

Test #11:

score: 0
Accepted
time: 0ms
memory: 16380kb

input:

20
286866076510 666296858783 319893290745 436172872006 579306725182 388780143357 429085643976 163864091991 334402956892 573150791451 971047548996 924353133556 82495144441 364862686518 76783079529 74022380610 978776791995 17833817791 637808249822 150520055702
705613 111460 694926 702547 748042 671482...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
1345583882860
995125125260
815198043938
1295987956432
1034264067144
888082221934
1247814963646
1225117709350
631676569994
1289347270738
404306893004
1347095564962
373415155864
1441975557454
1167058795516
1091947224281
1373264198836
795244013911
1127743556434
se...

result:

ok 21 lines

Test #12:

score: 0
Accepted
time: 0ms
memory: 18564kb

input:

20
161996998737 15089127085 28063038428 574601167323 736141386895 762192247356 788118187801 956063872362 580983462657 839554694910 471536078792 781164874294 363054673222 809510755913 153755418459 78171544930 969593469579 864779185396 408120998971 610129629325
933618 563940 506188 824442 64614 396381...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
1870873819056
1340292002469
2180029603234
1667979150565
2084831816447
1131232525437
1898452835615
1742994070672
2139665843266
1042857179175
2148449164384
1856727805178
2077059488718
1931794896836
1753987714167
1864830429393
1705470391803
1529058594761
197326523...

result:

ok 21 lines

Test #13:

score: 0
Accepted
time: 0ms
memory: 18156kb

input:

20
443174843835 295023765677 175861678382 805210665445 724299682774 889923334441 967560897715 857729286838 7238459275 901083586058 887820756720 681912091803 886476957360 821901344613 222491154905 602669810322 953890359316 822857333786 674877086360 498973934687
505612 0 0 0 913180 49780 0 0 0 0 0 0 0...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
737522649521
561660971139
737522649521
737522649521
737522649521
737522649521
637744453675
737522649521
737522649521
737522649521
737522649521
737522649521
737522649521
737522649521
737522649521
737522649521
608216207263
737522649521
737522649521
secret: XBNN6R...

result:

ok 21 lines

Test #14:

score: 0
Accepted
time: 0ms
memory: 16392kb

input:

20
903941728884 384581140226 453502499061 225752209240 885300062423 504103937164 667092163600 460139456041 109118743857 207444296671 30492319139 345381827436 453966959387 438774451871 860637725773 554202343964 68114298125 781071441103 276250637196 155641220254
635683 100430 56855 0 0 0 0 0 0 142765 ...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
1792855089572
1792855089572
1792855089572
1792855089572
1792855089572
1792855089572
1332715633531
1792855089572
1792855089572
1792855089572
1792855089572
1792855089572
1792855089572
1792855089572
1792855089572
1792855089572
1792855089572
1792855089572
179285508...

result:

ok 21 lines

Test #15:

score: 0
Accepted
time: 3ms
memory: 18436kb

input:

20
1000000000000 7 1000000000000 13 1000000000000 1000000000000 13 5 1000000000000 1 1000000000000 1000000000000 12 6 1000000000000 3 16 18 10 7
1000000 999999 1000000 999997 1000000 1000000 999994 999993 1000000 999991 1000000 1000000 999988 999987 1000000 999985 999984 999983 999982 999981
0 1 691...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
1691757000000
2096049595714
2464529227234
2563764929539
3034748516584
3885772963503
4460798513342
4641761246599
4842046844590
5574182255313
6059278889404
6615402884243
7286465831403
7388442505695
8143381691358
8628101420456
8760501302040
9298906149020
934426333...

result:

ok 21 lines

Test #16:

score: 0
Accepted
time: 0ms
memory: 19080kb

input:

20
10 15 3 4 6 14 1000000000000 8 1000000000000 6 17 1000000000000 0 8 1000000000000 3 1 8 12 16
1000000 999999 999998 999997 999996 999995 1000000 999993 1000000 999991 999990 1000000 999988 999987 1000000 999985 999984 999983 999982 999981
0 1 197220
1 2 436230
2 3 822675
3 4 179287
4 5 533151
5 6...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
197220000010
633449563795
1456122918448
1635409380591
2168558247993
3065579762877
3926280459352
4087349331870
4728183845997
5358220175625
6266419093562
6968130076382
6985723865254
7299499786122
7859580504978
8093366998131
8775636081652
8926139523058
89838064850...

result:

ok 21 lines

Test #17:

score: 0
Accepted
time: 0ms
memory: 18936kb

input:

20
189782427733 285711699711 42839202308 323857876000 491102770223 681197470430 741563850085 770118022455 236662937828 460527070346 322304516149 407948067776 906756099567 581345187071 10531309090 96685590997 305996515557 289017611132 724839278560 441981934920
302755 557771 282205 475620 535221 82793...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
428459937493
646884046018
786290613318
982412880278
1253753718723
1534543706731
1557981114186
1577129287846
1819713270256
1848657061671
1871811459826
1890197068014
1919674253318
1934026950320
1960801118622
1977403784892
2009788771930
2014313798884
2035519586570...

result:

ok 21 lines

Test #18:

score: 0
Accepted
time: 2ms
memory: 16108kb

input:

19
20 4869939079 4869939079 1475687061 1475687061 236769056 120502350962 120502350962 4869939079 4869939079 236769056 696947 285 120502350962 12127756717 4061942829 35001226351 18770227218 120502350962
19715 22 1 6 22 1 1 1 3 14 1 1585 33 1009 14 3213 1 14 14
1 17 843518
0 13 773363
11 4 331406
2 0 ...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
6924732785
6923485436
6926848862
6925037261
6925431365
6924291344
6925858616
2051937220
6924502370
6924477974
6924043043
6924060575
6924508628
6925731629
6927300020
6924874217
6927263339
6925002536
secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I

result:

ok 20 lines

Test #19:

score: 0
Accepted
time: 0ms
memory: 16140kb

input:

20
22046 112845211637 272306351675 112845211637 2955509 7124 272306351675 64027867 595719023 2639297777 49993722591 49993722591 7124 2955509 373774 6 112845211637 360 112845211637 595719023
22772 17 4 1 17 39 8 240284 1 3 810 1 123 3 123 8 810 17 4 17
19 7 180627
18 3 992529
3 5 719911
10 9 467836
1...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
8894945676
8905143436
8886696844
8891169804
8892456132
8896006124
8888993412
8899307516
8886297524
8890040212
8897465804
8889166860
8896770972
8875081844
8871537806
8885825164
8879227404
8878756612
8887548396
secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I

result:

ok 21 lines

Test #20:

score: 0
Accepted
time: 0ms
memory: 18156kb

input:

20
7234739 60192 544422 1777110503 27883 243631 243631 15640571101 372138737 1 7234739 6282190524 1777110503 261389065797 15640571101 498987 243631 261389065797 261389065797 44277685886
15 10168 10168 7 52 1 164 15 3 15 7 1848 106 1 3 1848 1848 31 1 52
12 9 169781
9 14 222132
19 17 534510
18 1 48584...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
13842793
14083415
14476483
15368518
10078604
13682002
16069640
13326538
11194223
12711925
11907882
11364004
16235384
11416355
14442178
14732288
14055539
13356945
14590049
secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I

result:

ok 21 lines

Test #21:

score: 0
Accepted
time: 3ms
memory: 16816kb

input:

2
581307535501 194494107046
0 618074
1 0 748321

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
581307535501
secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I

result:

ok 3 lines

Test #22:

score: 0
Accepted
time: 3ms
memory: 16128kb

input:

3
317357548946 817037494642 528214670493
0 64902 893145
0 1 357981
1 2 51650

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
317357548946
317357548946
secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I

result:

ok 4 lines

Test #23:

score: 0
Accepted
time: 3ms
memory: 16184kb

input:

20
286137165829 558481591168 246286874330 911296048340 206943928979 833902301678 630443861497 193595327826 811311131640 719010619000 144293442797 118799128728 485766833311 668841562 465636799002 325620667444 364206372275 34760004486 956952950350 99526176863
0 377748 929183 766805 131265 816232 69905...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
286137165829
286137165829
286137165829
286137165829
286137165829
286137165829
286137165829
286137165829
286137165829
286137165829
286137165829
286137165829
286137165829
286137165829
286137165829
286137165829
286137165829
286137165829
286137165829
secret: XBNN6R...

result:

ok 21 lines

Test #24:

score: 0
Accepted
time: 0ms
memory: 18696kb

input:

20
82163788626 769878692374 634172669528 307103728653 356345803186 883842875633 942490621740 931464527725 777069481299 984496783620 917129001578 859052618330 862400963887 877474997210 948597241660 967356250775 666322723616 931008804068 850613474811 762733726068
448734 7600 458862 310771 195137 432 1...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
1120791433067
933045570948
1120920076187
685236258054
236084935434
408886565292
704777277552
693121411902
777265767912
592010872086
422408266914
905999026566
838472188044
916287150984
541947414642
1120825893275
781034236044
874160451798
1104301312176
secret: XB...

result:

ok 21 lines

Test #25:

score: 0
Accepted
time: 0ms
memory: 16108kb

input:

20
454763477945 731519170596 100106306072 527835785299 586333054694 122404075974 179340225305 796659339924 910219062243 575223450053 674012377798 824682507041 676452173158 673138007110 915540143084 412056941211 782963066645 766909683853 365405785011 685446767739
101749 200151 272781 32539 475802 914...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
619559210815
561597994714
645888087302
662060683856
547938293213
587256040044
651552250634
636687535726
535045982670
571056378256
694788249706
550253489959
538847935804
488561341526
610054633227
597858794589
533363664704
496833331728
644141667466
secret: XBNN6R...

result:

ok 21 lines

Test #26:

score: 0
Accepted
time: 2ms
memory: 16388kb

input:

19
1000000000000 1000000000000 9 7 1000000000000 1000000000000 1000000000000 0 4 1000000000000 0 1000000000000 9 1000000000000 1000000000000 1000000000000 16 14 18
1000000 1000000 999991 999967 1000000 1000000 1000000 999971 999964 1000000 999955 1000000 999985 1000000 1000000 1000000 999949 999965 ...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
2246706779574
1000003000000
2845384451109
4298736269153
1342142000000
2845374451259
2246714779502
4298746268863
5401500837595
4994819071955
3826519963823
1342147000000
4994811072235
2129591833618
5155113461455
5155123461105
3826522963736
2129596833573
secret: X...

result:

ok 20 lines

Test #27:

score: 0
Accepted
time: 0ms
memory: 16112kb

input:

20
1000000000000 1000000000000 8 15 1000000000000 14 1000000000000 1 2 1000000000000 8 0 1000000000000 19 1000000000000 19 2 1000000000000 1000000000000 1000000000000
1000000 1000000 999991 999984 1000000 999943 1000000 999954 999952 1000000 999994 999962 1000000 999991 1000000 999977 999971 1000000...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
5547034204329
1707689000000
2099243000000
2099237000000
5547035204283
4810335827284
4585104455132
4810337827208
4585102455190
1000007000000
3732846773424
1862897000000
1862904000000
3552746394342
2858701640801
3552748394324
2858693640873
3732841773469
170768700...

result:

ok 21 lines

Test #28:

score: 0
Accepted
time: 0ms
memory: 16784kb

input:

5
10 5 13 4 3
10 7 5 9 1
1 0 1
0 2 5
3 2 10
2 4 3

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
20
60
104
88
secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I

result:

ok 6 lines

Test #29:

score: 0
Accepted
time: 0ms
memory: 16108kb

input:

5
803592518239 68186974641 730900046189 8778205406 702542400572
175201 502769 410584 318494 191251
0 1 422551
1 2 362950
2 3 110170
3 4 649072

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
877623875990
941213078940
960514973110
1074233036582
secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I

result:

ok 6 lines

Test #30:

score: 0
Accepted
time: 2ms
memory: 16108kb

input:

10
422984347234 607725142104 92118155366 486587956717 857158857503 799145939144 657596100723 796939845406 986487843217 23702497547
410761 491391 858697 690385 801672 657901 640039 950942 514882 665242
0 1 736069
1 2 871348
2 3 300958
3 4 249899
4 5 977539
5 6 867002
6 7 648549
7 8 891403
8 9 132040

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
725332785743
1083248561571
1206870370609
1309519133748
1711054030927
2067184639449
2333583275238
2699736862921
2753973745361
secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I

result:

ok 11 lines

Subtask #2:

score: 8
Accepted

Test #31:

score: 8
Accepted
time: 411ms
memory: 88888kb

input:

100000
746699125678 374834842799 250803643493 620187038832 454433387570 406226564003 897157438699 99473514061 734784419618 503968957100 363935477037 277126009840 52078020050 990757079812 847235285349 950784717285 271017141367 861087225700 996035427219 520682200664 282013988419 415183977876 882007771...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
1148030742334
1636760433058
2131282232650
2353514637869
2672707119337
2763307672337
2948215735597
3003888852169
3054019822989
3117708941277
3168979051095
3214001638323
3269286229765
3273106480907
3287227043365
3335909595067
3361857042147
3364657567217
338173015...

result:

ok 100001 lines

Test #32:

score: 0
Accepted
time: 398ms
memory: 96432kb

input:

99999
199936403206 387848228799 134551775973 379377394692 83082074622 879859342494 648173966597 944650644236 499996263229 902471096917 590863268927 40584929392 906714919013 233728229536 286705399400 944576541664 998941389868 610718110168 422760120374 346110411150 812871715907 273865436932 3195132627...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
697799158816
929607027922
1018095086086
1584613641145
1877765365665
2239699168305
2438089294735
2832345576485
2927526977455
2931605531105
3195571528127
3387289232535
3446336905209
3460262616504
3466765570662
3469379135670
3491001700992
3497511229992
35078529774...

result:

ok 100000 lines

Test #33:

score: 0
Accepted
time: 333ms
memory: 82508kb

input:

100000
56998 11671 13811 25717 14858 88240 42443 83814 1000000000000 76043 96812 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 96423 8620 1000000000000 1000000000000 21485 33558 27910 1000000000000 1000000000000 1000000000000 1000000000000 88572 61826 1000000000000 22580 8911...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
350836056998
1268196151308
1761927177655
1764058173393
1823989948523
2593985186768
3180555709767
3397318276233
3865405999596
4662149904880
5500125621852
5885446768602
6399152631492
6942124201722
7571623906662
7578166841232
7924285399671
8079299773002
8229842213...

result:

ok 100001 lines

Test #34:

score: 0
Accepted
time: 316ms
memory: 82540kb

input:

100000
14710 1000000000000 25745 978 1000000000000 62317 22444 1000000000000 8347 1000000000000 33719 65677 98665 62278 1000000000000 1000000000000 37800 67542 58652 1000000000000 1000000000000 25465 12743 31814 1000000000000 92966 22056 1000000000000 1067 24490 9396 1000000000000 17174 19345 31055 ...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
881904014710
1542423014710
2233996657305
3033138260851
3818801903853
3910348508435
4546837711921
5257126450163
6187656014214
6382291457118
6984889464797
7158062625549
7640143939170
8471766190219
9461415324613
9768735329401
10038031058401
10588178773274
10854900...

result:

ok 100001 lines

Test #35:

score: 0
Accepted
time: 301ms
memory: 80768kb

input:

94827
22402 62109 33267 89192 1000000000000 34994 26802 11762 1000000000000 58525 1000000000000 1000000000000 1000000000000 86073 31536 30063 1370 54650 53651 9657 1000000000000 1000000000000 1000000000000 23604 38641 56775 26468 43548 33809 74580 1000000000000 1000000000000 92571 1000000000000 1922...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
506781022402
551887022402
1470591218257
1570575007497
2060293538337
2717768285941
3403176200271
3411252151815
3928574534219
4656961037207
5072868294008
6057420432959
6341875872837
7155710378925
7542794991201
7788796331189
8003459897887
8625555376735
93472504396...

result:

ok 94828 lines

Test #36:

score: 0
Accepted
time: 312ms
memory: 82672kb

input:

100000
13783 1000000000000 1000000000000 28609 82477 1000000000000 66631 31765 79413 54284 21977 98114 1000000000000 1000000000000 12294 21853 99221 67993 13506 87091 96991 1000000000000 1000000000000 1000000000000 78773 52607 1000000000000 12382 51767 1000000000000 1000000000000 1000000000000 58422...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
853169013783
1385838013783
1798533013783
1999567439287
2984456582192
3412540869848
3596703831495
3830162229040
4210874262733
4322399313283
5000201557170
5773654147213
6267343716568
6939334324590
7300134285614
7563570355867
7825168269456
8299451274502
9199219091...

result:

ok 100001 lines

Test #37:

score: 0
Accepted
time: 315ms
memory: 82236kb

input:

99013
25311 10149 92055 18621 30464 42738 57404 26228 89765 49821 86564 88474 58867 28911 70528 47489 77906 45409 2235 839 71138 53163 32524 47258 7663 27526 89795 51926 53217 10161 1675 23003 31180 35502 48694 60585 66045 69603 90269 35308 6985 1668 92978 16505 3949 52801 27047 1634 23493 24546 942...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
952085025311
1608027379517
2267132153360
2377639840457
2476220476597
2852709636880
2887654462155
3242135007002
3781302783391
4649627018224
5172774873258
5666844526907
5954087138822
6202983932033
6393508335183
7292230901632
7607428936290
8402727461395
9320371945...

result:

ok 99014 lines

Test #38:

score: 0
Accepted
time: 322ms
memory: 81196kb

input:

100000
41470 86167 38125 18891 51474 6401 24258 23148 98577 49813 31436 14447 76256 34760 17176 16188 52035 91332 30657 51668 70484 42793 98864 97559 75171 84727 82885 37141 61138 36539 63298 95576 91623 15468 94434 99763 32482 67115 88955 32740 2367 72772 41787 92407 85389 64331 7555 69817 2842 351...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
982964041470
1196103914497
1403658537512
2193759186094
2281861885156
2793868331512
2892810762112
3335226688327
3882143411536
4868076587871
4883500449055
5663599882314
6498826935726
7345643961722
7455916435062
7783321540100
8245342199687
8692981681020
8866105595...

result:

ok 100001 lines

Test #39:

score: 0
Accepted
time: 370ms
memory: 110240kb

input:

100000
8692 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 10000000...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
544720008692
1482018008692
1544720008692
1544720008692
1544720008692
1544720008692
1544720008692
1544720008692
1544720008692
1544720008692
1544720008692
1544720008692
1544720008692
1544720008692
1544720008692
1544720008692
1544720008692
1544720008692
1544720008...

result:

ok 100001 lines

Test #40:

score: 0
Accepted
time: 421ms
memory: 111468kb

input:

100000
0 746699125678 374834842799 250803643493 620187038832 454433387570 406226564003 897157438699 99473514061 734784419618 503968957100 363935477037 277126009840 52078020050 990757079812 847235285349 950784717285 271017141367 861087225700 996035427219 520682200664 282013988419 415183977876 8820077...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 100001 lines

Test #41:

score: 0
Accepted
time: 3ms
memory: 23720kb

input:

2000
1151 1334 1840 1000000000000 1000000000000 1045 1000000000000 1000000000000 1000000000000 1856 1981 1833 897 969 758 1000000000000 1000000000000 93 1000000000000 1558 1000000000000 149 1000000000000 1000000000000 1000000000000 1341 521 908 1728 1148 280 1000000000000 559 1382 1623 1847 10000000...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
177176001151
413063766597
1136196322169
1325421943717
2097386399785
2697575399870
2888523445125
3340140187030
3458635594550
3490658308199
4472517491490
4737095582932
4796571870105
5362595512671
6004147531575
6894476066801
7775018739031
7989309096126
81874807271...

result:

ok 2001 lines

Test #42:

score: 0
Accepted
time: 4ms
memory: 23984kb

input:

2000
223 1955 138 1089 1258 1711 365 288 1204 1221 1508 1068 1000000000000 1000000000000 1446 803 339 1000000000000 1000000000000 653 540 941 302 1597 277 396 1337 951 596 1242 1049 1523 1636 751 1840 1331 1743 169 249 1317 291 1000000000000 1286 1000000000000 1583 79 1265 1383 1000000000000 1588 10...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
671395000223
746629926943
1369712680913
1811472356719
2297627413349
3016863818860
3560388558057
3945247864311
4621788453147
5347105926452
5560308795910
5797764184940
6470689782677
6544219973836
7311009240082
8258980021110
8391627899049
8869526252553
96086594262...

result:

ok 2001 lines

Test #43:

score: 0
Accepted
time: 362ms
memory: 112060kb

input:

100000
53960 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 4124 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 10...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
794322053960
979242053960
1490184053960
1794322053960
1794322053960
1794322053960
1794322053960
1794322053960
1794322053960
1794322053960
1794322053960
1794322053960
1794322053960
1794322053960
1794322053960
1794322053960
1794322053960
1794322053960
17943220539...

result:

ok 100001 lines

Test #44:

score: 0
Accepted
time: 352ms
memory: 111548kb

input:

100000
48572 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
151046048572
390530048572
496638048572
568155048572
771947048572
1151046048572
1151046048572
1151046048572
1151046048572
1151046048572
1151046048572
1151046048572
1151046048572
1151046048572
1151046048572
1151046048572
1151046048572
1151046048572
1151046048572
...

result:

ok 100001 lines

Test #45:

score: 0
Accepted
time: 364ms
memory: 111136kb

input:

100000
74857 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
213306074857
543963074857
1213306074857
1213306074857
1213306074857
1213306074857
1213306074857
1213306074857
1213306074857
1213306074857
1213306074857
1213306074857
1213306074857
1213306074857
1213306074857
1213306074857
1213306074857
1213306074857
12133060748...

result:

ok 100001 lines

Test #46:

score: 0
Accepted
time: 349ms
memory: 111820kb

input:

100000
78250 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 73518 1000000000000 1000000000000 55100 1000000000000 1000000000000 1000000000000 100000000...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
375143078250
606292078250
1307486078250
1375143078250
1375143078250
1375143078250
1375143078250
1375143078250
1375143078250
1375143078250
1375143078250
1375143078250
1375143078250
1375143078250
1375143078250
1375143078250
1375143078250
1375143078250
13751430782...

result:

ok 100001 lines

Test #47:

score: 0
Accepted
time: 356ms
memory: 113272kb

input:

100000
13521 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
700591013521
870268013521
1029737013521
1394707013521
1700591013521
1700591013521
1700591013521
1700591013521
1700591013521
1700591013521
1700591013521
1700591013521
1700591013521
1700591013521
1700591013521
1700591013521
1700591013521
1700591013521
17005910135...

result:

ok 100001 lines

Test #48:

score: 0
Accepted
time: 366ms
memory: 110252kb

input:

100000
80439 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 17201 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 8420 1000000000000 1000000000000 1000000000...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
615987080439
1496532080439
1615987080439
1615987080439
1615987080439
1615987080439
1615987080439
1615987080439
1615987080439
1615987080439
1615987080439
1615987080439
1615987080439
1615987080439
1615987080439
1615987080439
1615987080439
1615987080439
1615987080...

result:

ok 100001 lines

Subtask #3:

score: 13
Accepted

Dependency #1:

100%
Accepted

Test #49:

score: 13
Accepted
time: 2ms
memory: 19344kb

input:

1809
856279318712 573923770766 231314766240 838057293815 615837624088 642314055001 529186192266 735114975824 188022533631 705522116059 66293241642 80790266875 818400153117 432878132657 414186772624 813219150610 674380135313 567649756900 685336620267 432427330409 129149707884 314878433131 62723545891...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
865356382919
891832826220
922189891740
865949278867
911193845526
900972514796
857231888820
887215473790
884698356487
873766350682
890004293768
872920974802
907124181967
910270304238
883773717768
897905159750
893749011548
872362878037
903465417815
882020624847
8...

result:

ok 1810 lines

Test #50:

score: 0
Accepted
time: 5ms
memory: 18736kb

input:

2000
362080722017 64391773041 682471712331 676695958959 895887271122 959380598119 897770120637 326710040539 575291454112 460259118537 3493927490 780900115148 550587292544 207552849653 58531763549 555746221671 136379302477 566208833197 440731668086 220065277766 77625794706 611094628764 342342073845 8...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
500511779784
508713883402
484233580039
497498026665
511607482797
509202628158
503625516164
509316880725
505580607324
500009802980
492837612454
496016864292
497937207309
498006913850
505416370135
484566605399
494075720047
489417534539
459077116114
495419922313
4...

result:

ok 2001 lines

Test #51:

score: 0
Accepted
time: 7ms
memory: 24004kb

input:

1999
6764907296 527537612660 310794974073 72111370112 4288068191 875382229974 812577899034 846344170044 548876585061 322040216332 373664634624 85361160396 653358307855 125433107908 395013751865 956056990442 118482204100 665236693499 211465703493 424013928777 639660101590 303890728613 69235239610 875...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
1224571455322
1229233125370
1228284716794
1188840874021
1227874778692
1229713042570
1230012155068
1176574434982
1229011946164
1229318433766
1228079697982
1228760823058
1223797046155
1228510859296
1216073108716
1228432310248
1229034616228
1229108147272
122782230...

result:

ok 2000 lines

Test #52:

score: 0
Accepted
time: 7ms
memory: 20884kb

input:

1978
609468961591 494245853382 982041846420 139995017973 183782194223 141134797879 886944465859 336281052043 683892768610 46930084342 341690478960 879410815556 276402845231 822688779895 926202320388 742138100753 360813819764 223130038669 415373298314 263434320016 736319102805 512232912749 8080529039...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
3264170122864
3264540603898
3228285903724
3255046193896
3260768535829
3246928354474
3236702403277
3253704652156
3251115730282
3235315673548
3260338435081
3257678485558
3256712690959
3265547930449
3258314533894
3254459727862
3237136804090
3273144582358
323219943...

result:

ok 1979 lines

Test #53:

score: 0
Accepted
time: 4ms
memory: 23768kb

input:

1734
495678236925 702843083614 288935620179 801660402229 977851633172 221879547717 703313690726 246781342621 876096801926 879578647568 157609794593 260147851326 351400808091 40077348422 811975937703 272883881871 84647207516 960195916463 286124043915 866578462170 507704665480 618546716007 24766325015...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
4242698098218
4021245964380
3867817555220
3559315233716
4202274449316
4230809607284
4229448573356
4246139309662
4017933701228
3551995604676
4243031589464
4128607314268
3878731173540
3954700255084
3456980975596
4088557861772
2811300651513
3462011508564
392405735...

result:

ok 1735 lines

Test #54:

score: 0
Accepted
time: 4ms
memory: 16820kb

input:

2000
983373230665 918449198672 10303492591 321463564155 259868217244 497071860083 177238595152 505196361079 280136812451 14785438647 741706838049 840492034452 891358048116 204878717307 966112434421 816636751024 710651278299 782374413740 46048728846 113029682027 800291245470 220023615977 251779902255...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
1001377702655
1001377702655
995814581130
1001377702655
1001377702655
1001377702655
1001377702655
1001377702655
1001377702655
1001377702655
1001377702655
1001377702655
1001377702655
1001377702655
1001377702655
1001377702655
1001377702655
1001377702655
1001377702...

result:

ok 2001 lines

Test #55:

score: 0
Accepted
time: 4ms
memory: 23184kb

input:

2000
598497893366 353992704920 269550703286 910144169120 264482328134 937137045564 498206829246 649648440615 375478976175 941424575384 2840678476 80232842090 607968694608 957355138327 771711227325 280269109623 594394563868 83966588512 175910852383 927977569144 506959711955 553239987432 901234268705 ...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
1021872208709
1021872208709
1021872208709
1021872208709
1021872208709
1021872208709
1021872208709
1021872208709
1021872208709
1021872208709
1021872208709
1021872208709
1021872208709
1021872208709
1021872208709
1021872208709
1021872208709
1021872208709
102187220...

result:

ok 2001 lines

Test #56:

score: 0
Accepted
time: 4ms
memory: 24984kb

input:

2000
638288760587 800184694427 411854258471 497865233100 565634977180 52401673855 140751566574 345707114651 539235067009 147289080931 282417080997 894036770587 624700126890 309499937211 67282129019 674503849489 624855043380 690233968978 413617060311 676666877883 246323787558 453148130852 57789221208...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
1061497256326
1061497256326
1061497256326
1061497256326
1061497256326
1061497256326
1061497256326
1061497256326
1061497256326
1061497256326
1061497256326
1061497256326
1061497256326
1061497256326
1061497256326
1061497256326
1061497256326
1061497256326
106149725...

result:

ok 2001 lines

Test #57:

score: 0
Accepted
time: 5ms
memory: 20588kb

input:

1809
3484793603 3484793603 222975715733 222975715733 1070354 222975715733 222975715733 108964240800 222975715733 222975715733 108964240800 108964240800 108964240800 222975715733 222975715733 222975715733 222975715733 261996787 222975715733 222975715733 222975715733 222975715733 3484793603 2229757157...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
3488943644
3491822573
3491189965
3492801521
3492935143
3489994538
3489602378
3490605647
3492061687
3492213655
3490907939
3490719175
3491578947
3492369435
3491509775
3490488068
3492260445
3490859591
3489528722
3491441565
3490949431
3490818493
3491788853
34888270...

result:

ok 1810 lines

Test #58:

score: 0
Accepted
time: 3ms
memory: 22776kb

input:

2000
8 5567006781 140436852977 122609961010 140436852977 140436852977 122609961010 140436852977 140436852977 10149447627 140436852977 30712144452 140436852977 36941990891 140436852977 140436852977 140436852977 140436852977 1052200347 140436852977 3738866470 10149447627 122609961010 36941990891 10149...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
631002764
629995938
630718694
631652961
629918819
631065781
632404413
631557725
630848862
631405743
630864887
632148931
629991545
632332179
630926324
629878925
631130542
632817163
631187300
630319318
630204520
630205389
630283819
631323334
630468227
630818942
6...

result:

ok 2001 lines

Test #59:

score: 0
Accepted
time: 3ms
memory: 20836kb

input:

1999
8121572 143378663453 143378663453 123789786058 143378663453 64122372674 123789786058 143378663453 64122372674 123789786058 28270790042 143378663453 143378663453 28270790042 123789786058 123789786058 143378663453 13067023234 13067023234 143378663453 143378663453 64122372674 143378663453 12378978...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
30847831
32113389
33626358
32431048
34431847
32003935
30750153
33168594
32447022
29532856
31517650
29967046
32651528
34282602
31886728
32751646
33763484
33798822
30917364
33649897
33393304
31345203
30635566
31884790
31721043
33714776
30574193
34569932
31475472
...

result:

ok 2000 lines

Test #60:

score: 0
Accepted
time: 4ms
memory: 22916kb

input:

1978
10353 2155571 11565980 307 274545092269 16097172198 274545092269 342360744 6 48650 836167573 90310973711 65222666149 117654402 274545092269 342360744 117654402 65222666149 2114753919 11565980 90310973711 39690320 16097172198 65222666149 2626872812 5566902 26 274545092269 90310973711 39690320 34...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
393381243
386670258
397026024
382841505
392531200
385137729
387135213
386458144
393382879
392662938
392133603
396441838
395796443
396309915
385714885
393263798
393172142
382952722
387006824
396144215
388124764
20323443
385897440
373289506
385914312
381758979
39...

result:

ok 1979 lines

Test #61:

score: 0
Accepted
time: 3ms
memory: 25200kb

input:

1734
298 185567867630 70860323593 185567867630 185567867630 185567867630 185567867630 185567867630 185567867630 185567867630 185567867630 185567867630 185567867630 185567867630 185567867630 185567867630 185567867630 185567867630 185567867630 185567867630 185567867630 185567867630 185567867630 185567...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
121153385930
121182462564
121165268164
121183854839
121151145877
121164081321
121186946294
121186457579
121155109155
121166773150
121193903685
121190771700
121150637454
100910916086
121155047407
121188907335
121177363487
121143276963
121118029456
121107041144
1...

result:

ok 1735 lines

Test #62:

score: 0
Accepted
time: 7ms
memory: 22792kb

input:

2000
743778004295 866171880670 312777815804 585953798910 841338450968 933768871775 192756543757 869260076724 426510364815 132432766293 478210012430 333840189484 119382559935 773356955827 181214862233 740635706044 368085201621 344041279163 90915816602 902334255277 483965867045 751700173690 3925092211...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
743778004295
743778004295
743778004295
743778004295
743778004295
743778004295
743778004295
743778004295
743778004295
743778004295
743778004295
743778004295
743778004295
743778004295
743778004295
743778004295
743778004295
743778004295
743778004295
743778004295
7...

result:

ok 2001 lines

Test #63:

score: 0
Accepted
time: 4ms
memory: 24040kb

input:

2000
71223543320 998925089976 999475753152 999781792210 984748021021 998510632658 996321094754 999468176595 998321693730 997067354400 975498830289 999217898005 999211009133 996239740249 979628914676 994789592269 969725313823 997564128616 993476917135 998907635044 999444143811 995612163797 9978909867...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
452531944820
553995503348
603582191396
435700444292
366209147504
501899286860
518082077456
462449427332
609855287984
576803775056
555845635304
492707312552
462083095952
509400884108
391555113056
501039562808
493809929252
581869925216
388186766204
520265032112
6...

result:

ok 2001 lines

Test #64:

score: 0
Accepted
time: 4ms
memory: 23492kb

input:

2000
225979887164 954813457699 978971037391 943095295186 979657746844 971613551301 989043124795 993236858003 985364308180 990007847590 946049668566 961119997934 989423328988 971023557523 992785941933 967248146654 981724747399 991872687262 959837669419 998092207126 997163567990 995992198411 994662795...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
705865513865
885538989353
1105781611069
899682492506
803847981409
997335719034
960888909154
1116878781868
963268016677
913718949681
1100592226765
1141912613990
1231413500309
1032395835697
1033736256051
1436540628488
837643804041
1427488280249
1105902944060
1437...

result:

ok 2001 lines

Test #65:

score: 0
Accepted
time: 7ms
memory: 20960kb

input:

2000
676004371659 902882449137 992145064166 821437086156 975508815526 754919013559 652073821500 589933673077 833441233020 798757308923 984112227136 996347521033 940934393066 508793456395 953032789909 818559090787 926243977390 773690713672 769825325197 567925281005 643748965500 601111818821 988012667...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
1687682379917
1758371739834
1752291571142
1586993792058
1774904337688
1728847040569
1731029829440
1756645454110
1757731054706
1184899980871
1747205565335
1769693394854
1785705596684
1625954163987
1793677470037
1779597476197
1771841634878
1755709079687
177039495...

result:

ok 2001 lines

Test #66:

score: 0
Accepted
time: 5ms
memory: 23008kb

input:

2000
1000000000000 1150 1000000000000 1062 609 1996 100 1000000000000 257 1000000000000 1915 1000000000000 1000000000000 1281 1403 835 1000000000000 1926 1601 122 1000000000000 300 1000000000000 899 1662 1000000000000 1737 1266 106 1000000000000 1000000000000 1369 1869 1000000000000 1437 10000000000...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
271719650326209
475745963075715
33412171124518
284867999716819
72029377053058
115842735195584
324512993907477
152624162578982
286978416896422
134381219500745
244879323406151
425964045484021
204840239850078
185203179738689
108263893739519
157398664690970
9863573...

result:

ok 2001 lines

Test #67:

score: 0
Accepted
time: 4ms
memory: 23240kb

input:

1994
1000000000000 219 1250 1000000000000 1000000000000 1000000000000 1000000000000 357 1000000000000 1000000000000 602 1000000000000 1000000000000 1000000000000 839 719 1000000000000 965 1622 498 1000000000000 285 1572 1574 76 1820 1837 1000000000000 214 1000000000000 1000000000000 1000000000000 10...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
401759632622162
507625632669798
125775479868508
340228757893581
316063881401351
447720715781727
337547478709456
25979148719409
60820652817309
465343142149596
91728417061190
429196410875010
271033447339026
312692863999850
3438277056243
53891243625351
72548326740...

result:

ok 1995 lines

Test #68:

score: 0
Accepted
time: 6ms
memory: 24976kb

input:

1999
1000000000000 1468 1690 1000000000000 1719 1000000000000 1089 1110 1000000000000 1598 790 1000000000000 1579 433 546 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1312 1000000000000 438 1000000000000 1286 1706 721 1000000000000 1000000000000 522 1000000000000 238 1000000...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
254884054758186
319975558478859
186277907852512
204098899919885
325048544997265
211459538629387
395340750511554
204896839343680
187784271163330
442070933828359
345955556614457
164914922889424
472657552230712
357174913157556
3895957861732
138562770484592
8226396...

result:

ok 2000 lines

Subtask #4:

score: 17
Accepted

Test #69:

score: 17
Accepted
time: 124ms
memory: 44828kb

input:

100000
15175010 23519365 21177669 27079342 9089 16784452 29693960 23124925 17048604 10179491 12828214 24992902 8483134 2928073 23807522 7332137 17421520 28460746 1607282 13224363 11900728 11794692 11495061 4687109 23460275 7657982 27417256 16978162 7326803 23083826 24942987 16610314 12147303 2828271...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
16705757
16705757
16705757
16705757
16705757
16705757
16705757
16705757
16705757
16705757
16705757
16705757
16705757
16705757
16705757
16705757
16705757
16705757
16705757
16705757
16705757
16705757
16705757
16705757
16705757
16705757
16705757
16705757
16705757
...

result:

ok 100001 lines

Test #70:

score: 0
Accepted
time: 206ms
memory: 58984kb

input:

100000
3100890 18869608 28100950 22925442 5793993 25887606 5712025 16783243 22490605 7223603 27212909 19749276 22470322 1196820 23308444 12318305 13271014 12850212 19296071 20606196 7506157 10805123 4563831 23592776 15092259 13668900 4494974 28314546 9688373 16660275 26653405 20265376 23328402 65821...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
10152436
10152436
10152436
10152436
10152436
10152436
10152436
10152436
10152436
10152436
10152436
10152436
10152436
10152436
10152436
10152436
10152436
10152436
10152436
10152436
10152436
10152436
10152436
10152436
10152436
10152436
10152436
10152436
10152436
...

result:

ok 100001 lines

Test #71:

score: 0
Accepted
time: 327ms
memory: 74236kb

input:

100000
4898881 18305237 12063130 27374874 12812852 9581585 26656676 18814205 1975580 29732802 12533206 8654169 13281974 29470109 21077771 11147173 20317258 1899590 1231701 1837026 14666014 27529187 25128649 17927919 2393082 29882706 219479 5639515 22520118 24049393 29505846 8318818 8821258 271856 29...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
16181612
16181612
16181612
16181612
16181612
16181612
16181612
16181612
16181612
16181612
16181612
16181612
16181612
16181612
16181612
16181612
16181612
16181612
16181612
16181612
16181612
16181612
16181612
16181612
16181612
16181612
16181612
16181612
16181612
...

result:

ok 100001 lines

Test #72:

score: 0
Accepted
time: 440ms
memory: 80060kb

input:

100000
9658959 1688342 6240220 16196751 15995317 702494 4633562 20709272 8679477 26984234 10222833 13077081 26697649 11469884 29570755 9065586 17884293 18215818 6448726 5520098 6240783 4305747 18040443 2158997 5243864 2522100 16687823 9072593 6894532 14201161 24816372 18644409 28382396 18744169 2241...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
104636130
104636130
104636130
104636130
104636130
104636130
104636130
104636130
104636130
104636130
104636130
104636130
104636130
104636130
104636130
104636130
104636130
104636130
104636130
104636130
104636130
104636130
104636130
104636130
104636130
104636130
1...

result:

ok 100001 lines

Test #73:

score: 0
Accepted
time: 121ms
memory: 45096kb

input:

100000
481659292307 392231013831 600881072802 45680778918 497254838381 693742315003 650297285101 697985684191 905387574080 872450913614 795333685864 6322613767 383178536872 403855157966 479685748303 436426965872 811127952616 108125494897 48164089857 658401197800 865667284396 40015491608 940720973939...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
481672328796
481691087268
481684275730
481688553485
481679985511
481691397690
481663271363
481672030705
481686644783
481671459964
481687816836
481672690271
481677612620
481680259795
481674762449
481677733726
481697163354
481665707220
481676198013
481691042941
4...

result:

ok 100001 lines

Test #74:

score: 0
Accepted
time: 188ms
memory: 59848kb

input:

99123
368085479547 209040965078 341872164496 512883728689 64502160426 292197185605 921658759745 691859574811 117452511459 635433016781 915849642896 577070506352 567345292883 409083250708 3922349146 589841981664 952925955123 232737499162 928422404551 920065732422 963475787142 736180674097 97410604154...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
368140058580
368140496840
368141647144
368134224992
368143195644
368127279034
368141098012
368138851392
368119479205
368138624032
368122165467
368147535980
368123324276
368115651591
368144510392
368125738195
368142018760
368120361485
368139115364
368109549760
3...

result:

ok 99124 lines

Test #75:

score: 0
Accepted
time: 328ms
memory: 74336kb

input:

100000
531539131776 264622902850 982326252487 354041849527 861112725426 726010424034 56930472700 438722738653 730765119449 575201803306 288563828748 118058899083 498146764940 847446096609 702882132423 154425390172 994557129594 650305523837 143800830314 908650692129 669949879758 535681711025 65601431...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
531721212750
531656694760
531718544118
531714379044
531704687152
531729312168
531674322160
531717685656
531730644918
531629494860
531667416156
531661816828
531654860172
531702565396
531699581380
531685749492
531712471348
531718006056
531683331356
531635570944
5...

result:

ok 100001 lines

Test #76:

score: 0
Accepted
time: 408ms
memory: 79064kb

input:

100000
68252977557 107140775554 663737581227 955674405989 880366093281 523256809804 330498449827 140416586809 554297862188 229316498992 851327393258 656014484145 406166050319 840181702979 802843088676 968153381746 876696165642 589273192443 646421978713 676509056604 304849570545 613806791921 56621953...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
68805660997
68695602377
68725703877
68623607377
68701320237
68825551677
68852664497
68838802817
68815499797
68817536167
68881971017
68845022577
68624164937
68674035277
68679964697
68761592577
68853064217
68688488017
68784216797
68688741357
68764855197
688477041...

result:

ok 100001 lines

Test #77:

score: 0
Accepted
time: 410ms
memory: 78980kb

input:

98001
717031222052 331867116389 221882585098 454967007080 223129085016 710978007691 1440804904 400863577822 517713094819 924406511598 929770894084 425299879944 367162704545 61417490984 645160842118 814895080672 439017712275 32898686436 262811271268 516343874528 581688846420 471934819696 686447934916...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
717599955458
717599955458
717599955458
717599955458
717599955458
717599955458
717599955458
717599955458
717599955458
717599955458
717599955458
717599955458
717599955458
717599955458
717599955458
717599955458
717599955458
717599955458
717599955458
717599955458
7...

result:

ok 98002 lines

Test #78:

score: 0
Accepted
time: 346ms
memory: 75432kb

input:

100000
0 4898881 18305237 12063130 27374874 12812852 9581585 26656676 18814205 1975580 29732802 12533206 8654169 13281974 29470109 21077771 11147173 20317258 1899590 1231701 1837026 14666014 27529187 25128649 17927919 2393082 29882706 219479 5639515 22520118 24049393 29505846 8318818 8821258 271856 ...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0...

result:

ok 100001 lines

Test #79:

score: 0
Accepted
time: 113ms
memory: 43372kb

input:

100000
30000000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 434579 0 0 0 0 0 0 0 0 0 0 0 0...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
31105951
31105951
31105951
31105951
31105951
31105951
31105951
31105951
31105951
31105951
31105951
31105951
31105951
31105951
31105951
31105951
31105951
31105951
31105951
31105951
31105951
31105951
31105951
31105951
31105951
31105951
31105951
31105951
31105951
...

result:

ok 100001 lines

Test #80:

score: 0
Accepted
time: 186ms
memory: 54160kb

input:

100000
30000000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
33810751
33810751
33810751
33810751
33810751
33810751
33810751
33810751
33810751
33810751
33810751
33810751
33810751
33810751
33810751
33810751
33810751
33810751
33810751
33810751
33810751
33810751
33810751
33810751
33810751
33810751
33810751
33810751
33810751
...

result:

ok 100001 lines

Test #81:

score: 0
Accepted
time: 279ms
memory: 60620kb

input:

100000
30000000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
40403262
40403262
40403262
40403262
40403262
40403262
40403262
40403262
40403262
40403262
40403262
40403262
40403262
40403262
40403262
40403262
40403262
40403262
40403262
40403262
40403262
40403262
40403262
40403262
40403262
40403262
40403262
40403262
40403262
...

result:

ok 100001 lines

Test #82:

score: 0
Accepted
time: 380ms
memory: 71408kb

input:

100000
30000000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
91929770
91929770
91929770
91929770
91929770
91929770
91929770
91929770
91929770
91929770
91929770
91929770
91929770
91929770
91929770
91929770
91929770
91929770
91929770
91929770
91929770
91929770
91929770
91929770
91929770
91929770
91929770
91929770
91929770
...

result:

ok 100001 lines

Test #83:

score: 0
Accepted
time: 401ms
memory: 71280kb

input:

100000
30000000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
46507333
46507333
46507333
46507333
46507333
46507333
46507333
46507333
46507333
46507333
46507333
46507333
46507333
46507333
46507333
46507333
46507333
46507333
46507333
46507333
46507333
46507333
46507333
46507333
46507333
46507333
46507333
46507333
46507333
...

result:

ok 100001 lines

Test #84:

score: 0
Accepted
time: 123ms
memory: 41052kb

input:

100000
1000000000 0 2362347 40838501 69646720 15684006 77624780 131300416 164246240 33332245 0 28423930 19661685 52949920 1297085 0 0 295032123 41695073 89307321 84790250 111670522 16094746 0 6116544 8297618 27158169 8882836 7709007 26767995 74186140 52850123 33365416 77420680 6359558 33180639 48306...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
1032335734
1032335734
1031215390
1030804030
1032335734
1032335734
1032335734
1032335734
1022480320
1032335734
1032335734
1026124060
1032335734
1032335734
1032335734
1032335734
1032335734
1032335734
1022010340
1032335734
1031779960
1032335734
1032335734
10262191...

result:

ok 100001 lines

Test #85:

score: 0
Accepted
time: 182ms
memory: 53140kb

input:

100000
1000000000 0 283183953 0 32767971 0 0 0 0 0 0 218632750 65401101 128027566 0 0 0 0 0 0 0 0 0 0 6083750 420433880 0 0 3203690 0 0 42663826 34937416 0 25949890 0 243605133 0 0 0 47292921 15163577 414190790 54262970 0 0 408913940 0 0 139890290 0 176254900 40883931 0 255676053 13733003 152468990 ...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
1034547184
1034547184
1034547184
1034547184
1034547184
1034547184
1034547184
1034547184
1034547184
1034547184
1034547184
1034547184
1034547184
1034547184
1034547184
1034547184
1034547184
1034547184
1034547184
1034547184
1034547184
1034547184
1034547184
10345471...

result:

ok 100001 lines

Test #86:

score: 0
Accepted
time: 294ms
memory: 63476kb

input:

100000
1000000000 0 22444490 5319113 0 351436550 0 166175643 0 0 0 0 66953240 0 0 0 0 0 0 0 37038201 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 79365153 0 0 0 0 0 0 0 273149703 0 20410096 0 5098795 0 0 7008639 0 0 0 0 0 0 0 334071920 26239331 351585050 0 208254933 0 0 0 0 0 0 0 0 0 0 0 70171600 0 0 0 64936...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
1056821796
1059161614
1056859563
1059161614
1059161614
1059161614
1059161614
1059161614
1055873169
1059161614
1053373999
1059161614
1059161614
1053650604
1059161614
1059161614
1059161614
1059161614
1059161614
1058987265
1059161614
1059161614
1059161614
10591616...

result:

ok 100001 lines

Test #87:

score: 0
Accepted
time: 379ms
memory: 70288kb

input:

100000
1000000000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
1111952365
1111952365
1111952365
1111952365
1111952365
1111952365
1111952365
1111952365
1111952365
1111952365
1111952365
1111952365
1111952365
1111952365
1111952365
1111952365
1111952365
1111952365
1111952365
1111952365
1111952365
1111952365
1111952365
11119523...

result:

ok 100001 lines

Test #88:

score: 0
Accepted
time: 414ms
memory: 72412kb

input:

100000
1000000000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
1220116656
1220116656
1220116656
1220116656
1220116656
1220116656
1220116656
1220116656
1220116656
1220116656
1220116656
1220116656
1220116656
1220116656
1220116656
1220116656
1220116656
1220116656
1220116656
1220116656
1220116656
1220116656
1220116656
12201166...

result:

ok 100001 lines

Test #89:

score: 0
Accepted
time: 115ms
memory: 40504kb

input:

100000
1000000000000 35676367004 34421862850 58790472081 333330206283 36990364207 62462735590 249958814650 0 0 62442092650 83264238143 39961334590 166630359646 71407025158 32197138596 166618291846 35685472304 39965416630 62444471140 124968558590 499965313160 166592877376 58769594121 76890697413 3223...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
1000039204390
1000060980460
1000033117690
1000003200970
1000048228120
1000037503360
1000041848800
1000039525870
1000012566370
1000058146300
1000069304020
1000038995500
1000037928640
1000022152690
1000061331940
1000049996440
1000030099090
1000034913460
100005576...

result:

ok 100001 lines

Test #90:

score: 0
Accepted
time: 187ms
memory: 51272kb

input:

100000
1000000000000 36913185997 39872826010 58772835111 83283019463 0 62413164430 90858089589 35663540774 47571797739 33285744033 99899479600 52577983977 99917743660 52585316037 36980806837 39930501910 111033339141 35679842444 38397374881 36996919717 43409648649 45384539104 124908110570 41554818086...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
1000130506630
1000128167200
1000052990410
1000057741480
1000057625890
1000089039880
1000053684520
1000058535490
1000052117800
1000053005410
1000101175060
1000057806520
1000082911000
1000050474460
1000062885790
1000070491300
1000078692310
1000042233820
100006528...

result:

ok 100001 lines

Test #91:

score: 0
Accepted
time: 330ms
memory: 63692kb

input:

100000
1000000000000 47540351679 111092119521 142738517727 249859716550 43357085349 49798836350 99858875980 32071086096 38248944901 499870406690 36817672957 47479015659 166524565066 32102795076 32148839766 99879926560 62334039910 58658500371 0 76733039043 199842995630 199791905300 45265722724 767632...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
1000101429520
1000036384420
1000134167980
1000140668020
1000122592990
1000205469940
1000160478610
1000205261860
1000216104910
1000143656920
1000230659620
1000162765540
1000142246200
1000173552880
1000127508190
1000139428030
1000169853520
1000171535920
100009312...

result:

ok 100001 lines

Test #92:

score: 0
Accepted
time: 400ms
memory: 69440kb

input:

100000
1000000000000 0 35036708804 66099396006 39245264260 142480941237 142236577017 54726574345 199281186440 76023091083 39373984600 61460405830 54818980555 49056302180 110740970211 33679764100 49353041510 76048665993 124180426370 124227517070 37555491211 199233946280 65909989206 52093066707 520067...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
1001033746720
1000938763840
1000849592260
1000941643090
1000406066650
1000650430870
1001000977660
1000936529470
1000970390740
1000812922750
1001247615880
1000908571450
1001090030770
1000637098150
1000932188170
1000793291440
1000944815830
1001069208430
100102211...

result:

ok 100001 lines

Test #93:

score: 0
Accepted
time: 390ms
memory: 68676kb

input:

100000
1000000000000 44619945175 50033554581 322973377233 101210915241 0 30771267760 135055820577 115996099190 57412980396 114907182470 42785517530 36159222271 61686478446 27508848670 92817353980 102068299431 24958381653 0 41298796010 192216070730 39631983650 0 43311727107 28069478827 37044893739 32...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
1011140393230
1009019978320
1010486196790
1010538242440
1011083064370
1009266577480
1009065856420
1009047609460
1010008356940
1010136526180
1008108021070
1002376724350
1005734858890
1007585449750
1007781005620
1009680858250
1008673110550
1008116716150
100959474...

result:

ok 100001 lines

Subtask #5:

score: 29
Accepted

Test #94:

score: 29
Accepted
time: 118ms
memory: 45600kb

input:

99281
551670361798 568902251563 418071776626 697635341894 641578820039 117221079324 812766431051 425410617978 663769685693 282144284527 799662290178 749088952784 586626406385 122473825417 459510657357 871705247919 443707710712 735612808044 237919555727 829939639783 122127143240 616906466299 24431898...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
598598746654
598598746654
598598746654
598598746654
598598746654
598598746654
598598746654
598598746654
598598746654
598598746654
598598746654
598598746654
598598746654
598598746654
598598746654
598598746654
598598746654
598598746654
598598746654
598598746654
5...

result:

ok 99282 lines

Test #95:

score: 0
Accepted
time: 211ms
memory: 57608kb

input:

100000
762048253398 544847923340 274220772253 709492519024 93107863549 990677171512 878434244170 777350365410 575870270443 928311965336 349432073756 948390047110 470116186153 495432094032 154258868766 719518553291 580490378718 661863092617 453262793865 191963964294 783054160061 953488248260 99347544...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
764692690700
764692690700
764692690700
764692690700
764692690700
764692690700
764692690700
764692690700
764692690700
764692690700
764692690700
764692690700
764692690700
764692690700
764692690700
764692690700
764692690700
764692690700
764692690700
764692690700
7...

result:

ok 100001 lines

Test #96:

score: 0
Accepted
time: 299ms
memory: 69088kb

input:

94281
131658172659 39811340435 707706551378 488270943344 316094085836 187344969354 859815132521 257455926058 398461451565 636824600504 968337263051 657378201148 381422070176 704193397218 215057852195 143696981366 245020143023 544889243460 19853724068 381481133078 270430609102 661194702920 9327187294...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
513000148750
513000148750
513000148750
513000148750
513000148750
513000148750
513000148750
513000148750
513000148750
513000148750
513000148750
513000148750
513000148750
513000148750
513000148750
513000148750
513000148750
513000148750
513000148750
513000148750
5...

result:

ok 94282 lines

Test #97:

score: 0
Accepted
time: 421ms
memory: 80436kb

input:

98013
219274952148 967847968840 993514312942 249215975388 377408063086 409277664478 513688960578 870781013811 5313297905 381786485971 932846528432 355907313844 568982393234 615505455703 556586556337 580222086746 513159753737 447726612888 849878699364 872433100635 459323693660 591180592643 9928561494...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
397148182990
397148182990
397148182990
397148182990
397148182990
397148182990
397148182990
397148182990
397148182990
397148182990
397148182990
397148182990
397148182990
397148182990
397148182990
397148182990
397148182990
397148182990
397148182990
397148182990
3...

result:

ok 98014 lines

Test #98:

score: 0
Accepted
time: 450ms
memory: 79688kb

input:

100000
793084247557 856407004352 124019471672 758580217324 391555277659 748332370727 824874943785 454763878407 172204390651 200693040566 241971294452 420325832639 276303819033 490288760803 518648078771 428578774460 552156115324 270613111346 564717918818 914239531441 363337438048 359070665547 4058804...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
1347236750935
1347236750935
1347236750935
1347236750935
1347236750935
1347236750935
1347236750935
1347236750935
1347236750935
1347236750935
1347236750935
1347236750935
1347236750935
1347236750935
1347236750935
1347236750935
1347236750935
1347236750935
134723675...

result:

ok 100001 lines

Test #99:

score: 0
Accepted
time: 113ms
memory: 45216kb

input:

100000
186878865231 744364257898 407647146449 178229661742 142659258467 867497410431 566102005411 743741769325 966116499644 374901320569 460953729268 166466122244 599772360298 778326103398 923306353276 541041861259 456336739387 460166266166 277100384431 124520154825 91585321170 808947541069 49305171...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
199304498331
199304498331
199304498331
199304498331
199304498331
199304498331
199304498331
199304498331
199304498331
199304498331
199304498331
199304498331
199304498331
199304498331
199304498331
199304498331
199304498331
199304498331
199304498331
199304498331
1...

result:

ok 100001 lines

Test #100:

score: 0
Accepted
time: 204ms
memory: 56148kb

input:

100000
701868643554 195683029255 191726673386 60711384096 246001015103 235534486089 867356428487 679339700226 266886499198 165357218261 892542762609 49935133853 78861964822 648163497576 458431664651 259806246005 944174571815 556122544299 640157239681 239448194098 270814892412 832337696089 1764039054...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
786865661638
786865661638
786865661638
786865661638
786865661638
786865661638
786865661638
786865661638
786865661638
786865661638
786865661638
786865661638
786865661638
786865661638
786865661638
786865661638
786865661638
786865661638
786865661638
786865661638
7...

result:

ok 100001 lines

Test #101:

score: 0
Accepted
time: 334ms
memory: 72552kb

input:

100000
438739740535 795928502119 872639081700 294554691174 226473457726 440783927287 150198126950 915922926283 516380773321 487345449103 452763239700 807838622400 226343342171 740475572228 441100842060 488895978441 476807788781 262972018901 384528067019 387913043837 839407743741 462422811237 7784206...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
865668346868
865668346868
865668346868
865668346868
865668346868
865668346868
865668346868
865668346868
865668346868
865668346868
865668346868
865668346868
865668346868
865668346868
865668346868
865668346868
865668346868
865668346868
865668346868
865668346868
8...

result:

ok 100001 lines

Test #102:

score: 0
Accepted
time: 418ms
memory: 77816kb

input:

100000
694640698205 388240595320 449732757362 105097389837 586358675392 161335658819 425877820487 740670399542 410740826602 978399832816 430048583471 246136844716 701889327015 378563563646 252509017658 388896850779 573768686022 926987324089 60052463883 832676326751 23069584465 214255472478 621178722...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
4111303149419
4111303149419
4111303149419
4111303149419
4111303149419
4111303149419
4111303149419
4111303149419
4111303149419
4111303149419
4111303149419
4111303149419
4111303149419
4111303149419
4111303149419
4111303149419
4111303149419
4111303149419
411130314...

result:

ok 100001 lines

Test #103:

score: 0
Accepted
time: 450ms
memory: 80084kb

input:

100000
201019608609 385527935698 739383110538 337378782684 721483225535 618691732359 908988547242 991459108034 895675397257 932703191521 917834300839 795973630630 149128715785 276896218486 353219812612 995667048790 530388611932 928955899951 801185000749 128711546773 643155466189 347256189560 2475992...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
2183445012944
2183445012944
2183445012944
2183445012944
2183445012944
2183445012944
2183445012944
2183445012944
2183445012944
2183445012944
2183445012944
2183445012944
2183445012944
2183445012944
2183445012944
2183445012944
2183445012944
2183445012944
218344501...

result:

ok 100001 lines

Test #104:

score: 0
Accepted
time: 341ms
memory: 76536kb

input:

100000
461207015440 477074910334 127605955549 134820278679 890057382559 573472390851 228805638497 91016716163 456111216790 201827979144 262629412298 23148110692 706611869340 591791197580 277224181142 721165258854 396462295378 416270609718 248094333946 179529159354 554660087266 420347767754 981168613...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
461207015440
461207015440
461207015440
461207015440
461207015440
461207015440
461207015440
461207015440
461207015440
461207015440
461207015440
461207015440
461207015440
461207015440
461207015440
461207015440
461207015440
461207015440
461207015440
461207015440
4...

result:

ok 100001 lines

Subtask #6:

score: 26
Accepted

Dependency #1:

100%
Accepted

Dependency #2:

100%
Accepted

Dependency #3:

100%
Accepted

Dependency #4:

100%
Accepted

Dependency #5:

100%
Accepted

Test #105:

score: 26
Accepted
time: 424ms
memory: 79508kb

input:

98274
16830241 26503413 22013672 5854858 19702250 15076038 20173971 29039240 23953814 5459985 6069035 1407436 23410096 5487872 14531149 18598654 14623541 26819189 22461369 21509108 9589801 12557623 18771732 28523332 10618652 1114937 13101773 23140443 9283256 15274146 15174323 8979605 29856171 130895...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
70137604
70137604
70137604
70137604
70137604
70137604
70137604
70137604
70137604
70137604
70137604
70137604
70137604
70137604
70137604
70137604
70137604
70137604
70137604
70137604
70137604
70137604
70137604
70137604
70137604
70137604
70137604
70137604
70137604
...

result:

ok 98275 lines

Test #106:

score: 0
Accepted
time: 106ms
memory: 43016kb

input:

98103
821321173992 61162854147 743685672637 113290418316 624543227166 374649999069 631489538021 537957340542 830436717859 779284772750 847471134158 114400952125 998140694564 527179599045 85367344451 403180244636 821060689332 163825990207 563362490506 83392420686 565626914804 773839077110 85220493717...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
922320127105
922047691068
914200324857
929144918570
929324181620
928780711114
922848305503
921826036843
926408350793
921307807075
886407456261
923537307572
926793062438
926222061132
922189430889
918672189098
926940646297
925817858932
919579853264
921034645226
9...

result:

ok 98104 lines

Test #107:

score: 0
Accepted
time: 199ms
memory: 56944kb

input:

100000
688376807303 86361857805 770963016865 793174502691 235092788878 333468236068 235177218592 28023347988 564470462076 242113611911 738713565923 730502414627 70308549706 976285385640 988259533599 396074332388 531475701229 350809522405 727442515067 453360179239 540254045326 81290342416 5088993273 ...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
919539567221
920977721033
924747526883
924618204209
922913581481
921864315815
924520540337
920218867619
923482612811
923289688451
922163104715
922656610457
926059389905
924030302795
922661304095
922123722905
923116966595
924027049679
924046739327
925518384647
9...

result:

ok 100001 lines

Test #108:

score: 0
Accepted
time: 311ms
memory: 72400kb

input:

99104
600210817989 610315135092 422929624861 994655545443 189268873611 264998873037 395755536214 973145045732 874845717089 539612829949 407470186910 642986279004 396791348015 997219775287 116911939189 622288521958 680334525552 340848344509 88545356579 666477488173 366172513240 271339119531 972732085...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
770835520365
782603499813
791374748253
794952782998
779113017429
791305730781
777196585023
792201307551
792703383163
795583870582
793987755385
779470926405
788985673665
773214061209
785962149531
760716545609
773531348541
784162386681
792455749899
788835579729
7...

result:

ok 99105 lines

Test #109:

score: 0
Accepted
time: 378ms
memory: 78220kb

input:

97103
453777778149 968304672984 630511845214 654411789858 598932078862 972462638520 96823146666 780750324334 840930317503 495862576201 669579088727 966791024998 39878057829 666896026181 920884415492 452901907166 29994040719 773125118275 956380792559 224609549297 502581725036 711191448893 42823699250...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
3141876970109
3142184692839
3142202118919
3142200923599
3139424597524
3140582122709
3142027163019
3142656672879
3141844497319
3142199017429
3142516594619
3141630664399
3142021655419
3131488330855
3131846429182
3142027194729
3141901918459
3141642490619
314224180...

result:

ok 97104 lines

Test #110:

score: 0
Accepted
time: 426ms
memory: 82408kb

input:

100000
249715311821 422409605681 578273411757 189450631044 689904509280 786304741737 760066354940 19663983206 525055290864 844941948960 707001167905 758904969256 147407566576 496769076076 503401571847 545798328217 188860257279 63674143628 292438173998 836106832827 642874101188 531454921285 182837139...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
1941277374523
1930040574379
1893938408882
1941057991243
1913060187235
1864399432805
1943974150579
1933116650563
1909646413171
1876793919083
1823646924971
1919210934187
1953129345859
1820123848088
1923836101699
1927053530443
1937292405619
1924670182987
192894397...

result:

ok 100001 lines

Test #111:

score: 0
Accepted
time: 112ms
memory: 41472kb

input:

91809
16050783193 65290266015 16050783193 65290266015 167561360687 65290266015 124865318375 21289262818 167561360687 167561360687 124865318375 167561360687 716436224 124865318375 1379589 124865318375 167561360687 65290266015 4033189033 124865318375 65290266015 21289262818 124865318375 167561360687 2...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
16054751376
16055084736
16053425117
16054297417
16054202413
16053800428
16054539706
16054607643
16053873500
16053030411
16054434809
16053578946
16054208352
16053890037
16053191015
16053695507
16054265426
16054021928
16054877145
16054380494
16053687588
160548372...

result:

ok 91810 lines

Test #112:

score: 0
Accepted
time: 199ms
memory: 56348kb

input:

100000
4 298681885 13817133212 186540883219 56280 22414086998 75626337862 13817133212 186540883219 22414086998 186540883219 75626337862 131605 36952125283 186540883219 298681885 31510 186540883219 36952125283 75626337862 22414086998 75626337862 2036550755 22414086998 186540883219 36952125283 2036550...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
2086439
1892606
1085131
1296591
2204652
2656121
2619351
2024126
1463764
2942190
2198090
3088939
5237818
2390707
1730030
3883435
2452224
3412118
2896560
2566199
3053956
1668782
2059031
2528579
2851539
1905334
3189922
3452138
2270994
3377317
5089329
1606754
19947...

result:

ok 100001 lines

Test #113:

score: 0
Accepted
time: 322ms
memory: 71820kb

input:

99999
15616075202 199079069291 199079069291 199079069291 199079069291 199079069291 199079069291 199079069291 199079069291 199079069291 79843660012 199079069291 199079069291 199079069291 79843660012 199079069291 199079069291 199079069291 79843660012 199079069291 199079069291 199079069291 199079069291...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
15711237592
15712581914
15714992425
15708685023
15711042290
15711231367
15713878686
15714791819
15705201831
15711397438
15713436427
15710679534
15710570523
15712802205
15707352822
15714787314
15710478944
15711208416
15712422089
15711519049
15707711451
157142617...

result:

ok 100000 lines

Test #114:

score: 0
Accepted
time: 401ms
memory: 67168kb

input:

97328
71781782 424395546 2106863706 13551956195 2106863706 258195635116 124781547620 13327 71781782 179721 771830 543 263042720 124781547620 121960 6 50422397 258195635116 2106863706 179721 2106863706 1579727 121960 54 2302133 121960 71781782 179721 586137617 458089 64541580897 226 258195635116 4580...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
1145782321
1159314758
1158326101
1161350444
1158990514
1157424358
1161511783
1156194341
1164951641
1160538102
1163119968
1159206488
1163762733
1157476471
1160152381
1157869497
1158745912
1161931548
1171593600
1157482893
1162691862
1148877888
1157845469
11580992...

result:

ok 97329 lines

Test #115:

score: 0
Accepted
time: 384ms
memory: 79344kb

input:

93734
2397621478 225915437698 225915437698 225915437698 225915437698 225915437698 225915437698 225915437698 225915437698 225915437698 225915437698 225915437698 225915437698 225915437698 225915437698 225915437698 225915437698 225915437698 225915437698 225915437698 225915437698 225915437698 2259154376...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
243468422415
243486906341
243424959094
243464685136
243315802490
243484876163
243433514627
243404880826
243479255984
243446858170
243480755257
243473567930
243432272677
243294757843
243430785148
243471983459
243480902749
243454346745
243396348160
243465838510
2...

result:

ok 93735 lines

Test #116:

score: 0
Accepted
time: 490ms
memory: 97828kb

input:

100000
117701836614 999274152129 999963489762 999771403420 999459243564 999730084271 999848763292 999805855391 999640966721 999962037947 999917868772 999795338884 999344105872 999794702471 999559148233 999867060152 999893199837 998448547409 995810597571 999810732883 997862856906 999653743795 9951673...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
160759667689
173348351769
171898853075
176659542526
165346803837
168406675022
164216494951
159833249910
160670254603
162503749469
178158316215
165801180158
160929883560
175371232223
164893938935
172829449483
140393378732
140478544799
160304963096
162835488842
1...

result:

ok 100001 lines

Test #117:

score: 0
Accepted
time: 499ms
memory: 99448kb

input:

100000
785826683337 998012826231 991422101038 996328384117 989603663636 991362277874 740853849381 983433000616 993386455404 997524723375 997699155042 979658280453 998055912282 993258593153 985757028233 981435050205 982146672161 893639273749 717623369167 993094540249 995086924046 995279547683 9950928...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
1855946383986
1838156775834
1858174021686
1855779403458
1847411702508
1833119283774
1846743102102
1850349754434
1849899581868
1853498858826
1860385783872
1862940385038
1848936026604
1841478707820
1841212979706
1840678406760
1852594641408
1841118465018
183911786...

result:

ok 100001 lines

Test #118:

score: 0
Accepted
time: 531ms
memory: 99364kb

input:

100000
463532745776 975335187627 960364170186 730557242451 966229235815 968268848455 790071772760 951301717327 967744359267 969848920785 957898036890 590785994881 984757801356 985168039044 867378216572 959912216663 879303177312 953572013367 806925442417 616744481401 953082057213 857477535686 9634392...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
2275369655560
2268840902800
2278886609950
2213204280640
2301741285119
2308309487673
2304135178963
2250812618530
2263845708310
2227897197550
2238651968410
2263106991160
2222505388300
2221730611600
2241868399690
2257140283900
2309216519513
2232751135300
230560189...

result:

ok 100001 lines

Test #119:

score: 0
Accepted
time: 517ms
memory: 100132kb

input:

100000
413418219687 968475395353 817078236134 825746985289 440894344153 598357594640 838445123121 778020409372 819978024026 748585000357 898883940636 805683876538 909484225888 555470944219 376996924090 851703065835 789255251346 560943391124 204387510889 199911494789 773403095218 593516421481 8628552...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
1874258891269
1863744025285
1864963532077
1865881844941
1856433759637
1867084286741
1865977288821
1867698006197
1862950085677
1868652297885
1869653820477
1870376955477
1861191560517
1859413640429
1870257281853
1869192616405
1871948051997
1870511753805
187218962...

result:

ok 100001 lines

Test #120:

score: 0
Accepted
time: 461ms
memory: 77924kb

input:

100000
1000000000000 1000000000000 1000000000000 1000000000000 60531 9358 47474 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 41805 33183 47670 1000000000000 1000000000000 55358 1000000000000 6889 1000000000000 1000000000000 15177 25408 66322 84104 50604 49929 75786 100000000...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
21588669044703597
18415946724669115
12376802148259243
1914731465489502
21518963228832597
4903973724279438
17282366418548293
2309672883327391
19219563234109734
21942658766205664
8755277023567227
20219861839515232
17713488497372964
16760703523275533
2036624491504...

result:

ok 100001 lines

Test #121:

score: 0
Accepted
time: 424ms
memory: 76288kb

input:

94872
1000000000000 1000000000000 1000000000000 31598 1000000000000 1000000000000 20361 67125 1000000000000 1000000000000 8697 1000000000000 76910 1000000000000 11114 1000000000000 8433 48812 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 76915 1000...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
20030011265083668
9712498721196729
2661335794826882
19632116140946833
14430806871342888
12544818568143085
11955997338573430
6838909767729759
7131423535626273
16885570792177152
10241282631030460
19351814870348655
16694867358832024
6987912049742612
14991598896810...

result:

ok 94873 lines

Test #122:

score: 0
Accepted
time: 444ms
memory: 77720kb

input:

99103
1000000000000 1000000000000 8540 1000000000000 97052 1000000000000 98648 1000000000000 75052 2296 89819 61039 87239 24739 32635 1000000000000 30273 1000000000000 1000000000000 1000000000000 1000000000000 1000000000000 35649 1000000000000 1000000000000 87347 58833 1292 1000000000000 10000000000...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
7959772333240948
15867408047630507
2865462007546977
7169708004232321
13227454196033417
10641541791705209
3556339805863705
8839837063254442
20239700452150537
1978495520809128
16138744027232900
15833967493637853
21383256188438967
6333078984986580
9924061537131605...

result:

ok 99104 lines

Test #123:

score: 0
Accepted
time: 447ms
memory: 77328kb

input:

98911
1000000000000 1000000000000 1000000000000 61102 69768 1000000000000 1000000000000 93232 19296 1000000000000 51217 32061 1000000000000 1000000000000 1000000000000 32121 1000000000000 74695 84606 1000000000000 1000000000000 32589 1000000000000 1000000000000 95890 1000000000000 1000000000000 8397...

output:

secret: XBNN6R0Jnospxlfz11GWxd4ldkzb0I
2171610645167747
5808427358050356
19231100202178470
19812101455196326
12056595967297420
14438750564198880
18001948454801684
5245080451896824
12223376489581869
7613261762573079
1626015161682226
5384314313641628
5229942752345893
19529764429865328
1695610884041711...

result:

ok 98912 lines