QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#450416#7405. Stone Gameucup-team1005#AC ✓116ms21064kbC++201.4kb2024-06-22 12:16:282024-06-22 12:16:28

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3888kb

input:

3
111
111
1111
1111
10101010
1001010

output:

8 24 17
41 116 68
2546 6689 3345

result:

ok 9 tokens

Test #2:

score: 0
Accepted
time: 116ms
memory: 3692kb

input:

181778
1
1
1011111011
11011010111100100111000110101010
1001010
110
1
1100111111110
110111
1110010000
1
11
10010110
1
1011111
11
1011001000
10110000
110
11111001
11011
11111001
11
1000
1
10
1111
10100
1111110
111000100
10
1101001111101
101110
100
10
1011
1
10001
1100
11
1000
11
11
1110101
1
11
110010...

output:

0 0 1
246155736 338905192 159527632
93 231 120
0 3327 3327
9889 26647 13624
0 1 2
0 75 75
47 142 96
25063 66825 33424
310 778 406
1318 3554 1851
4 12 8
0 1 1
57 157 86
11414 30328 15210
3390 6781 3391
35 97 52
5 11 6
0 8 9
6 18 12
4 12 8
58 175 118
0 1 2
798 2252 1192
30 80 44
0 0 1
36209 96399 4823...

result:

ok 545334 tokens

Test #3:

score: 0
Accepted
time: 56ms
memory: 3492kb

input:

66771
1111010000011100
111010111000110101001
1111101101101100
11010001011000110011
1011100011100110
10100111110111
11001100100110110
1111111011
1011111001000100101
110001011
1011011000
101000110000111010111001001101001001000111011111000000101011010
1011001101
111110001
10000001110010
101011010100000...

output:

117341610 313077241 156705681
40343848 440953175 720551563
101694919 271198511 135615732
21341008 56919317 28488077
30754834 82044333 41120088
934998204 100878452 791125067
71008 189993 95348
248788868 101064982 564728459
1785 6249 3871
26468571 70778730 35663661
31783382 84764974 42388044
611613 16...

result:

ok 200313 tokens

Test #4:

score: 0
Accepted
time: 39ms
memory: 3896kb

input:

18112
1001101111
100001111001101000100100101101110101001000000101001000001000101011011010110110001110100001111011001010111111
1001011111001011100000100110010101001111000011101101
101101100101100111001
1111000101111100000001000110011011110111011010100010011110001011010001011111100100011111101
1
10011...

output:

484758137 831924884 959817966
615294792 54403241 638528130
0 801642066 801642067
899154639 457581476 320237650
662608519 587194741 248333491
682706903 234894538 987055635
282451812 996408456 560316952
996788276 884451839 608792353
434056537 54982 260989315
462822434 961191310 889719007
789905754 267...

result:

ok 54336 tokens

Test #5:

score: 0
Accepted
time: 26ms
memory: 3660kb

input:

6651
11001011001010010011110110010110000110001001111010010100001111000110011101101111111001000000101111000000111100111101101001001110100100011000110100001111100111010010111101
111001001000011100010000010000101001100010101010011101000111
111000001011010101110011011101100101110001101001111011000001100...

output:

626239859 431472056 799730862
945869557 583694547 922778558
48484395 773904859 953960075
313464930 307861090 914038723
753639408 575509833 79534993
290894760 853012093 530010807
399439704 935806969 680349690
936377302 558133368 96977502
0 253190206 253190207
597520246 521323417 104155280
624327893 4...

result:

ok 19953 tokens

Test #6:

score: 0
Accepted
time: 22ms
memory: 3656kb

input:

1818
100100111001111111100011010100101001100111010001001111001001100111001100110110011000110011101011000010110000
101100101100011010011110110010110101000101111101111110011111001100110011101110110111101001001010011101010001111111001110101000010011101000110
10100110000110001110001011011000000000110100...

output:

82905479 981463770 614087348
402065242 111012079 579717920
687796174 998416909 482204603
927454996 983762112 216334066
274598303 290029644 940337217
521132570 745205265 724053929
48101403 927224706 45414653
437442794 780121713 335722828
717689130 538250201 616644690
854719287 626755268 646976888
454...

result:

ok 5454 tokens

Test #7:

score: 0
Accepted
time: 16ms
memory: 3964kb

input:

660
11001001010101100111110001001100101000100011001100100101010100110111010101010101001110110010101111001011101010110100101111011000110111011000100000110110000100001111011100001001110001101101011011110110010011101100000100111001100011101011101100010011100110100000101100001111010011011001000100100110...

output:

179475926 830740731 735864457
300011827 666769111 615310743
417078753 804958758 286256933
367207041 334311900 737263277
414031048 246893533 57718907
556668470 721998747 407456193
47492043 648259123 306556791
608888046 180921665 729919735
990084006 353488046 173916157
160028480 910943334 925535004
51...

result:

ok 1980 tokens

Test #8:

score: 0
Accepted
time: 20ms
memory: 4112kb

input:

190
10101001010010000001101100101000111001111100000100101000001100000010011100010100001010110100101011001110011010010100001101110110100100001111010010100111011010100011101110100100000111000010000010110011010100110100100010100010011111111011011000000111001000100000000100101101011011011110100101110000...

output:

320792152 475707589 458426631
574411852 98894637 634964052
724906973 562788866 989752091
998841331 560752777 314515891
642161009 452518535 303647972
447316467 686430472 755826679
551375663 407058573 787719973
956536366 318209091 141904426
395071411 208662833 386260857
345543628 20891097 887468243
84...

result:

ok 570 tokens

Test #9:

score: 0
Accepted
time: 21ms
memory: 6084kb

input:

19
111110110100101011011101110110100100110011111000000101011110100001001011000101000011011111110000100011111111011010111010100001000011110011010110010011111011100000110110110101101101000101101110111000101011000000100010000100101100100010001011001010110111111011001110011010011011100110110010001000110...

output:

397281028 260686725 500351877
43166703 882077983 683345901
698806741 164557574 24527165
683453249 907430258 101521290
19853877 324288477 222789997
864709484 978366690 983949548
868226448 699718057 87235918
765711463 216229631 555174780
469170279 406437232 467521487
493903455 708579480 610512746
8469...

result:

ok 57 tokens

Test #10:

score: 0
Accepted
time: 23ms
memory: 14876kb

input:

3
1111111011001111100010100111011101011000100000110011100101111001100000001100001110000111001110100101110110011000011110010011100111100101011110000100100110100100110110010011010011000110000101110101110111110111001101111101000100111100011111100111100111000111111000000110110110001010000110101100101011...

output:

502751780 544366442 481158793
183664371 169511983 362400758
459114042 926983786 429060651

result:

ok 9 tokens

Test #11:

score: 0
Accepted
time: 19ms
memory: 21000kb

input:

1
1001000001110011011000000001010111010000101101100010111101110001111011000111111111100011000010101111010111000101110001111001010110011010100100110101111111111000110000100000110101111110100100100101111101101100100001010110000101111100000111000001111110111101101100010110000101001001011000110100001111...

output:

764809354 701614387 361744586

result:

ok 3 tokens

Test #12:

score: 0
Accepted
time: 16ms
memory: 20808kb

input:

1
1100101101111011011010101101110010111100101001000110000010101111111011101101010000101010000010101011101000101011010010101111011011011001000000011011010101000101101101010111011101011101101000010000001101001001011100000101101101010001010110010011110100001011011010100101001001111011100011011100111000...

output:

964366896 170124143 2668967

result:

ok 3 tokens

Test #13:

score: 0
Accepted
time: 19ms
memory: 21064kb

input:

1
1100100010000000010101111010000001010001011000101110111100111010011110011111001101111110011100011100000111000001000110111111101010000000000100000010011011100001101111010100010000110101001001100011011010011101110010110110001000001000011011011111011111100000101010110011001001000010110010111100110000...

output:

304779555 126518955 259309020

result:

ok 3 tokens

Test #14:

score: 0
Accepted
time: 18ms
memory: 21004kb

input:

1
1111011010011010011101110111100100110000001110000010110010011101110101110000110010110111011110111010011100101010100001101001100110111011010001100110110001010000000111000010011010110110010100010000101010111000011111000101100111101001010100001110010100011101001111100101100101010000000001010000101111...

output:

420781235 611001123 742802727

result:

ok 3 tokens

Test #15:

score: 0
Accepted
time: 26ms
memory: 20936kb

input:

1
1010011111000000111111011010010011011100100111100100000100001011010000011010101110001110011100101100100011010110001100111111001111111000010001001111010001001100011000010101111011010010010101110001101100110111110001011110110110100010000100100010111110100111111011110110100111110010001010110000111100...

output:

593991915 333071800 116254862

result:

ok 3 tokens

Extra Test:

score: 0
Extra Test Passed