QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#450197#4209. Stranded Far From Homeegypt_ioi2024_12#0 109ms33484kbC++202.8kb2024-06-22 04:46:352024-06-22 04:46:35

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Runtime Error

Test #1:

score: 10
Accepted
time: 2ms
memory: 5964kb

input:

1622 1998
29021716 740464354 721037601 759718475 973636178 59068917 294028640 285332651 203821680 397646208 488684783 448548424 565347277 112938323 832704692 837437153 508335516 167646888 798998153 86605661 820823253 705498382 116513873 672806499 522392461 568294614 457655230 647498964 577669416 506...

output:

011110101110001100101101111110010100010010000100100110111010111010110011111100011110111001001111011001111010111001110111111101111100110110100111001011110101011101101111100111110000111100010011010011100111010101001111111110000101001111011111011101110000101010001011001111110111110001101111101010101011...

result:

ok single line: '011110101110001100101101111110...1000100110101000000111111011011'

Test #2:

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

input:

2000 2000
864098683 591498712 213777486 59204290 934602516 58889078 651710816 522455089 109288143 369477344 245457117 508405213 300100362 824363920 223504153 262425016 942079572 679044734 459712786 240267388 479578710 756403013 605605067 373934824 394989986 71007490 989717606 324816874 694848141 967...

output:

010000110101110111001011001001100011011011111010111101010010010110011111111001100011001110010110101001001100101110101011110110101110001110100101110110111110110110101111111110111100100010100011010101100001100111111011101001110101010000110010011011000000110101111010010100011111100101100011011101101010...

result:

ok single line: '010000110101110111001011001001...1001011101110101011010110101000'

Test #3:

score: 0
Accepted
time: 1ms
memory: 3552kb

input:

1 0
1

output:

1

result:

ok single line: '1'

Test #4:

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

input:

2000 1999
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

output:

000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok single line: '000000000000000000000000000000...0000000000000000000000000000001'

Test #5:

score: 0
Accepted
time: 1ms
memory: 3940kb

input:

2000 1999
206944287 446302790 101145912 408233897 297550532 862460985 297550532 434100957 604346912 853067713 745085291 823763956 206248832 515603549 595281048 81583217 371459366 93952980 96198386 310603764 614551757 894430957 71853228 509766586 630983372 318906450 388499992 819471794 38199178 47218...

output:

010101011101011010011100101100011010101000100010110110010111010001100110101010110110111011010101101110110101001100101101010100101101101100110101101101110000111011011011010110110100110011010101010101101111100101011011011010011011001011010110101010110110011001100101010110111010101100101010010010001111...

result:

ok single line: '010101011101011010011100101100...1011010011011001000101010010001'

Test #6:

score: 0
Accepted
time: 1ms
memory: 6068kb

input:

1345 1789
375167482 503306237 315868237 266756331 949398152 741681679 543655906 174472929 410442643 715616210 456387310 951728541 801716815 245590232 338015269 431597716 920266757 550723739 58977132 529933211 578064018 278767845 968148205 408029700 719289452 335374052 828528189 51196184 29650216 705...

output:

110011001111100011011011101001110110000111111111110100111101011000001010111010110100111101110111110110111000011111100011101111101010101011011111001100011111001011111100011111110101101100011100111000111110001001100011110101010001010100000011111010110011001001100110000011110110111110110111111011110110...

result:

ok single line: '110011001111100011011011101001...1100110111011110110011110010011'

Test #7:

score: -10
Runtime Error

input:

1500 2000
701816859 701816859 701816859 701816859 701816859 701816859 701816859 701816859 701816859 701816859 701816859 701816859 701816859 701816859 701816859 701816859 701816859 701816859 701816859 701816859 701816859 701816859 701816859 701816859 701816859 701816859 701816859 701816859 701816859 ...

output:


result:


Subtask #2:

score: 0
Time Limit Exceeded

Test #15:

score: 0
Time Limit Exceeded

input:

200000 199999
100000000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

output:


result:


Subtask #3:

score: 0
Time Limit Exceeded

Test #30:

score: 15
Accepted
time: 77ms
memory: 30520kb

input:

199999 199998
758475118 758475116 758475114 758475112 758475110 758475108 758475106 758475104 758475102 758475100 758475098 758475096 758475094 758475092 758475090 758475088 758475086 758475084 758475082 758475080 758475078 758475076 758475074 758475072 758475070 758475068 758475066 758475064 758475...

output:

111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok single line: '111111111111111111111111111111...1111111111111111111111111111111'

Test #31:

score: 0
Accepted
time: 109ms
memory: 33484kb

input:

198765 198764
331155986 402813770 954736614 79847944 642540167 755767778 749263519 200053132 274136233 631137603 175636207 109779934 886611000 234477496 562265730 302427246 297486401 72574701 921718778 740910704 341000613 985634966 75658269 782951356 920385380 798515520 757586463 121205584 268860640...

output:

001001100100101110110100111001000111101011110010010010011110011110010100101101100101110101010110110111001101001011011010101001001011101000101010011010101110011001010010101001011101101101101110001011111010100101010100010101001110100101101001110100110101101100110101110101110101010101100011100001110011...

result:

ok single line: '001001100100101110110100111001...0100010100100101101101111011011'

Test #32:

score: -15
Time Limit Exceeded

input:

200000 199999
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

output:


result:


Subtask #4:

score: 0
Runtime Error

Test #39:

score: 0
Runtime Error

input:

155555 200000
473735421 473735421 473735421 473735421 473735421 473735421 473735421 473735421 473735421 473735421 473735421 473735421 473735421 473735421 473735421 473735421 473735421 473735421 473735421 473735421 473735421 473735421 473735421 473735421 473735421 473735421 473735421 473735421 473735...

output:


result:


Subtask #5:

score: 0
Skipped

Dependency #1:

0%