QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#783901 | #6660. 택시 여행 | Zaunese | 17 | 982ms | 26616kb | C++14 | 2.4kb | 2024-11-26 12:12:03 | 2024-11-26 12:12:03 |
Judging History
answer
#include<cstdio>
#include<cstring>
#include<algorithm>
#include<queue>
#define fi first
#define se second
#define mkp std::make_pair
using ll=long long;
using std::max;
using std::min;
template<class T> void cmax(T&a,T b){a=max(a,b);}
template<class T> void cmin(T&a,T b){a=min(a,b);}
std::vector<ll> travel(std::vector<ll> A, std::vector<int> B, std::vector<int> U,std::vector<int> V, std::vector<int> W){
int N=A.size();
std::vector<std::vector<std::pair<int,int> > > G(N);
std::vector<ll> vdep(N);
std::vector<std::vector<int> > fp(17,std::vector<int>(N));
std::vector<int> dfn(N);
int dfc=0;
auto dmin=[&](int x,int y){return dfn[x]<dfn[y]?x:y;};
auto dfslca=[&](auto&&self,int x,int p)->void{
fp[0][dfn[x]=dfc++]=p;
for(auto t:G[x]) if(t.fi!=p){
vdep[t.fi]=vdep[x]+t.se;
self(self,t.fi,x);
}
};
auto getlca=[&](int x,int y){
if(x==y) return x;
if((x=dfn[x])>(y=dfn[y])) std::swap(x,y);
int lg=std::__lg(y-x++);
return dmin(fp[lg][x],fp[lg][y-(1<<lg)+1]);
};
auto getdis=[&](int x,int y){
return vdep[x]+vdep[y]-2*vdep[getlca(x,y)];
};
for(int i=0;i<N-1;++i){
G[U[i]].emplace_back(V[i],W[i]);
G[V[i]].emplace_back(U[i],W[i]);
}
dfslca(dfslca,0,0);
for(int j=1;j<17;++j) for(int i=0;i+(1<<j)-1<N;++i){
fp[j][i]=dmin(fp[j-1][i],fp[j-1][i+(1<<j-1)]);
}
const ll INF=0x3f3f3f3f3f3f3f3f;
std::vector<ll> f(N,INF);
std::vector<int> p(N);
for(int i=0;i<N;++i) p[i]=i;
std::sort(p.begin(),p.end(),[&](int x,int y){
return B[x]>B[y];});
f[0]=0;
std::vector<ll> dis(N);
using P=std::pair<ll,std::pair<int,int> >;
std::priority_queue<P,std::vector<P>,std::greater<P> > q;
for(int wtf=0;wtf<2;++wtf)
for(int i=0;i<N;){
int j=i;
for(;j<N&&B[p[i]]==B[p[j]];++j);
std::fill(dis.begin(),dis.end(),INF);
for(int k=i;k<j;++k){
q.emplace(dis[p[k]]=A[p[k]]+f[p[k]],mkp(p[k],p[k]));
}
while(q.size()){
auto p=q.top();
q.pop();
int x=p.se.fi;
if(dis[x]<p.fi) continue;
for(auto e:G[x]) if(dis[e.fi]>dis[x]+e.se*B[p.se.se]){
q.emplace(dis[e.fi]=dis[x]+e.se*B[p.se.se],mkp(e.fi,p.se.se));
cmin(f[e.fi],dis[e.fi]);
}
}
i=j;
}
return std::vector<ll>(f.begin()+1,f.end());
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 0
Time Limit Exceeded
Test #1:
score: 0
Time Limit Exceeded
input:
2 684124582850 713748627948 74361 256955 0 1 661088
output:
Unauthorized output
result:
Subtask #2:
score: 0
Time Limit Exceeded
Test #31:
score: 0
Time Limit Exceeded
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:
Unauthorized output
result:
Subtask #3:
score: 0
Skipped
Dependency #1:
0%
Subtask #4:
score: 17
Accepted
Test #69:
score: 17
Accepted
time: 567ms
memory: 26480kb
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: 17
Accepted
time: 799ms
memory: 25736kb
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: 17
Accepted
time: 860ms
memory: 25496kb
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: 17
Accepted
time: 844ms
memory: 24856kb
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: 17
Accepted
time: 700ms
memory: 26232kb
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: 17
Accepted
time: 788ms
memory: 25632kb
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: 17
Accepted
time: 952ms
memory: 24856kb
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: 17
Accepted
time: 815ms
memory: 25156kb
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: 17
Accepted
time: 532ms
memory: 24072kb
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: 17
Accepted
time: 543ms
memory: 25512kb
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: 17
Accepted
time: 843ms
memory: 26456kb
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: 17
Accepted
time: 886ms
memory: 25944kb
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: 17
Accepted
time: 982ms
memory: 25596kb
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: 17
Accepted
time: 925ms
memory: 24856kb
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: 17
Accepted
time: 915ms
memory: 24984kb
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: 17
Accepted
time: 835ms
memory: 26616kb
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: 17
Accepted
time: 882ms
memory: 25772kb
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: 17
Accepted
time: 955ms
memory: 25336kb
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: 17
Accepted
time: 930ms
memory: 24952kb
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: 17
Accepted
time: 905ms
memory: 24944kb
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: 17
Accepted
time: 853ms
memory: 26472kb
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: 17
Accepted
time: 897ms
memory: 25944kb
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: 17
Accepted
time: 954ms
memory: 25388kb
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: 17
Accepted
time: 950ms
memory: 24976kb
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: 17
Accepted
time: 949ms
memory: 24956kb
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: 0
Time Limit Exceeded
Test #94:
score: 0
Time Limit Exceeded
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:
Unauthorized output
result:
Subtask #6:
score: 0
Skipped
Dependency #1:
0%