QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#324174 | #4830. Transfer of Duty | ucup-team1069# | AC ✓ | 332ms | 56704kb | C++23 | 3.8kb | 2024-02-10 16:36:32 | 2024-02-10 16:36:32 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
map<int, int> lav;
const int N = 1e6 + 1;
int val[N];
int used[N];
const int L = 90;
struct H {
unsigned long long x[L];
H() {
for (int i = 0; i < L; ++i) {
x[i] = 0;
}
}
H(int v) {
mt19937_64 Rng(v);
for (int i = 0; i < L; ++i) {
x[i] = Rng();
}
int p = val[v];
for (int i = 0; i < 4; ++i) {
x[p % L] = 0;
p /= L;
}
}
H operator^(const H &q) {
H r;
for (int i = 0; i < L; ++i)
r.x[i] = x[i] ^ q.x[i];
return r;
}
int get() {
int pos = 0, now = 0;
for (int i = 0; i < L; ++i) {
if (x[i] == 0) {
now++;
}
}
if (now == L) return 0;
if (now != 4) return -1;
for (int i = 0; i < L; ++i) {
if (x[i] == 0) {
pos *= L;
pos += i;
}
}
H check(lav[pos]);
for (int i = 0; i < L; ++i) {
if (this->x[i] != check.x[i]) return -1;
}
return lav[pos];
}
void print() {
for (int i = 0; i < L; ++i) {
cerr << x[i];
continue;
string s;
unsigned long long kek = x[i];
while (kek) {
s += "01"[kek % 2];
kek /= 2;
}
while (s.size() < 64) s += "0";
reverse(s.begin(), s.end());
cout << s;
}
cout << '\n';
}
};
string out(H r) {
string kek = "";
for (int i = 0; i < L; ++i) {
for (int k = 63; k >= 0; --k) {
if ((r.x[i] >> k) & 1)
kek += "1";
else
kek += "0";
}
}
string ans;
for (int i = 0; i < 5760; i += 6) {
int val = 0;
for (int j = 0; j < 6; ++j) {
if (kek[i + j] == '1') val += (1 << j);
}
ans += char(33 + val);
}
return ans;
}
H in(string s) {
string kek;
for (int i = 0; i < 960; ++i) {
int x = int(s[i]) - 33;
for (int j = 0; j < 6; ++j) {
if ((x >> j) & 1) {
kek += "1";
}
else {
kek += "0";
}
}
}
H r;
for (int i = 0; i < 5760; i += 64) {
for (int j = 63; j >= 0; --j) {
if (kek[i + (63 - j)] == '1') {
r.x[i / 64] |= (1LL << j);
}
}
}
return r;
}
int main() {
ios_base::sync_with_stdio(0), cin.tie(0);
for (int i = 0, now = 0; i < L; ++i) {
for (int j = i + 1; j < L; ++j) {
for (int k = j + 1; k < L; ++k) {
for (int l = k + 1; l < L; ++l) {
now++;
val[now] = (((i * L + j) * L + k) * L + l);
lav[(((i * L + j) * L + k) * L + l)] = now;
if (now == 1000000) break;
}
if (now == 1000000) break;
}
if (now == 1000000) break;
}
if (now == 1000000) break;
}
string s;
cin >> s;
if (s == "start") {
int n;
cin >> n;
H now;
while (n--) {
int x;
cin >> x;
now = now ^ H(x);
cout << now.get() << '\n';
}
cout << out(now) << '\n';
}
else {
string s;
cin >> s;
int n;
cin >> n;
H now = in(s);
while (n--) {
int x;
cin >> x;
now = now ^ H(x);
cout << now.get() << '\n';
}
}
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 179ms
memory: 56588kb
input:
start 5 10 14 10 12 10
output:
10 -1 14 -1 -1 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!CX6S<_5_4!=8ORVVIKO#_UN7WCP3[_;48WYJ:=1'U0ZV)HEH3TIG@CE6(8?^TX&"M!;Y/G<[W+#+YWM?FUO@!7U5\*>8LBD`QZV_<%0*PUW+L<_YG<_JBUX$D=[8Y[`D+:[;%XR!!J%^"J8W6Y*@/OQ.%X']1N@WT*[H?18B$+$)\H<;+,764<55O0XALMP)2_)O\%2'A`HC'5YK492SNA2.$SOZ=EBAG*JMUC6;K>"SP#-^4%N3+9"?7:3H>...
input:
resume !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!CX6S<_5_4!=8ORVVIKO#_UN7WCP3[_;48WYJ:=1'U0ZV)HEH3TIG@CE6(8?^TX&"M!;Y/G<[W+#+YWM?FUO@!7U5\*>8LBD`QZV_<%0*PUW+L<_YG<_JBUX$D=[8Y[`D+:[;%XR!!J%^"J8W6Y*@/OQ.%X']1N@WT*[H?18B$+$)\H<;+,764<55O0XALMP)2_)O\%2'A`HC'5YK492SNA2.$SOZ=EBAG*JMUC6;K>"SP#-^4%N3+9"?7:3H>:A$PC-M#...
output:
-1 -1 -1 277 0 12
result:
ok
Test #2:
score: 100
Accepted
time: 185ms
memory: 56252kb
input:
start 1 1
output:
1 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!AGLYK4X]DZ==J=$N5H*<BE?%-<MGIW,W#SQ'SH9`IU1GYB"UM*P9)!&F8Q[!H)"A!;H:?M=_X^!%HB^'G,NR-W427B6)1GY:+(^]$I_ZC7'<.N\IJ<Q#]/]`I4UIG6+GJ5N8CT,FM<$/<"H+76P$28?[X84*<[email protected]?#<`U8)*81K%8@:`]^X\/YHYI^<OLC87-`OAAC)H2#!-=X-IW+JXMP!-R-:-/@]&1WE0M9B8MX*$E<;DU)WYYJ2<D-Q...
input:
resume !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!AGLYK4X]DZ==J=$N5H*<BE?%-<MGIW,W#SQ'SH9`IU1GYB"UM*P9)!&F8Q[!H)"A!;H:?M=_X^!%HB^'G,NR-W427B6)1GY:+(^]$I_ZC7'<.N\IJ<Q#]/]`I4UIG6+GJ5N8CT,FM<$/<"H+76P$28?[X84*<[email protected]?#<`U8)*81K%8@:`]^X\/YHYI^<OLC87-`OAAC)H2#!-=X-IW+JXMP!-R-:-/@]&1WE0M9B8MX*$E<;DU)WYYJ...
output:
0
result:
ok
Test #3:
score: 100
Accepted
time: 182ms
memory: 56472kb
input:
start 1 1000000
output:
1000000 ;S!V7)D6?R2*N/ZQ+:IW<BC6I'!BZ(?5F@VJUT+$'`67)SBIK4'2+C!G;9!/D/$*3AYD%`+'NP27O\QZS(YQ:$ZS$Q"C[%!BEW/Y=/JA1U,!!!!!!!!!!%F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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!...
output:
1000000 0
result:
ok
Test #5:
score: 100
Accepted
time: 196ms
memory: 56024kb
input:
start 3 1 2 3
output:
1 -1 -1 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!N)&<<"7P*5W;:V)P2VS#^/>Y6$W'\'>+`+C=I@V*PWF:^92Z<47V!2!>,E*G]U5+E(&XB53M6M;NCZ!V\PJX:=X;-41YD:H7J^Y7'5;)+/[$`"<>:,#W1C6O6H?KXJ;.5([4:9(+(FXP(OPY;)!G]F?RZWR5^[8M<)&]8>%N?EPG_1-'AO8E.3WBA8(&!JCQ:,0K58VD]C+U.E,;P"#!CQE?XFU]!PV)C=0>[!B\TR#=G:XN7^R8KS!G^<.J;OS;WY`^...
input:
resume !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!N)&<<"7P*5W;:V)P2VS#^/>Y6$W'\'>+`+C=I@V*PWF:^92Z<47V!2!>,E*G]U5+E(&XB53M6M;NCZ!V\PJX:=X;-41YD:H7J^Y7'5;)+/[$`"<>:,#W1C6O6H?KXJ;.5([4:9(+(FXP(OPY;)!G]F?RZWR5^[8M<)&]8>%N?EPG_1-'AO8E.3WBA8(&!JCQ:,0K58VD]C+U.E,;P"#!CQE?XFU]!PV)C=0>[!B\TR#=G:XN7^R8KS!G^<.J;OS;WY`^=...
output:
-1 -1
result:
ok
Test #6:
score: 100
Accepted
time: 196ms
memory: 54680kb
input:
start 5 483440 800458 959493 679027 187008
output:
483440 -1 -1 -1 -1 5C%JVK6NZA"Y+SUT%N3&+_&TEX6:"D-F\G1>#AE%1R8<*:N!3)Z\C7\F2("$]=JE55^NE:E(![3%](0KB'$C*8H>!L=%(L=FU@BWZ?T+I_XCC!R'1UDYN#O;\!,K]X#5*]=*LUDML*(]LX)90:*V13&?""19FM]IN4AS`<@Y\&6V$$<Z)SG@\>]XW]6K=9[3VZTANB$D]%!R08-$E81TX:=:P<_IFY5C3L]M-!H<(R16/&\.&AO>;9L,8,8=Z_M<&<IP"M9'U#S3@PYHV%^U&"_1Y...
input:
resume 5C%JVK6NZA"Y+SUT%N3&+_&TEX6:"D-F\G1>#AE%1R8<*:N!3)Z\C7\F2("$]=JE55^NE:E(![3%](0KB'$C*8H>!L=%(L=FU@BWZ?T+I_XCC!R'1UDYN#O;\!,K]X#5*]=*LUDML*(]LX)90:*V13&?""19FM]IN4AS`<@Y\&6V$$<Z)SG@\>]XW]6K=9[3VZTANB$D]%!R08-$E81TX:=:P<_IFY5C3L]M-!H<(R16/&\.&AO>;9L,8,8=Z_M<&<IP"M9'U#S3@PYHV%^U&"_1Y3%MJ;9(G0F"R...
output:
-1 -1 -1 -1 -1 -1 -1 -1
result:
ok
Test #7:
score: 100
Accepted
time: 182ms
memory: 56300kb
input:
start 68 901287 581649 963302 839936 728540 414441 916931 567596 695928 364562 839701 726560 34000 85414 129234 413159 976576 799600 479209 808330 182632 685443 41419 207533 762418 206283 144088 679114 945142 919478 220106 992468 483248 197576 129732 123083 987094 712824 650777 907335 206313 958433 ...
output:
901287 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 NQ5B:V3SVS.)10QTB9SEU2BJX4/$-38P48XDVN#02*,'\;<7*@SE;0*`U`W2JM4#W7`#RNM8=MZ4?Z0;AP1__-26KMC^...
input:
resume NQ5B:V3SVS.)10QTB9SEU2BJX4/$-38P48XDVN#02*,'\;<7*@SE;0*`U`W2JM4#W7`#RNM8=MZ4?Z0;AP1__-26KMC^2BI\K:<)`#.0*NAA;42ZL=?54[B=^;*)'16FQIJ[=VXZ3#Y;[>Y!(YR24;0WDYRA_HMF%;QX)`5^G="4*!:PU10KRITFN6,>.VS]CDQ^/-N+,3"[P+[O!9P_9SW%MS6)*T;T2IGR2/4R.)K#!NC\?DA[BOBGJ(1A0+U)/>]^Y>+Q.4'3+LI%"JB#/XXH_AM9QL>`/NC;6...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
result:
ok
Test #8:
score: 100
Accepted
time: 187ms
memory: 56096kb
input:
start 520 569396 440938 116732 473751 47601 877390 277114 259139 437475 193896 992342 402838 838349 33699 536576 163847 117713 927965 598864 939506 517156 87428 943725 624835 515205 108250 468405 990560 512040 343417 101050 944099 177534 73824 476709 772630 489775 929453 216227 822538 552185 208923 ...
output:
569396 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1...
input:
resume /3_6B]4IXE0]9Z-G3C;=INP*<8Q]$CP(W+?$Z[R]?@UGR*H.\/R",!DQW^V/5RZ_/1LURGJJB1%7TG$GJNUD;UYLY0EDS,DY/5P\V@9^H(9KYY4;2[4S&=H3+N5U%O9*4.,2,V%$FOFK;%UN)FBL'3"5U<@)R"\D4[*QLFMK'WT3L<V,V2.;:HVJ)B?&^);[72"Z)!``\0^=&D)(+>`^)_#('\LZFR@S4V9,<?E@@?_W$@HB[D#+E[!U,Y6U"0V,C?#1=M_'*DW.TG%4EPRPDKS9,]8QGP>G-,*RF...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
ok
Test #9:
score: 100
Accepted
time: 205ms
memory: 56148kb
input:
start 8443 729060 666260 185101 382196 371654 40175 191745 696848 627288 695514 463530 357409 465277 741772 43361 979762 952428 178423 841409 405526 498821 973165 335585 375002 113423 365239 404592 237309 573524 962229 36036 696295 373438 251803 891072 633659 62534 157262 573215 610136 499209 762268...
output:
729060 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1...
input:
resume /O.$7CEK?7,_9EI]!II*592Z-4V"8PVH,2'C,Y1$**DCRW\)4+ND&M1J>=*$C[%-_Q?9Z!'GF:TYJ`\=0OU=*W4BS99B#@L@1#9?"^.1X5Z#%?X1I"QQ!/#HHZ6K([0D#6C5+7J[]GFHK0-=_8;J4ZQZM&T]C9]F[][R`H0:<_FUE"$=]H5]#8K'2``?:FXJ?@)WO$4WKW0+.A1\^?LI`>4K?/+G<&H1F8C%$0P*?/>](+TYT8[#*I\?JLU0S7%HROJTR\"=:"XL[6=T#'$6"FBB3J7,N<U1>,P]B...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
ok
Test #10:
score: 100
Accepted
time: 272ms
memory: 55472kb
input:
start 95751 308697 772166 788484 646333 666534 92445 786509 646923 836713 476019 699260 122853 518658 556909 839126 518374 192398 728985 64716 176986 975947 644795 748557 310350 187984 204486 401437 532833 615053 995384 580446 107265 183547 188255 578145 852736 311107 298993 513464 829086 302554 710...
output:
308697 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1...
input:
resume =L6AGVT,F<C[[IE?)%A0T5;EW/LJ1M$;$L71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FD_XRKK(>7Q_^$E0IU155@4G9:>6T!?/[P:W$;PJ,<C&%B9RUTQ/?.>U''/[Z&JM/33&\)UV_TJ_K-[B0`_:D0JJ8;T;9Y9PF[1LO(,Z...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 8 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -...
result:
ok
Test #15:
score: 100
Accepted
time: 262ms
memory: 56400kb
input:
start 99880 1 11 7 14 7 9 7 4 4 8 9 6 8 12 3 11 4 14 1 12 12 11 9 10 6 3 12 8 8 11 7 11 1 11 11 14 4 8 1 14 14 4 3 7 13 3 3 8 6 14 12 3 14 8 14 3 5 7 6 6 7 2 11 13 1 10 2 6 4 11 3 1 7 10 14 14 5 8 3 14 2 6 4 3 9 3 11 5 4 11 7 5 5 7 2 5 14 5 7 11 11 10 11 2 6 11 5 12 11 10 13 8 12 4 9 9 12 6 10 7 6 1...
output:
1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -...
input:
resume !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!B5T`T0*=U+?5S+)9)/H81F%IZ'E#'/JO;9/,XH,Q"?4N`_A-D>TMO2].S(P512@H!<8O0!@>JQ1VW!K9G_/&D?[D^O)'A)U*,*-ZH+S?T8%UZ>:>,,/(32Z,590;`#B709[&W8SY530Z@#O9DXU\(35ZB`*B)[FQKS+*Q:QXZ\C!`8:HJ"4<;NGE\5(W"&_ONMJ=!NT3$/SS,H)9P+#/`-&&DM*UT>QOMHQ;@P*"48-`1LR5"QK"&(/RN5H[(0"7(V76\...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
ok
Test #16:
score: 100
Accepted
time: 304ms
memory: 55972kb
input:
start 100000 394129 918049 227627 394129 227627 918049 730034 886281 958919 958919 730034 886281 108051 279991 756917 982336 982336 756917 620015 643225 671990 498572 965213 784067 302045 302045 448973 284292 498572 549214 671990 643225 646142 108051 598249 784067 315666 448973 695438 965213 620015 ...
output:
394129 -1 -1 -1 918049 0 730034 -1 -1 -1 886281 0 108051 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 279991 0 149638 -1 149638 0 953158 -1 546431 -1 -1 -1 273407 -1 -1 -1 273407 0 555339 0 654326 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -...
input:
resume #"4!1U](Z+U<1?N_QLF9]5:@EGU=MRPPYE0S-VV,'>F-<S`94F0HZ.D/TC_^U)F3OI?EY(]J[N?EMHOP[4*RGH*M;5G2E>11(GD,84;%_5AW'QY@%(!;K--'N>C#KSDQ(LJV,*!9I[#206L[<H=N#?(;7JV$=3-8K_])'R%OO4/SH)2+Q=*8,D8OQ<ZO):7B-R*`C7PL:#R&_.I_6<T%'Q?H7!!T$>MW5$#ICN(F>',5H*/_NU<V*%4=C<8>IZHTKZN!-B_LZAZ#NMOTS!<.CWN#)D4FK/0Q)#0<4...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 523142 -1 82886 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 647066 -1 254973 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
ok
Test #17:
score: 100
Accepted
time: 280ms
memory: 56368kb
input:
start 99999 947665 127760 350354 669358 625042 583671 697219 193704 575165 512223 530130 575165 858585 999857 546323 127760 391941 697219 706174 947665 187941 698085 583671 544095 462885 530130 544095 706174 318321 669358 999857 421347 512223 858585 350354 49865 187941 755625 546323 625042 698085 19...
output:
947665 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 391941 0 660927 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -...
input:
resume ;)B5@Q]AA3<=M%?=V#6CVQ'9QQPSR"S$Z]D3"CRKK3S;PX+T;7I-N"0\9ERV3R(8_46BTDPI&[.M#Y>#J/H/\C>=0"0*"VC:!W'V8.PSRXE9V&6BQ64'FTEF&(B%.!G2J"0H>B<.1=WWH4BTB`S0IDKA-V=E0>G1A7!,YS[R"1O/D#`N0]8&]1QN;@,Z:XXV<Z&O$$09:8^>$@CX9FBH*%1V$WU]JE[7"4?O]):J4[@]X=M9@$0'>7$:N\(=JS5(],TE5SJ818!IZWE_SM-)PZCO-WYG/I'$JX]FQ...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
ok
Test #18:
score: 100
Accepted
time: 283ms
memory: 55848kb
input:
start 99998 698147 885494 939196 838083 473356 306889 214611 177418 69534 569835 240345 400481 974284 780442 934650 284543 207419 603638 865861 553694 157688 99733 426984 23109 869388 214611 753442 762603 835849 511435 347206 300567 82280 377545 249724 300567 698147 503359 627471 481084 428245 76199...
output:
698147 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1...
input:
resume ^OC'#&/DGATH$9PX0Z]FK`YT.[$+D)`Y7K*78R@,F67+9B@6I/=FLV?.(82U\13C$1]I\N_%2/#V$`;^[I9EU<\[+R3TJ)7ZE45^M/W7;LTN`@T3^:6M1;JZ'KPCBL:E=QK)CL%]53MW%2'';6U;L(2`CY6-9P]D!'A_9+#,;1]EV2,A4Y1R02<JIMT:!R[TAC]#`R\*133_6P/14=3Z-_T31F.A[@BZ!<`:6"/FGUW+KA-5$1X;T>^D/*N0FH"(;@%G)!`LGD![$1=OUYVC;;M'?[)/H,JJ-GRKJ...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 714625 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1...
result:
ok
Test #19:
score: 100
Accepted
time: 291ms
memory: 56120kb
input:
start 100000 30233 30233 955328 685299 955328 685299 44198 44198 522253 957054 966960 397858 859956 924705 282166 522253 324522 428464 678972 517929 707311 859956 661351 607572 678972 878203 705428 404580 661351 337730 878203 592906 592906 923695 970896 397858 404580 165775 970896 924705 428464 3377...
output:
30233 0 955328 -1 685299 0 44198 0 522253 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 282166 0 14114 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
input:
resume _9K)V00DC(18$+]L%@+>[email protected]?:%;1C(&P<NKW-,=PFWBG3^T5Y8[-S`B,F#YC)X\(4#!J:ZK*C_B.U4,L6@LRBSXU*X7ZH5@`9`ZBX0BK(MS7=O>79E0*ZH[FX'HA%9:QPWV`$K&X(QAU.R[;VW[ZY&P3XXRX5"C=_7484_(E2?LN@32M60X*A1)[,1SS1OA$9A:_O)T0@D2`MI.S!+UR%'%E@=RZD#<L^XN+/G)J$TX9*G-78_<1(=__C<-)WA``;FL>S^<]+51/9?/N`_C1D':@30Q134?2KF...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
ok
Test #20:
score: 100
Accepted
time: 279ms
memory: 55020kb
input:
start 100000 98488 113660 714787 629521 117767 260864 370889 996355 766032 216715 661826 948790 617570 848804 9497 133396 588336 642217 1330 120896 200351 475165 875409 314921 552870 352408 338059 484874 753986 620675 324236 695081 606442 585964 793839 62471 22716 249771 69430 778919 257915 46547 24...
output:
98488 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
input:
resume _[':/U*AG)&B24K>0^03ZM/$_E.ROV99+=U,1L"OC,RIN<.F8?<OT:*W_!1$/"G!R":"\X-@GJE9P=7-!065Q;KC:.P0HU%>*0T^0W<DFW'6$S)F.%D-H4%5@/B?W;>X.S'ZA!._DI&<<4F`I?;]1[K0D'^M0^!:"#%^>$T4_4L+X)71J>\S&8W;<@%O$_@!?3C>6@4%`Z#?+IHWA9#4"L)ZEY<N\V#0*-A3N`ZT.\-0]8:F+%/;T(,:'RHQRR;U/ZA.>73Q-0&\A27!(I#&SA94K@.$>CMRBWY`'...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 516489 0 259558 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1...
result:
ok
Test #21:
score: 100
Accepted
time: 285ms
memory: 55356kb
input:
start 99999 252139 517628 929379 211409 510098 517612 484533 935749 142646 41367 256080 823962 855625 964251 622391 660610 102441 373506 348772 348772 318256 602600 971236 825004 831594 470525 484007 185377 218309 660739 735193 396090 823962 386689 97544 513091 893709 521497 873463 198979 256080 779...
output:
252139 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1...
input:
resume BR*+<3!]LM[@E#=U_"G&R[S7<M&-N!53#^[99VJ:-:,GR"SG2<2PK)![I",Z/C]\772GN&(N;1?@D^A`R6TE1I4,[7BJ5P&;"0.S:,[TZM`<9-I[KG)?;.7R1=*<;DK=*J^=$K6/B=0.V*"_2AZ[Q*[>D?RP69ME4QFFQ+YX:08``S_=*N925.M(2Z[6SHP%[>.#='1LR`G$5`\IJB$?YSRO,2+K6[V26U?6+$O+QOY7OZ_PQ0Q(/ZI\TJY*#R7!X>1GI9%D=/'YLA_BA?LM#_$="XX8=8J*.Y5[H...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
ok
Test #22:
score: 100
Accepted
time: 285ms
memory: 55360kb
input:
start 100000 455926 750995 903051 613182 272842 819322 696493 136047 109685 114924 936265 904562 371782 194824 528665 100293 793353 170884 526584 784120 521168 990077 97818 751453 645850 584429 849862 193302 288827 625990 714516 853829 137414 358898 416940 836017 759498 670799 68101 235115 849042 57...
output:
455926 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1...
input:
resume BD&3)NUPA*AN9'M4NC8']P`DXN3&.67!+G]4CT'9&4'EWH=OBS=W@?<G&CJM5-ZBOOQM>I/>8@YUES_]75*9(7G:0B(5'2\>.EM,H&U"7I(3ZPKD_AC%E3:9LHF$-!S/6[*$4#<R<T4+,:',W#Y_RV=3KNT=/`HU(.%Z8PG\)F;Y(WY)(>&S>!^V=U`X,F]XDBE:#.!:@MKFS[XQH9%NS5T0I%]T7[Q_B0-+TF1?)W"+!QLVH]^(P/`*^,*;CC^U/T.^$*A!"[5JV$`H"+TN?/J/<F[QX=A;)`9VI...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
ok
Test #23:
score: 100
Accepted
time: 286ms
memory: 55696kb
input:
start 100000 68266 624214 484353 269449 135510 602966 160020 34440 747457 616904 466802 591950 250598 744721 131281 785497 718880 672530 363731 594834 629037 782441 263843 759653 749201 654978 38658 163113 558805 579678 851296 885087 929839 465855 288762 886784 763218 556089 611850 594356 403622 624...
output:
68266 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
input:
resume (:X,(\Y:5/042FNBWV'DLWK/)M8?PM1<\(V^F:()$I>K.MFD23_BEA"IZH4+^=3IB,[7\57P'7V6GV\:U+QO11TAWN48$^W3YAJ,TA&=WU8S+"I+'9@\?-?P-XJU63B/3@YAGQ3%!ICE8-<R9D"K2RBFRAU<1OV\%'\NJ`-LQ/)-Y==;XQ\[\C0]QKU'?LZY`%D=\K0*FPRDP5R`6PF_NZ`P>]/B#F]#TY`9!AGV!MO25!21A=^/'X\?WCHN_"ACMIRM<.2H-\;N7C"]0(>YRG<'*XW*5$T_H(*=)...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
ok
Test #24:
score: 100
Accepted
time: 276ms
memory: 56260kb
input:
start 100000 325371 170814 366440 69006 768403 259070 95913 809395 717491 3516 171552 169354 993652 613598 528572 849870 814963 672358 250859 645459 462575 428387 237669 910936 290192 916701 839396 350711 206593 788590 793368 483334 961522 855487 430945 676893 48211 573064 500907 833337 911806 651 4...
output:
325371 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1...
input:
resume D96$JPJ5!K@S&Q1*3L1>)F700L8:W1A'9V";",,)-)VBP7%\Y"WN>>?ZVC"7G*Y;*HX=U1&Q:O?&UT67B.^AA7V/83>0<S[[-CQ"B)9ZTRTU?+U&3;Y;]*2JC%ZE@G&/,#<;;)R_"0:(8+6[/PB9_D4#7;`*Y.!0V;U^6%HV772&ZT9^,<`21,@=+]0:]*\#Z,W-7=Q5"LT(H#!OS:N.<D!&T+X#](4AZTGU.M^\C)=XTY0^2U,7TQRC&L;;_KD27C;1(MADUR3!=E.ONT$Y*"7\>[V-\O):<P,?*...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
ok
Test #25:
score: 100
Accepted
time: 276ms
memory: 55800kb
input:
start 99999 115395 94587 538403 897723 564885 606177 598848 838949 10553 356321 446534 689926 89721 165139 986352 566786 736962 394383 337693 283650 541411 488121 398551 553188 799828 716527 341970 917677 568548 558178 636848 171256 83673 963298 455804 588947 998689 505360 453841 861469 409912 21262...
output:
115395 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1...
input:
resume \/+45%C7B#R)NXN`;T7!K+@Q4<OH2@C%=@J1IT?F#(K!7$P:-1##M^K"(K=^`DG%4(]-5NQJ5#QZM$;O=@#QA@42(*:C<_V0,_@F"V^&+&\3FC*YE6S0[34W*I2CW7OJ[N_Z'C?A@G/PXM>3Q)$9?1S"Q?(R-PALT_6XML>F/)7JL/L<!4DEZMGWC=IU#262`SCNWA-IY]92'I*CW93)&U;.-I_"H,!^0*GB89>?@CQOO/MBS-0/4CIHP6A];%N>`#N!M@YCB1:@K8G1X</(I&FK,;;4BVF<:"YR<...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
ok
Test #26:
score: 100
Accepted
time: 284ms
memory: 56612kb
input:
start 99999 740054 956304 461015 924214 462434 228874 636986 21542 782461 900662 831645 477486 988863 949718 832513 290161 172179 686552 377378 754566 622358 460022 970789 826249 565455 350667 216175 599497 710009 738054 176661 218163 996206 403505 939995 156167 957831 568227 607100 899173 196775 78...
output:
740054 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1...
input:
resume H*3:J@&C/Z7F$XU]LT02E)``3+INC$0WJ.M647J8%\5I-4PU\/4E^/I`W&=H3W0L5'X?6*VU=I`:L_:]O*,@4>KN3QBE-!@=_QDI&C@<QEX0*DL0L%F0B/0P_FN=W/)+:&4,SC-NP*8K86-H!_BL;2V<J+C_W3J47?-#QRH?/"I.8_O.X;1>C]2-2\V/[KQA[#;JH]BD):Z'<Z2+;2"2QN>"7PO+F0`+QO7Y*L#;K1"I&W^8QY5HTX$%NI\J,.3^1</:S_#6,6KVX1X2/!*2,)P_-A>8=\X#TE4L<...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
ok
Test #27:
score: 100
Accepted
time: 284ms
memory: 56704kb
input:
start 100000 858735 826365 690220 831531 68461 834868 554047 528612 588949 76263 340817 719752 932561 743539 209520 259228 332553 646708 301885 669256 711791 981652 237362 556448 208225 692992 386198 313482 654512 814491 655660 774128 48827 860713 801796 226661 256777 656470 92208 221150 336852 6319...
output:
858735 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1...
input:
resume ,?\,ZXR#$\FHN"8":9*<.7;FPCZE;@O4$A.LL.Y0`Y`BSFXIOXF0A(Q;*"/7=L\MXJA"BT3>+'F4Q8*\MO;0M(4WQ@L[_T:3#_?D07ZP\GG,1>M<OI'B2[BJGHV)Y0XN3>=6D.('J_,VK+^SN[6K/<^Z3^[M_@>GRN??BTD($W-CR,YZ^<C>SK"TN4HU\*E6T]E)129>C[CA(^4S!0$3EFCORJ+`V>4V_">@<_U8P1[/3E2@=&R8<`23A2L]@EZHP5\BSO@(R03SR$3E\"N9;S>JEP@-&C<XW....
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
ok
Test #28:
score: 100
Accepted
time: 300ms
memory: 55072kb
input:
start 99998 263809 656132 304695 50279 431416 323316 323316 656132 431416 50279 263809 304695 304695 263809 656132 323316 431416 50279 431416 50279 304695 656132 323316 263809 431416 656132 304695 263809 323316 50279 263809 656132 304695 431416 50279 323316 431416 263809 656132 323316 50279 304695 6...
output:
263809 -1 -1 -1 -1 -1 -1 -1 -1 -1 304695 0 304695 -1 -1 -1 -1 -1 -1 -1 -1 -1 263809 0 431416 -1 -1 -1 -1 -1 -1 -1 -1 -1 323316 0 431416 -1 -1 -1 -1 -1 -1 -1 -1 -1 263809 0 656132 -1 -1 -1 -1 -1 -1 -1 -1 -1 431416 0 50279 -1 -1 -1 -1 -1 -1 -1 -1 -1 431416 0 50279 -1 -1 -1 -1 -1 -1 -1 -1 -1 304695 0 3...
input:
resume (9[E"+&&/<>/OZ3YO*J)12604:'K%RCYP/AK`3+@9&WV<H`TET*\T2PLY;7YI:@YW2NH'3(6%*VQ$F/OT@#6MX,)99"F9ZU@];67#;PY#[M_?/">$W7&:&(FMU%;=@"YY/E')HP?J-16YV(RN%J)[52@#7BZ2-YTEC&]V>LBU;QFGW?4?"]>B/WXQDVAV2T@>$(>^^W#4VBC#2$!9$,(TJ90Z$+^_!P$10>..BE,#?U^-39&,,(K7S?!/1@33=]0P7:RQ"1JX"U1#W5O552,EJQX!3#:*91SP]B\\...
output:
-1 -1 -1 -1 -1 -1 -1 -1 323316 0 656132 -1 -1 -1 -1 -1 -1 -1 -1 -1 323316 0 656132 -1 -1 -1 -1 -1 -1 -1 -1 -1 323316 0 263809 -1 -1 -1 -1 -1 -1 -1 -1 -1 50279 0 656132 -1 -1 -1 -1 -1 -1 -1 -1 -1 431416 0 50279 -1 -1 -1 -1 -1 -1 -1 -1 -1 656132 0 656132 -1 -1 -1 -1 -1 -1 -1 -1 -1 50279 0 263809 -1 -1...
result:
ok
Test #29:
score: 100
Accepted
time: 276ms
memory: 55336kb
input:
start 99994 184887 688384 193819 505562 189883 483143 970039 388819 912196 956913 780681 241879 180122 916737 791635 708502 215748 111177 16744 740722 740064 923629 892917 423861 508246 475150 165530 226634 105622 971462 386915 720921 434050 846759 126666 797120 800748 264722 438736 117966 134264 16...
output:
184887 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1...
input:
resume SE`3*4][3TIZIPY]K]\?,&#,K7S.AS$:"VP($X/W+C(%O<#2`/(\C6G=*JD39F:]_7.5,$DZZ]"_9XILHN?*).EN)FY)F9F([C10'[1N2P+S+W2*RT>1VJWR`;H4FW',&QT^%?NT`2V3&H`H[8I;F'R`J]>CC]AKZSP![D98D]@@L3A5'K8.4^RW[J<\&;?`PGV[_G4[MVQQO/X\U0@)4A.JQ[&A/P!QJ]28[F^D6KO=^Y?0/X310$'7I_[,B<B?S-QSN^]J2N>VY7LD7*]-"D!<[*@+&NH<*6^^L...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
ok
Test #30:
score: 100
Accepted
time: 287ms
memory: 56592kb
input:
start 99994 887768 264610 623037 691748 602754 988689 455828 746853 662421 329105 748973 845208 494232 72284 192969 902257 907740 53069 177587 726710 418391 169032 534002 574237 235404 613939 987294 125245 303240 123352 376298 239894 841761 99706 672895 863515 637062 75914 139277 660239 453946 54127...
output:
887768 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1...
input:
resume UKJYL@[%&,P,Y.'68Q$8'KR5A@:P^O&[>5,09A1./9NEPO-''Q=AHNK&UDDTMQ8)7@6$H$\[AY!4+UAU+4EP.6M4BEV-FCYG&LW)L0,+B!8SZ87'-J#^F*P<'W.DWV-%IG_-+PC.XJOSY'QF6P.[<B9,.X]34.14#7YLFH@UL0EAQY8HJH3W=N"T#:-6K<R8+"6SY9NO7_U2\#4NI9Y'=7O;>IM%HL))KL"Y`%<ZX=C;Z=;#1\8MG"$DG^H>](G'_Q@76"@3-^D7N!7O<8%./(35D6,AAY>Y0=H7*...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
ok
Test #31:
score: 100
Accepted
time: 270ms
memory: 55224kb
input:
start 100000 333404 37472 654393 182613 37992 624401 939999 390509 244589 488059 832375 61105 599684 682654 163207 438686 735976 70996 708822 983562 993868 539328 60518 872175 256075 87909 345970 2001 531669 395758 95562 857148 554644 842459 463542 565647 3624 465257 413702 878812 750533 163187 9177...
output:
333404 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1...
input:
resume O7(A@VJVBWO/_!R^@3M'=:%:!RS;%9MANMWQ=_FQ>T6\O-$1S/K/O$1T0F%/?5>X)'>`%DZ"86)'H."#%4!VIPBW05OG]I2)1,M99%@"U+KH0T,SC9-ANEU;+V=P7)]6KX'H_(^HW37V!HJ20OU3,_1IY@?*F5$]$L&^&[>;[_*PB<^RW47\4L((KIAA#>>AZ@".>@X!_K.X(C7*_NC7EMIF"?9G)\#+@Z>&>%%YOFUF.$#9L7U:@.D:8.S*"!)	ZKAY]@CISZ19&"\GO6Z],D%4[PO3J(RTBR5...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
ok
Test #32:
score: 100
Accepted
time: 284ms
memory: 56404kb
input:
start 99994 543640 489661 255858 433176 485629 197129 896121 714696 850723 144356 441813 203899 988142 395063 108777 404610 383288 686938 266867 88727 244946 279082 176046 710195 454942 121666 375579 616524 658810 44932 181311 104265 376840 734895 315411 497722 17930 592987 460951 683604 959149 7297...
output:
543640 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1...
input:
resume GE_T>@_JX:5,1S__<D'(69&J9NGK%ZH'!:@H`>34-&OT0C&VZL*YSQ`F0A`&*?8E]XB/``ZX:O=LS<:]DR'$?E'!2DZ5'?TXA7L6.1RZ`XBRU7,%6"Y9#ZF)FHM)+$[!,>C;$^!O`NEK0KD2(0\6Q^4LI)3S-[5E4Y_?$?AP%!<8@F<E@5C,7V`V04YSL)=1E^IC6K]<Q2]EZW9A\#6DK"]EPI!^FV2`4!H2@41$U:R7:(O_IC;,LVY+^W3HO=#ADHPKBNWH%IXI5;;!D@G_?<-Z<]SG[3KSY>G,*...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
ok
Test #33:
score: 100
Accepted
time: 281ms
memory: 55764kb
input:
start 99997 203369 312464 965080 272620 857569 126210 872488 865360 343744 255970 628893 529958 183758 875970 968303 886887 707666 403277 155956 203767 867258 34634 406479 786830 37142 9703 928812 908876 995005 755987 261836 889989 364047 289822 945970 740232 283515 402826 729689 561160 839374 28565...
output:
203369 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1...
input:
resume D.[FN,+U7W)L(T)O4=T$[1<\XWL]!*\SFYSJAKOH0)83*>R9%@G<I35"^&OX<="X$`]UT5J?&'#G&1(UG.M1GC9,[8)&])6`^:NC,N(Y!SS8W)%1(0,\9R'H6`$WLS4.4?_QC*NO.$P]#Y0A9MOC"P]PG@^;!R?-(F7)@B?.Y2%$K&_J3"A=)?,36O->*S;HD_KH_3V\$LC'(CAK0V@E?7K\HN'CKY7%W'T+`7@UXK4?;&U>V<OPI>U_;TH*'(=<CG$`CQ![[MYU4LP@Y?;>^#J2]J(YR<Q"D5A8!...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
ok
Test #34:
score: 100
Accepted
time: 280ms
memory: 55128kb
input:
start 99994 410936 979326 575242 131985 477352 603362 997571 171355 199505 495481 9106 561542 921563 129261 732521 462428 66391 253973 796050 217349 491183 376961 312110 350575 86541 703158 479513 735393 51922 456189 414761 527327 48902 320098 934749 679641 293061 12041 931624 184532 796684 86442 32...
output:
410936 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1...
input:
resume \9<")^F(AKOXB`\'W@+&I+->GN`DHWL[U+;2,"G4^+?ZG=CZ3^X;,I3GW27E9\.4$DOLI4._P0XI4V3[NJ]$QWXWQ5S$<YF6<R0%&8:]Y2-_H?W42WJ3$"#WSM(C@%&ND\C,U1W"TC">!,H3QPLF(KCE']"0#[N49_#D<XEB3#HH;,/-:%^+<!\4N8?Z`D.!256V.HX!"I1]:Q<4WT:SE!&XR$'%T\AEA40ID"V')(X]-^N'%M8W='FK$F'J\/DT<!HQQ1<2V<R,+&0ROE-S[N]?:M%_<+UQ-:O[\...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
ok
Test #35:
score: 100
Accepted
time: 275ms
memory: 55296kb
input:
start 99996 727783 607261 63171 949130 980500 75229 158615 865538 119761 176088 204882 714637 430224 222381 463704 184888 348275 657155 656198 115016 130510 731187 382346 434069 490276 227990 582032 428931 675009 99543 213047 301800 906141 524470 181017 453251 179509 954878 801375 155687 618057 8570...
output:
727783 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1...
input:
resume (J,R0P>J@<%#<?TDU]/NA"VMC#&4=N2LZ$IA>$&49H66)W+P+Z&XM*=(CBMM"\IT(9K=)W5':PW2*>3%*O3(Y^E!'LV4/^J:]$'3<0QU6AVD'NK3>@O/%8@F%]-[?#$.>I1(M_:@0V=FR=4^_ANBB$<C(40^WDHG?"-I\Y;+J:)3R^&Y9H<F/NY9\8COKAAY@$@=X><I#2F9&0A/;@,=OC$N>N\\GGG5^0VKD=^%2'TXJ+Y3J%_QF8_:ETPX^=I>WX/Q1=,_%$/#P@'"<0"F?K@>CA+&1='R!GW)D...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
ok
Test #36:
score: 100
Accepted
time: 266ms
memory: 56328kb
input:
start 99998 933646 554173 345184 994611 715473 773844 869293 139690 96317 463511 210032 452622 30569 909927 105568 65163 695673 664610 667940 18196 335039 652358 588430 492921 563679 411104 656046 420733 297728 156796 379853 722687 89377 258027 914390 677848 933937 320455 64261 376868 673512 499678 ...
output:
933646 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1...
input:
resume #*=F(^:LL!\D]=3^$CH`Y`=BM\D*[BVN3K";RC#2$%$Z>P9]P(-Q<[UYFB7D%G5]6+@/CW1C(Y=ZI6/?LNMXJI]U'&DSOO*4&O95R*IF5/#/%@J]?0$L,9!LM>5:;B-T[)-BO.F?4B[9:Y_L(?):B&GS2Z&ZLKNLD7T/8W*@D6%'OY&'6A)(.:J65$AYMF,@M,6H`/IC9S'X.663$8SC<U10SZ':H%4G5I3@7=S]#G8Y\7'8"OI!8]`\/A(KI"+<>Z\G46L*&WY$_\CE#9/'>ZCY\8(<G:#(++[VR...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
ok
Test #37:
score: 100
Accepted
time: 278ms
memory: 55844kb
input:
start 99998 247014 809683 821712 428536 187592 828719 372441 802500 727197 359106 969931 405871 793313 52426 818102 855891 996929 487006 426796 371857 809874 761594 961867 960127 83849 486273 834951 163411 924892 179364 675318 937658 752103 584916 984593 234471 372333 259137 624815 148053 534867 135...
output:
247014 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1...
input:
resume /BXJ6WIMWDEHJ,"7)-<@(U8G#E[8KO,HZC)C?5]1`IA\RO]6O"$8HDN'7<&+O!+FY/8X6%1LW!S^`MP?DRJD:W"IL6SS;'VC/7D+&?2SZX_:_CJ4Z&>BJ'O%VL4*98LK/9)2=6_/^\!>09Q/^C?,+7FI3RU%(TY(M%9MOB424^SMC^3F9]KM:?6TEX.%_-K6`9:"R005.<#!Y5K/=ZO)[M&T+*>?BSO5_\>[#?Z2K5D.KYYD/145I1C>$%`CK32:BG*ATV2<KQ>!\R\1=!AR9.AA"0H#(10(2*"%H...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
ok
Test #38:
score: 100
Accepted
time: 285ms
memory: 56216kb
input:
start 100000 262630 97175 890863 510401 724579 565188 662361 89982 771540 946389 240257 46313 992883 364353 775560 7589 149261 948261 291095 316386 706040 57805 790307 681253 921626 406994 471478 577440 297778 544127 429733 770856 650650 4335 858801 593767 618773 560456 135732 55787 110471 384878 11...
output:
262630 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1...
input:
resume 915;*NY7*&2[R0$=B,+=D,Y/2__5UG:UF`(:P%X75]78HD_6WFYTB!&W1ADX1.B<T@Y]N&+)P`I[E(P7*\:%?J+`S3U6)$7VME7+PIB=&UBU.#$GKJ:&E,&?8_:78G<6/"8MN0;J7C("9GW)-[+H@WG]O-SJ)4*0Q2_68Y]AE*_F':!.9,>,._E]^`[0M5ER1LQCNNQ*G4].@S%8SBHU^S%L$0PJ(&3:5OH\NR1ZIIM,X1\$V.^[\YYK')WO#C9R;K0Q=Z]_+1WN3@AVZ4^3[*NQJ.,&&/3!YPOFA...
output:
306163 0 528599
result:
ok
Test #39:
score: 100
Accepted
time: 281ms
memory: 56348kb
input:
start 5 555978 725868 980889 315278 208665
output:
555978 -1 -1 -1 -1 &=C*)S94]G\IF^,M0:S"<5Q;6`N/LDIY;3$13,D"DIT&?5O'*BF**KF1ON'UHZE,/,SK5NH([20XE#DB/<*-&=F1+F4:D=)A%=::HE6H"`#Y_`/Q)2T,3D,,VR3?IE(EL'XM(G,:-'KQ2G119)%93;C'2W!R]>4ASU?Y?3W8Z0"O&5^"\9W,TXE6"#I2Q#TB79M]M,LN,JN0V,I['=&P-8SHY?<>44-A\2SAYR8T5*."@<=$MJD+=`D6+U7Y=Q,]!9ET["@E$SRU-^[`<V_\C=+Z'...
input:
resume &=C*)S94]G\IF^,M0:S"<5Q;6`N/LDIY;3$13,D"DIT&?5O'*BF**KF1ON'UHZE,/,SK5NH([20XE#DB/<*-&=F1+F4:D=)A%=::HE6H"`#Y_`/Q)2T,3D,,VR3?IE(EL'XM(G,:-'KQ2G119)%93;C'2W!R]>4ASU?Y?3W8Z0"O&5^"\9W,TXE6"#I2Q#TB79M]M,LN,JN0V,I['=&P-8SHY?<>44-A\2SAYR8T5*."@<=$MJD+=`D6+U7Y=Q,]!9ET["@E$SRU-^[`<V_\C=+Z'XQ"E2M>='+QF...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
ok
Test #40:
score: 100
Accepted
time: 282ms
memory: 56300kb
input:
start 12345 525838 676167 632315 183052 98180 154876 355933 658192 431587 928002 327393 544008 609168 431218 962386 577470 1926 883046 853842 974147 762473 246092 393316 35079 440174 197789 858592 164639 942994 676886 488627 303821 611690 963062 680182 464178 687587 125138 650353 609079 974664 86773...
output:
525838 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1...
input:
resume U%NTYW#EXU-5(9N#8?)E-4J*=V.<[WK]($&F@*0M'B7(6,.J[5LU.O&8TSO14+E9QJ3$S?P:KF%>YL7"9XXONI_;X#LI]9N$`/@+%3+OAD=0I/'EGSXHEA"WJ:273+=>*]TJL*'2'<2QT>&Z+D9@ZW"&JQ!X"BHJ77@X_!8;DZ<^H]"'A+[GE(`"UVT[W*$.'XX*(J(2$1DK)\I9%?17Y5@?_Z+'*O:I;2Y+;/BW,P,\B0D@N<*+86P"&1!9TOSTB^Q)2F!TSO^'O*,7!8+$4[QU")YRW[/,5=?I,...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
ok
Test #41:
score: 100
Accepted
time: 280ms
memory: 55036kb
input:
start 100000 900001 900002 900003 900004 900005 900006 900007 900008 900009 900010 900011 900012 900013 900014 900015 900016 900017 900018 900019 900020 900021 900022 900023 900024 900025 900026 900027 900028 900029 900030 900031 900032 900033 900034 900035 900036 900037 900038 900039 900040 900041 ...
output:
900001 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1...
input:
resume &1NG>W%S##`L.8C!Q=NN_=W:E"G!=-O#BZDD2F!ZH;*Y`]=YWB!.^`'"R@P'8-8LB81<E#M>AXH]J((8$$(7\O2R;PCC;RH9B.@8PJ<Q5W$FG(!-=&0-OE!/C]P0*MI/`:YN(*B^T51+?`.;&YF=7?/?]\9AD>-Y.&[>+<CQW.`6L&2IDCH\IR.(O,_5*-6DSH9__>SH`TVM4#'_&F2IK#X-/&D>^9PB2[VY0MA]3(B-7^=`HV47W&E&HLW>KZ,+D&8S1I+.2M?>BUR3%903L"ZRH%2L>&Y<A>FY5...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
ok
Test #42:
score: 100
Accepted
time: 279ms
memory: 55924kb
input:
start 100000 900001 900002 900003 900004 900005 900006 900007 900008 900009 900010 900011 900012 900013 900014 900015 900016 900017 900018 900019 900020 900021 900022 900023 900024 900025 900026 900027 900028 900029 900030 900031 900032 900033 900034 900035 900036 900037 900038 900039 900040 900041 ...
output:
900001 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1...
input:
resume &1NG>W%S##`L.8C!Q=NN_=W:E"G!=-O#BZDD2F!ZH;*Y`]=YWB!.^`'"R@P'8-8LB81<E#M>AXH]J((8$$(7\O2R;PCC;RH9B.@8PJ<Q5W$FG(!-=&0-OE!/C]P0*MI/`:YN(*B^T51+?`.;&YF=7?/?]\9AD>-Y.&[>+<CQW.`6L&2IDCH\IR.(O,_5*-6DSH9__>SH`TVM4#'_&F2IK#X-/&D>^9PB2[VY0MA]3(B-7^=`HV47W&E&HLW>KZ,+D&8S1I+.2M?>BUR3%903L"ZRH%2L>&Y<A>FY5...
output:
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ...
result:
ok