12472 - Binary Substring

All about problems in Volume 124. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

Post Reply
plamplam
Experienced poster
Posts: 150
Joined: Fri May 06, 2011 11:37 am

12472 - Binary Substring

Post by plamplam »

Some random i/o for this problem.

Code: Select all

25
19017 22632 39
17314 19968 15
26675 29789 33
21571 23337 47
5928 21600 10
9514 15151 9
2473 10692 74
6111 9387 17
9335 17434 99
11023 11914 80
11327 23201 90
8538 15700 67
4974 28510 2
13561 20572 52
18868 24720 96
5273 16062 73
9662 17255 40
1056 22874 24
712 17275 69
3018 20131 71
1854 19552 5
621 5696 96
7837 14117 33
27830 32015 95
3498 26188 67

Code: Select all

Case 1: 19022
Case 2: 17327
Case 3: 26688
Case 4: 21598
Case 5: 5928
Case 6: 9514
Case 7: 2506
Case 8: 6114
Case 9: 9414
Case 10: 11072
Case 11: 11354
Case 12: 8576
Case 13: 4974
Case 14: 13561
Case 15: 18880
Case 16: 5273
Case 17: 9680
Case 18: 1072
Case 19: 788
Case 20: 3143
Case 21: 1856
Case 22: 704
Case 23: 7841
Case 24: 27838
Case 25: 3523
Be sure to use long long
You tried your best and you failed miserably. The lesson is 'never try'. -Homer Simpson

Post Reply

Return to “Volume 124 (12400-12499)”