12368 - Candles

All about problems in Volume 123. 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
brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

12368 - Candles

Post by brianfry713 » Wed Aug 21, 2013 9:14 pm

Input:

Code: Select all

2 87 17
2 5 27
8 89 17 82 23 93 23 88 4
4 88 4 67 84
4 17 50 26 93
2 43 70
7 75 44 58 13 12 51 17
8 10 57 7 91 79 99 66 18
2 99 58
8 17 41 91 34 91 68 26 84
1 47
10 85 90 79 49 53 29 65 91 38 21
9 81 52 47 46 21 49 96 78 6
3 19 48 46
1 16
3 44 78 70
6 14 11 44 62 64 73
6 6 62 98 54 42 49
10 87 22 100 83 99 57 95 69 5 92
1 72
4 77 49 83 42
2 94 37
3 9 61 100
4 23 97 67 64
8 18 3 19 70 85 69 26 31
8 82 22 70 53 87 46 1 22
9 62 67 76 36 75 36 35 88 10
4 6 26 81 75
8 51 44 64 19 70 46 8 3
9 78 56 5 75 8 26 66 22 92
1 57
8 28 92 5 90 75 62 15 7
7 94 57 32 57 27 53 2
7 56 72 16 11 76 90 70
4 55 91 97 47
8 15 27 91 71 16 17 33 30
3 21 75 31
2 31 57
5 84 43 12 55 58
4 82 100 43 35
6 34 32 53 33 46 79
3 16 94 91
10 75 13 20 49 95 24 31 51 80 66
6 91 72 55 64 53 54
8 40 60 91 23 64 75 20 42
7 87 87 87 87 61 51 58
1 45
3 91 48 12
8 45 2 79 51 17 83 57 75
2 16 17
6 31 92 15 24 40 2
10 79 40 22 81 97 34 78 30 76 25
3 83 21 95
1 71
3 95 27 89
7 94 58 12 24 1 79 47
10 80 8 70 19 81 51 67 14 28 48
9 4 41 71 24 87 83 46 1 78
3 90 46 66
7 9 42 99 87 40 38 18
10 60 88 80 10 55 46 89 54 34 92
4 57 15 32 91
10 33 68 84 74 13 2 72 74 43 70
10 34 59 78 33 18 17 13 27 71 58
7 77 43 58 22 51 24 54
2 36 38
9 19 11 74 20 34 99 14 3 58
8 13 87 80 31 4 44 9 26
3 76 2 48
5 76 98 9 29 39
4 18 100 14 28
5 34 13 23 99 67
2 46 79
1 78
1 26
1 22
3 26 97 57
3 81 32 70
1 60
1 84
7 60 50 56 36 35 20 58
3 86 41 31
6 11 8 77 88 80 98
1 5
6 47 29 78 78 99 19
9 11 54 17 70 3 24 57 37 43
4 70 80 6 100
5 69 59 23 56 38
10 46 95 17 92 23 95 21 73 65 9
3 18 77 4
1 100
10 9 94 25 78 73 31 29 68 99 39
10 54 77 62 52 23 30 95 45 24 16
10 88 76 52 58 53 56 78 4 67 38
8 92 68 70 74 96 89 24 87
1 29
5 44 80 37 73 75
3 97 42 2
6 17 54 93 69 61 22
5 27 60 22 70 27
0
AC output:

Code: Select all

Case 1: 871
Case 2: 432
Case 3: 76531
Case 4: 65321
Case 5: 9741
Case 6: 763
Case 7: 54321
Case 8: 86541
Case 9: 8541
Case 10: 86521
Case 11: 74
Case 12: 763210
Case 13: 75421
Case 14: 5431
Case 15: 61
Case 16: 8763
Case 17: 84321
Case 18: 65432
Case 19: 765421
Case 20: 72
Case 21: 54321
Case 22: 7321
Case 23: 7543
Case 24: 65321
Case 25: 65421
Case 26: 75431
Case 27: 75431
Case 28: 7652
Case 29: 65431
Case 30: 76521
Case 31: 75
Case 32: 87532
Case 33: 54321
Case 34: 76541
Case 35: 9641
Case 36: 97321
Case 37: 6321
Case 38: 5431
Case 39: 64321
Case 40: 7543
Case 41: 76432
Case 42: 9421
Case 43: 97321
Case 44: 8764
Case 45: 643210
Case 46: 8543
Case 47: 54
Case 48: 874
Case 49: 85421
Case 50: 761
Case 51: 9321
Case 52: 754321
Case 53: 8321
Case 54: 71
Case 55: 8762
Case 56: 74321
Case 57: 654321
Case 58: 643210
Case 59: 8642
Case 60: 86431
Case 61: 654320
Case 62: 63210
Case 63: 76321
Case 64: 643210
Case 65: 75421
Case 66: 632
Case 67: 654310
Case 68: 86321
Case 69: 6421
Case 70: 65421
Case 71: 76421
Case 72: 76432
Case 73: 973
Case 74: 87
Case 75: 62
Case 76: 751
Case 77: 9751
Case 78: 75420
Case 79: 60
Case 80: 84
Case 81: 65210
Case 82: 6521
Case 83: 65432
Case 84: 5
Case 85: 75421
Case 86: 654321
Case 87: 75432
Case 88: 65321
Case 89: 543210
Case 90: 54321
Case 91: 964
Case 92: 654320
Case 93: 543210
Case 94: 76531
Case 95: 86421
Case 96: 92
Case 97: 76431
Case 98: 7432
Case 99: 75421
Case 100: 75321
Check input and AC output for thousands of problems on uDebug!

Post Reply

Return to “Volume 123 (12300-12399)”