QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#459843#4326. Maliandqiuzx100 ✓6ms4080kbC++20525b2024-06-30 14:39:122024-06-30 14:39:12

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 5
Accepted

Test #1:

score: 5
Accepted
time: 1ms
memory: 3420kb

input:

13 7 8

output:

5
1101010101010
1111111100000

result:

ok all correct!

Test #2:

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

input:

12 5 8

output:

4
101010010100
111111110000

result:

ok all correct!

Test #3:

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

input:

12 8 9

output:

6
110110110110
111111111000

result:

ok all correct!

Test #4:

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

input:

10 8 6

output:

5
1111011110
1111110000

result:

ok all correct!

Test #5:

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

input:

12 6 4

output:

2
101010101010
111100000000

result:

ok all correct!

Test #6:

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

input:

11 6 0

output:

0
11010101010
00000000000

result:

ok all correct!

Test #7:

score: 5
Accepted
time: 1ms
memory: 3576kb

input:

8 3 2

output:

1
10100100
11000000

result:

ok all correct!

Test #8:

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

input:

9 7 4

output:

4
111101110
111100000

result:

ok all correct!

Test #9:

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

input:

13 7 6

output:

4
1101010101010
1111110000000

result:

ok all correct!

Test #10:

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

input:

7 4 1

output:

1
1101010
1000000

result:

ok all correct!

Subtask #2:

score: 50
Accepted

Dependency #1:

100%
Accepted

Test #11:

score: 50
Accepted
time: 1ms
memory: 3600kb

input:

4320 44 4275

output:

44
100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100...

result:

ok all correct!

Test #12:

score: 50
Accepted
time: 1ms
memory: 3492kb

input:

4620 2035 4615

output:

2033
1010101001010101001010101001010100101010100101010100101010010101010010101010010101001010101001010101001010101001010100101010100101010100101010010101010010101010010101001010101001010101001010101001010100101010100101010100101010010101010010101010010101001010101001010101001010101001010100101010100...

result:

ok all correct!

Test #13:

score: 50
Accepted
time: 1ms
memory: 3492kb

input:

4620 4604 5

output:

5
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110111111111...

result:

ok all correct!

Test #14:

score: 50
Accepted
time: 1ms
memory: 3580kb

input:

4620 55 4585

output:

55
100000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000...

result:

ok all correct!

Test #15:

score: 50
Accepted
time: 1ms
memory: 3476kb

input:

4680 4212 1890

output:

1701
1111111110111111111011111111101111111110111111111011111111101111111110111111111011111111101111111110111111111011111111101111111110111111111011111111101111111110111111111011111111101111111110111111111011111111101111111110111111111011111111101111111110111111111011111111101111111110111111111011111...

result:

ok all correct!

Test #16:

score: 50
Accepted
time: 1ms
memory: 3472kb

input:

4320 4104 2880

output:

2736
1111111111111111111011111111111111111110111111111111111111101111111111111111111011111111111111111110111111111111111111101111111111111111111011111111111111111110111111111111111111101111111111111111111011111111111111111110111111111111111111101111111111111111111011111111111111111110111111111111111...

result:

ok all correct!

Test #17:

score: 50
Accepted
time: 1ms
memory: 3512kb

input:

4320 4305 51

output:

51
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110111111111...

result:

ok all correct!

Test #18:

score: 50
Accepted
time: 1ms
memory: 3484kb

input:

4680 1032 4524

output:

998
10001000010001000010001000010001000010001000010001000010001000010000100010000100010000100010000100010000100010000100010000100010000100001000100001000100001000100001000100001000100001000100001000010001000010001000010001000010001000010001000010001000010001000010000100010000100010000100010000100010...

result:

ok all correct!

Test #19:

score: 50
Accepted
time: 1ms
memory: 3492kb

input:

4680 4659 63

output:

63
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111011111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok all correct!

Test #20:

score: 50
Accepted
time: 1ms
memory: 3516kb

input:

4680 16 4640

output:

16
100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000...

result:

ok all correct!

Test #21:

score: 50
Accepted
time: 1ms
memory: 3488kb

input:

4620 4590 57

output:

57
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok all correct!

Test #22:

score: 50
Accepted
time: 0ms
memory: 3604kb

input:

4320 1392 3960

output:

1276
1001001001001001001001001001000100100100100100100100100100100010010010010010010010010010001001001001001001001001001001000100100100100100100100100100100010010010010010010010010010001001001001001001001001001001000100100100100100100100100100100010010010010010010010010010001001001001001001001001001...

result:

ok all correct!

Test #23:

score: 50
Accepted
time: 1ms
memory: 3488kb

input:

4680 4658 36

output:

36
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok all correct!

Test #24:

score: 50
Accepted
time: 0ms
memory: 3428kb

input:

4680 4160 2408

output:

2141
1111111101111111101111111101111111101111111101111111101111111101111111101111111101111111101111111101111111101111111101111111101111111101111111101111111101111111101111111101111111101111111101111111101111111101111111101111111101111111101111111101111111101111111101111111101111111101111111101111111...

result:

ok all correct!

Test #25:

score: 50
Accepted
time: 1ms
memory: 3472kb

input:

4320 4280 6

output:

6
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok all correct!

Test #26:

score: 50
Accepted
time: 1ms
memory: 3492kb

input:

4680 12 4656

output:

12
100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok all correct!

Test #27:

score: 50
Accepted
time: 1ms
memory: 3492kb

input:

4320 4176 3296

output:

3187
1111111111111111111111111111101111111111111111111111111111101111111111111111111111111111101111111111111111111111111111101111111111111111111111111111101111111111111111111111111111101111111111111111111111111111101111111111111111111111111111101111111111111111111111111111101111111111111111111111111...

result:

ok all correct!

Test #28:

score: 50
Accepted
time: 1ms
memory: 3428kb

input:

4680 2223 4676

output:

2222
1010101010101010101001010101010101010100101010101010101010100101010101010101010010101010101010101010010101010101010101001010101010101010101001010101010101010100101010101010101010100101010101010101010010101010101010101010010101010101010101001010101010101010101001010101010101010100101010101010101...

result:

ok all correct!

Test #29:

score: 50
Accepted
time: 0ms
memory: 3584kb

input:

4320 4185 176

output:

171
11111111111111111111111111111110111111111111111111111111111111101111111111111111111111111111111011111111111111111111111111111110111111111111111111111111111111101111111111111111111111111111111011111111111111111111111111111110111111111111111111111111111111101111111111111111111111111111111011111111...

result:

ok all correct!

Test #30:

score: 50
Accepted
time: 1ms
memory: 3492kb

input:

4320 12 4276

output:

12
100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok all correct!

Test #31:

score: 50
Accepted
time: 1ms
memory: 3488kb

input:

4620 4576 63

output:

63
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok all correct!

Test #32:

score: 50
Accepted
time: 0ms
memory: 3596kb

input:

4320 51 4276

output:

51
100000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000...

result:

ok all correct!

Test #33:

score: 50
Accepted
time: 1ms
memory: 3480kb

input:

4620 2790 4543

output:

2744
1101101011010110101101011010110101101011010110101101101011010110101101011010110101101011010110101101011011010110101101011010110101101011010110101101011010110110101101011010110101101011010110101101011010110110101101011010110101101011010110101101011010110101101101011010110101101011010110101101011...

result:

ok all correct!

Test #34:

score: 50
Accepted
time: 0ms
memory: 3600kb

input:

4680 4641 3878

output:

3846
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101111111111111111111111111111111111111111111111111111111...

result:

ok all correct!

Test #35:

score: 50
Accepted
time: 1ms
memory: 3420kb

input:

4620 4590 1715

output:

1704
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok all correct!

Test #36:

score: 50
Accepted
time: 1ms
memory: 3596kb

input:

4620 4400 4620

output:

4400
1111111111111111111101111111111111111111101111111111111111111101111111111111111111101111111111111111111101111111111111111111101111111111111111111101111111111111111111101111111111111111111101111111111111111111101111111111111111111101111111111111111111101111111111111111111101111111111111111111101...

result:

ok all correct!

Test #37:

score: 50
Accepted
time: 1ms
memory: 3412kb

input:

4620 4235 4011

output:

3677
1111111111101111111111101111111111101111111111101111111111101111111111101111111111101111111111101111111111101111111111101111111111101111111111101111111111101111111111101111111111101111111111101111111111101111111111101111111111101111111111101111111111101111111111101111111111101111111111101111111...

result:

ok all correct!

Test #38:

score: 50
Accepted
time: 1ms
memory: 3496kb

input:

4620 21 4590

output:

21
100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok all correct!

Test #39:

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

input:

4320 2574 4311

output:

2569
1101011010110101101011010110101101011010110101101010110101101011010110101101011010110101101011010101101011010110101101011010110101101011010110101011010110101101011010110101101011010110101101010110101101011010110101101011010110101101011010101101011010110101101011010110101101011010110101101010110...

result:

ok all correct!

Test #40:

score: 50
Accepted
time: 1ms
memory: 3424kb

input:

4680 4660 6

output:

6
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101111111111111111111111111111111111111111111111111111111111111111...

result:

ok all correct!

Subtask #3:

score: 45
Accepted

Dependency #1:

100%
Accepted

Dependency #2:

100%
Accepted

Test #41:

score: 45
Accepted
time: 0ms
memory: 3848kb

input:

443520 443498 119

output:

119
11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok all correct!

Test #42:

score: 45
Accepted
time: 4ms
memory: 3952kb

input:

491400 84240 491346

output:

84231
100001000001000001000001000001000001000010000010000010000010000010000010000100000100000100000100000100000100001000001000001000001000001000001000010000010000010000010000010000010000100000100000100000100000100000100001000001000001000001000001000001000010000010000010000010000010000010000100000100...

result:

ok all correct!

Test #43:

score: 45
Accepted
time: 4ms
memory: 3976kb

input:

480480 121803 478720

output:

121357
10010001000100010001000100010001000100010001000100010001000100010001000100100010001000100010001000100010001000100010001000100010001000100010001001000100010001000100010001000100010001000100010001000100010001000100010010001000100010001000100010001000100010001000100010001000100010001000100100010...

result:

ok all correct!

Test #44:

score: 45
Accepted
time: 4ms
memory: 4044kb

input:

471240 274890 462825

output:

269982
11010110101011010110101011010110101011010110101011010110101011010110101011010110101011010110101011010110101011010110101011010110101011010110101011010110101011010110101011010110101011010110101011010110101011010110101011010110101011010110101011010110101011010110101011010110101011010110101011010...

result:

ok all correct!

Test #45:

score: 45
Accepted
time: 3ms
memory: 3892kb

input:

415800 424 415795

output:

424
10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok all correct!

Test #46:

score: 45
Accepted
time: 5ms
memory: 3896kb

input:

491400 475020 108066

output:

104464
11111111111111111111111111111011111111111111111111111111111011111111111111111111111111111011111111111111111111111111111011111111111111111111111111111011111111111111111111111111111011111111111111111111111111111011111111111111111111111111111011111111111111111111111111111011111111111111111111111...

result:

ok all correct!

Test #47:

score: 45
Accepted
time: 0ms
memory: 3880kb

input:

443520 443465 293832

output:

293796
11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok all correct!

Test #48:

score: 45
Accepted
time: 5ms
memory: 3952kb

input:

471240 469931 380292

output:

379236
11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok all correct!

Test #49:

score: 45
Accepted
time: 0ms
memory: 4044kb

input:

471240 471204 130

output:

130
11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok all correct!

Test #50:

score: 45
Accepted
time: 0ms
memory: 3852kb

input:

443520 628 443511

output:

628
10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok all correct!

Test #51:

score: 45
Accepted
time: 4ms
memory: 3912kb

input:

415800 166320 415700

output:

166280
10100101001010010100101001010010100101001010010100101001010010100101001010010100101001010010100101001010010100101001010010100101001010010100101001010010100101001010010100101001010010100101001010010100101001010010100101001010010100101001010010100101001010010100101001010010100101001010010100101...

result:

ok all correct!

Test #52:

score: 45
Accepted
time: 4ms
memory: 3964kb

input:

480480 348 480465

output:

348
10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok all correct!

Test #53:

score: 45
Accepted
time: 2ms
memory: 3876kb

input:

415800 285400 415789

output:

285393
11101101101101101110110110110110111011011011011011101101101101101101110110110110110111011011011011011101101101101101101110110110110110111011011011011011101101101101101101110110110110110111011011011011011101101101101101110110110110110110111011011011011011101101101101101110110110110110110111011...

result:

ok all correct!

Test #54:

score: 45
Accepted
time: 2ms
memory: 3824kb

input:

415800 410256 400400

output:

395062
11111111111111111111111111111111111111111111111111111111111111111111111111011111111111111111111111111111111111111111111111111111111111111111111111111011111111111111111111111111111111111111111111111111111111111111111111111111011111111111111111111111111111111111111111111111111111111111111111111...

result:

ok all correct!

Test #55:

score: 45
Accepted
time: 4ms
memory: 3960kb

input:

491400 168 491398

output:

168
10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok all correct!

Test #56:

score: 45
Accepted
time: 5ms
memory: 3988kb

input:

415800 415790 245

output:

245
11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok all correct!

Test #57:

score: 45
Accepted
time: 3ms
memory: 3924kb

input:

443520 298 443490

output:

298
10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok all correct!

Test #58:

score: 45
Accepted
time: 0ms
memory: 3956kb

input:

480480 480384 66192

output:

66179
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok all correct!

Test #59:

score: 45
Accepted
time: 5ms
memory: 3972kb

input:

491400 491392 24

output:

24
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok all correct!

Test #60:

score: 45
Accepted
time: 5ms
memory: 3868kb

input:

471240 471194 144

output:

144
11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok all correct!

Test #61:

score: 45
Accepted
time: 5ms
memory: 3948kb

input:

480480 480446 508

output:

508
11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok all correct!

Test #62:

score: 45
Accepted
time: 2ms
memory: 3988kb

input:

491400 491355 374

output:

374
11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok all correct!

Test #63:

score: 45
Accepted
time: 2ms
memory: 4068kb

input:

498960 498944 94

output:

94
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok all correct!

Test #64:

score: 45
Accepted
time: 4ms
memory: 3948kb

input:

471240 286 471236

output:

286
10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok all correct!

Test #65:

score: 45
Accepted
time: 0ms
memory: 3936kb

input:

480480 480459 92

output:

92
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok all correct!

Test #66:

score: 45
Accepted
time: 4ms
memory: 4080kb

input:

498960 42120 498190

output:

42055
100000000001000000000001000000000001000000000001000000000001000000000001000000000010000000000010000000000010000000000010000000000010000000000010000000000010000000000100000000000100000000000100000000000100000000000100000000000100000000001000000000001000000000001000000000001000000000001000000000...

result:

ok all correct!

Test #67:

score: 45
Accepted
time: 5ms
memory: 3888kb

input:

415800 415778 105

output:

105
11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok all correct!

Test #68:

score: 45
Accepted
time: 3ms
memory: 3944kb

input:

415800 488 415785

output:

488
10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok all correct!

Test #69:

score: 45
Accepted
time: 0ms
memory: 3820kb

input:

415800 415800 415794

output:

415794
11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok all correct!

Test #70:

score: 45
Accepted
time: 2ms
memory: 3932kb

input:

471240 97750 471150

output:

97732
100010000100001000010000100010000100001000010000100001000100001000010000100001000100001000010000100001000010001000010000100001000010001000010000100001000010000100010000100001000010000100001000100001000010000100001000100001000010000100001000010001000010000100001000010001000010000100001000010000...

result:

ok all correct!

Test #71:

score: 45
Accepted
time: 5ms
memory: 4040kb

input:

491400 491350 314

output:

314
11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok all correct!

Test #72:

score: 45
Accepted
time: 4ms
memory: 4056kb

input:

491400 496 491398

output:

496
10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok all correct!

Test #73:

score: 45
Accepted
time: 4ms
memory: 3900kb

input:

498960 52569 498925

output:

52566
100000000100000000100000000010000000010000000001000000001000000000100000000100000000010000000010000000001000000001000000000100000000100000000010000000010000000001000000001000000000100000000100000000010000000010000000001000000001000000000100000000100000000010000000010000000001000000001000000000...

result:

ok all correct!

Test #74:

score: 45
Accepted
time: 5ms
memory: 4076kb

input:

498960 498910 11

output:

11
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok all correct!

Test #75:

score: 45
Accepted
time: 4ms
memory: 3856kb

input:

443520 259 443478

output:

259
10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok all correct!

Test #76:

score: 45
Accepted
time: 4ms
memory: 4020kb

input:

443520 87780 443136

output:

87704
100001000010000100001000010000100001000010000100001000010000100001000010000100001000010000100000100001000010000100001000010000100001000010000100001000010000100001000010000100001000010000100000100001000010000100001000010000100001000010000100001000010000100001000010000100001000010000100000100001...

result:

ok all correct!

Test #77:

score: 45
Accepted
time: 5ms
memory: 3980kb

input:

498960 498958 512

output:

512
11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok all correct!

Test #78:

score: 45
Accepted
time: 5ms
memory: 4016kb

input:

443520 442750 199980

output:

199633
11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok all correct!

Test #79:

score: 45
Accepted
time: 2ms
memory: 3852kb

input:

443520 128576 442624

output:

128317
10010010001001000100100010010001001001000100100010010001001000100100100010010001001000100100010010001001001000100100010010001001000100100100010010001001000100100010010001001001000100100010010001001000100100100010010001001000100100010010001001001000100100010010001001000100100100010010001001000...

result:

ok all correct!

Test #80:

score: 45
Accepted
time: 6ms
memory: 3996kb

input:

498960 495396 168804

output:

167599
11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101111111111111...

result:

ok all correct!

Test #81:

score: 45
Accepted
time: 0ms
memory: 3980kb

input:

498960 682 498930

output:

682
10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok all correct!

Test #82:

score: 45
Accepted
time: 5ms
memory: 3844kb

input:

443520 443518 422

output:

422
11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok all correct!

Test #83:

score: 45
Accepted
time: 2ms
memory: 4064kb

input:

480480 480438 204204

output:

204187
11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok all correct!

Test #84:

score: 45
Accepted
time: 5ms
memory: 3972kb

input:

491400 491100 13104

output:

13096
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok all correct!

Test #85:

score: 45
Accepted
time: 5ms
memory: 4048kb

input:

480480 480469 88664

output:

88662
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok all correct!

Test #86:

score: 45
Accepted
time: 4ms
memory: 3976kb

input:

491400 73350 491365

output:

73345
100000100000010000001000001000000100000010000010000001000000100000100000010000001000000100000100000010000001000001000000100000010000010000001000000100000010000010000001000000100000100000010000001000001000000100000010000001000001000000100000010000010000001000000100000100000010000001000000100000...

result:

ok all correct!

Test #87:

score: 45
Accepted
time: 3ms
memory: 3960kb

input:

480480 480471 511

output:

511
11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok all correct!

Test #88:

score: 45
Accepted
time: 4ms
memory: 3988kb

input:

491400 167180 490932

output:

167021
10100100100100100100100100100100100100100100100101001001001001001001001001001001001001001001001010010010010010010010010010010010010010010010010010100100100100100100100100100100100100100100100101001001001001001001001001001001001001001001001001010010010010010010010010010010010010010010010010100...

result:

ok all correct!

Test #89:

score: 45
Accepted
time: 4ms
memory: 4024kb

input:

498960 674 498953

output:

674
10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok all correct!

Test #90:

score: 45
Accepted
time: 5ms
memory: 3932kb

input:

480480 480442 154

output:

154
11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok all correct!

Test #91:

score: 45
Accepted
time: 2ms
memory: 4068kb

input:

498960 482869 498645

output:

482565
11111111111111111111111111111110111111111111111111111111111111011111111111111111111111111111101111111111111111111111111111110111111111111111111111111111111011111111111111111111111111111101111111111111111111111111111110111111111111111111111111111111011111111111111111111111111111101111111111111...

result:

ok all correct!

Test #92:

score: 45
Accepted
time: 5ms
memory: 3932kb

input:

471240 471225 390

output:

390
11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok all correct!

Test #93:

score: 45
Accepted
time: 4ms
memory: 4012kb

input:

443520 150528 442880

output:

150311
10100100100100100100100100100100100100100100100100100101001001001001001001001001001001001001001001001001001001010010010010010010010010010010010010010010010010010010010100100100100100100100100100100100100100100100100100101001001001001001001001001001001001001001001001001001001010010010010010010...

result:

ok all correct!

Test #94:

score: 45
Accepted
time: 2ms
memory: 4044kb

input:

471240 471194 472

output:

472
11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok all correct!

Test #95:

score: 45
Accepted
time: 5ms
memory: 4004kb

input:

415800 410025 147125

output:

145082
11111111111111111111111111111111111111111111111111111111111111111111111011111111111111111111111111111111111111111111111111111111111111111111111011111111111111111111111111111111111111111111111111111111111111111111111011111111111111111111111111111111111111111111111111111111111111111111111011111...

result:

ok all correct!

Test #96:

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

input:

415800 184 415773

output:

184
10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok all correct!

Test #97:

score: 45
Accepted
time: 4ms
memory: 3952kb

input:

471240 104620 468435

output:

103998
10001000010001000010001000010001000010001000010001000010001000010001000010001000010001000010001000010001000010001000010001000010001000010001000010001000010001000010001000010001000010001000010001000010001000010001000010001000010001000010001000010001000010001000010001000010001000010001000010001...

result:

ok all correct!

Test #98:

score: 45
Accepted
time: 5ms
memory: 3964kb

input:

498960 341352 498795

output:

341240
11101101101101101101110110110110110110111011011011011011011101101101101101101110110110110110110111011011011011011011101101101101101101110110110110110110111011011011011011011101101101101101101110110110110110110111011011011011011011101101101101101101110110110110110110111011011011011011011101101...

result:

ok all correct!

Test #99:

score: 45
Accepted
time: 3ms
memory: 3960kb

input:

480480 479752 185328

output:

185048
11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok all correct!

Test #100:

score: 45
Accepted
time: 5ms
memory: 4004kb

input:

471240 471174 334356

output:

334310
11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok all correct!

Extra Test:

score: 0
Extra Test Passed