imesecan | May.16.2016 at 09:17:44 AM | |
0 | --- Test 1 --- 10 8 20 9 9 8 11 8 20 13 12
--- Pattern --- 29
|
imesecan | May.16.2016 at 09:18:16 AM | |
1 | Sample Inputs are different from the test cases of the questions.
Sample Input 3: 12 85 23 22 94 27 23 86 25 85 90 73 67
Sample Output 3 137
Sample Input 4 15 69 68 42 68 82 21 53 39 42 61 54 22 63 58 59
Sample Output 4 182
Sample Input 5 20 53 91 53 46 70 50 70 63 81 48 20 95 35 80 68 21 48 40 22 93
Sample Output 5 240
|
imesecan | May.16.2016 at 09:19:09 AM | |
2 | Sample Input 6 40 33 91 73 29 47 62 47 69 70 98 46 52 49 95 83 72 29 49 36 95 34 54 21 96 62 43 64 80 50 30 48 90 27 41 70 35 72 43 31 30
Sample Output 6 519
Sample Input 7 6 8 2 9 8 9 1
Sample Output 7 8
Sample Input 8 6 1 2 10 8 9 1
Sample Output 8 8
|