60 6 1 58
C 114 CC 115 C 3 ?
60 6 1 58
C 54 CC 115 C 3 ?
60 6 1 58
C 54 C 60 CC 115 C 3 ?
60 6 1 58
C 54 C 60
CC 115 C 3 ?
3 0 1 2
C 3 CC 4 C 2 ?
60 10 23 58
C 110 CC 13 C 25 ? 
60 10 23 58
C 110 CC 133 C 25 ? 
60 10 23 58
C 110 CC 9 CC 4 CC 2 CC 3 CC 7 CC 5 CC 9
CC 1 CC 2 CC 1 CC 3 CC 4 CC 6 CC 9 CC 4 CC 4 C 25 ? 
100 7 15 95
C 193 CC 108 C 120 ?
100 7 15 95
C 193 CC 108 C 1 C 1 C 1 C 1 C 1
C 1 C 1 C 1 C 1 C 1 C 1 C 1 C 1 C 1 C 1 C 1 C 1 C 1 C 1 C 1 ?
100 7 15 95
C 2000000193 CC 108 C 20 ?
27 5 19 0
C 49 CC 41 C 19 ?
27 5 19 0
C 49 CC 32 C 32 CC 41 C 19 ?
27 5 19 0
C 49 CC 41 C 41 CC 41 C 19 ?
253 6 13 97
C 500 CC 260 C 169 C 1 ?
253 6 13 97
C 500 CC 260 C 169 CC 1 ?
253 6 13 97
C 500 CC 260 C 169 C 91 CC 260 C 169 ?
72 8 17 32
CC 8 C 72 CC 81 C 57 ?
72 8 17 32
C 136 CC 2 C 2 CC 81 C 57 ?
72 8 17 32
C 136 CC 2 C 74 CC 81 C 57 ?
500 342 88 419
C 658 CC 746 C 169 CC 202 C 279 CC 746 C 169 ?
500 342 88 419
C 658 CC 746 C 169 CC 202 C 779 CC 746 C 169 ?
500 342 88 419
C 658 CC 746 C 53 CC 53 C 169 ?
402 348 309 389
CC 1838 CC 326 C 2620 CC 391 CC 374 C 259 C 63 C 1898 C 3790 C 383 CC 2562 C 2562 C 3843 CC 2213 C 1586 CC 761 CC 822 C 1583 CC 418 C 3284 CC 733 CC 2450 C 719 CC 1886 CC 1499 ?
139 9 6 128
CC 155 CC 202 C 1321 CC 930 CC 523 C 1175 CC 275 C 16 C 1092 C 1 CC 985 CC 1076 C 671 CC 275 C 414 CC 275 C 17 C 1231 C 599 CC 358 CC 159 C 763 C 128 C 139 CC 275 C 17 ?
776 347 140 165
CC 2025 C 3144 C 86 C 776 CC 1345 C 7553 C 5839 C 369 CC 1345 C 5225 CC 1345 C 751 C 3921 C 4041 C 1049 C 119 CC 1339 C 2765 CC 6633 CC 174 C 4605 C 7203 CC 7357 C 6362 CC 1107 C 1703 C 180 CC 1345 C 751 ?
246 243 8 147
C 495 C 1303 C 1799 C 96 C 1476 C 2460 CC 257 C 107 CC 1622 C 1390 C 136 C 1968 CC 257 C 503 CC 166 CC 23 C 454 CC 36 C 1739 CC 257 C 107 C 692 C 196 CC 257 C 107 C 1626 C 492 CC 257 C 2471 C 1417 C 59 CC 1483 C 2414 C 53 CC 257 C 61 C 16 CC 30 CC 1098 C 816 CC 257 C 107 C 1786 C 204 C 323 ?
481 438 417 405
C 2929 CC 623 CC 799 C 12 C 4295 C 1 CC 941 C 460 CC 941 C 3827 CC 509 CC 432 C 2 C 3825 CC 332 CC 47 CC 5263 C 832 CC 941 C 1149 CC 2438 C 787 C 4684 CC 2065 C 5077 C 4195 C 885 C 2683 C 414 CC 941 C 12 ?
818 721 256 182
C 5823 C 565 C 4120 CC 2178 C 5673 C 8180 CC 1650 CC 5437 CC 2768 C 7401 CC 4819 C 7703 C 388 CC 1015 CC 974 C 74 C 6005 CC 1171 C 74 C 1915 CC 656 C 465 C 8371 C 2567 CC 1050 CC 6370 C 4035 C 4090 CC 1171 CC 1811 CC 4469 CC 5025 CC 5758 C 5964 C 1636 CC 3683 C 4484 C 6003 C 558 CC 1171 C 74 ?
558 183 430 422
CC 1895 C 2828 C 4464 CC 805 C 5 C 2 C 1 CC 2141 C 1822 C 2232 CC 218 CC 34 CC 28 CC 79 C 5261 CC 3632 CC 3222 C 3068 CC 805 C 1921 C 2564 CC 536 C 4110 CC 805 ?
206 156 95 25
C 462 CC 4 CC 347 C 1175 CC 351 C 969 C 824 CC 351 C 145 CC 85 CC 266 CC 624 C 1181 C 676 C 148 CC 223 CC 128 C 1092 C 83 CC 32 CC 319 C 557 C 1236 C 1030 C 1648 CC 351 C 1793 C 206 CC 351 C 351 CC 90 CC 261 ?
247 217 89 210
C 1512 CC 366 C 1354 C 908 C 80 CC 366 C 8 C 118 C 1824 C 2036 CC 2391 C 2082 C 147 C 278 C 216 CC 87 C 1816 CC 1982 C 1982 C 1235 C 494 CC 173 C 667 CC 366 C 98 CC 285 CC 617 CC 2317 CC 2052 C 2328 CC 366 C 860 CC 366 C 49 C 36 C 12 C 1348 C 663 C 234 C 988 C 494 CC 36 C 1610 C 155 C 2470 CC 366 C 126 ?
164 83 79 22
CC 963 CC 580 C 1788 CC 80 C 264 C 399 C 117 C 120 C 435 CC 1149 CC 939 CC 822 C 999 CC 324 C 57 CC 1358 C 1461 CC 324 C 57 ?
187 70 29 49
C 1052 C 1496 C 258 C 116 CC 333 C 75 C 240 C 1840 CC 1665 C 1033 C 1072 C 778 C 139 CC 333 C 18 CC 499 CC 1372 CC 870 C 195 C 56 CC 333 C 167 C 1101 CC 288 C 1036 CC 27 CC 170 CC 136 C 167 ?
377 7 364 341
CC 2070 C 3194 CC 734 C 21 C 2598 CC 734 C 23 C 3350 C 1760 CC 2596 CC 552 C 4027 CC 191 C 2453 C 369 CC 1857 C 734 C 3721 C 49 C 1885 C 1885 CC 772 C 1526 CC 3567 CC 1476 CC 2221 CC 1625 CC 3576 CC 3433 C 1572 C 1885 C 2462 CC 1919 CC 1319 CC 746 CC 3388 C 1894 C 2958 CC 2515 C 1819 C 3016 C 2639 C 754 CC 734 C 3750 C 377 C 685 C 69 CC 734 ?
962 917 49 95
CC 1710 CC 1094 C 8621 CC 1056 C 63 C 853 CC 2192 C 6330 CC 8319 CC 454 C 2851 CC 1056 C 6828 CC 627 C 4733 C 2562 C 66 CC 1056 CC 4727 C 3767 C 92 C 5258 C 514 C 2886 CC 1056 C 4904 C 101 C 7125 CC 1472 C 278 C 702 C 8658 CC 1056 C 2980 CC 8371 C 8371 CC 1056 C 916 C 4950 CC 1056 C 10289 C 387 CC 773 CC 161 CC 8275 C 7434 C 813 CC 1056 ?
483 454 259 124
C 2927 CC 771 CC 4587 C 3426 C 1804 C 128 CC 771 C 1737 CC 771 C 3186 C 857 CC 3144 C 4321 C 381 CC 771 C 288 CC 771 C 2 C 1252 CC 771 C 3186 CC 392 CC 2401 C 4242 C 3701 C 163 CC 771 C 135 ?
367 16 133 332
C 1452 CC 4011 C 993 C 2183 C 101 CC 4020 CC 2182 C 3266 CC 1042 CC 1776 C 3185 C 3440 C 3155 C 11 CC 3549 C 3549 CC 484 C 484 CC 484 C 1952 C 673 C 61 CC 56 C 46 C 1478 CC 484 C 131 C 37 C 1417 CC 484 C 66 C 1886 C 3153 CC 2555 C 1223 C 2454 CC 1760 C 3357 C 882 C 219 CC 484 ?
889 612 414 145
C 3833 C 3556 CC 1580 C 206 C 63 CC 1073 C 611 C 884 CC 1580 C 153 C 116 C 4867 CC 698 CC 262 CC 5827 C 4120 CC 1580 ?
183 11 116 36
C 1069 C 492 C 75 CC 117 CC 1045 C 1711 CC 288 C 63 C 68 C 157 C 62 C 445 ?
359 255 249 325
C 2976 C 1725 CC 3361 C 2713 C 2872 CC 4107 C 876 C 3231 CC 712 CC 1875 C 2587 CC 1960 C 883 C 1436 CC 712 C 3324 C 2293 C 121 C 1921 C 233 C 359 CC 712 C 15 C 268 CC 2597 C 540 C 2950 C 703 CC 3353 C 3263 CC 712 CC 850 CC 2917 C 971 C 3371 CC 2300 C 1001 C 2786 C 86 CC 215 CC 497 ?
613 538 393 570
C 2527 C 5516 C 2343 C 110 CC 1081 C 318 C 118 C 2484 CC 1081 C 166 C 1 C 269 C 2484 CC 994 CC 700 C 2920 CC 1081 C 235 C 162 C 39 C 3097 CC 1081 C 2307 CC 72 C 4976 CC 1081 CC 3093 C 1277 ?
589 362 576 181
C 6117 CC 803 C 4337 C 1729 CC 1443 C 3248 C 5890 CC 803 C 5493 C 22 CC 803 C 4559 C 367 CC 570 C 3620 C 484 C 2945 CC 803 C 26 C 369 C 2175 C 5075 C 4108 CC 1513 ?
144 36 23 105
C 396 CC 57 CC 218 C 62 C 69 C 664 C 56 CC 275 CC 497 C 772 CC 275 C 11 C 51 C 645 CC 119 CC 710 C 903 C 70 CC 275 ?
376 95 190 107
C 2501 C 517 C 271 CC 2858 C 2858 CC 471 C 23 C 1952 CC 471 CC 1625 C 1344 CC 471 C 3103 CC 282 CC 565 CC 2317 C 1660 CC 471 C 50 CC 3661 C 2202 C 3415 C 345 CC 471 C 471 CC 387 CC 2693 C 1952 C 1504 CC 1498 C 1498 CC 427 CC 420 C 83 ?
877 387 707 249
C 2244 C 7465 CC 5425 C 7607 CC 401 C 829 C 1101 C 337 CC 1139 C 1904 CC 1197 C 1197 C 7893 CC 35 C 696 C 1739 CC 4752 CC 2443 C 5672 CC 5342 C 5711 C 508 CC 611 CC 1463 C 18 C 1179 CC 1197 C 458 ?
712 209 702 133
C 576 CC 3528 CC 3842 C 7297 C 4272 C 4221 C 5388 C 359 CC 8062 C 5214 C 2848 CC 2186 C 7170 CC 280 CC 925 CC 921 CC 1440 C 4368 C 622 C 3657 CC 5260 CC 1490 C 6653 CC 6226 CC 4982 C 3376 CC 8008 C 5872 CC 1205 C 569 ?
228 66 158 10
C 390 CC 1369 CC 44 CC 2049 C 726 C 912 C 1600 C 224 C 781 C 131 CC 156 CC 164 C 148 C 400 CC 299 CC 249 C 148 C 266 C 134 CC 486 CC 107 C 1049 C 1824 C 1781 C 1774 C 93 CC 19 CC 544 C 1019 CC 1570 C 430 CC 320 C 1178 CC 574 C 2224 CC 320 ?
416 104 27 321
C 1560 C 3682 C 62 CC 755 C 3667 C 1749 C 331 CC 476 CC 279 C 122 C 3794 C 167 C 1513 CC 1773 CC 1077 CC 4017 C 4522 CC 755 C 755 C 4143 CC 1007 C 3936 CC 239 CC 16 C 2751 CC 755 C 18 C 104 C 3942 CC 3279 C 1405 C 3896 C 2764 C 225 CC 102 C 1350 CC 3379 C 467 C 416 CC 755 C 2835 CC 556 CC 4433 C 1661 CC 755 ?
598 437 389 51
C 2682 C 5497 CC 5365 CC 1573 C 5277 C 221 C 2169 C 2389 C 2179 CC 3231 CC 842 C 4614 C 496 CC 1148 C 338 ?
0

Cases 1-3: sample input
Case 4: check input over multiple lines
Case 5: check minimum spins for each number
Case 6: check non-full turn on second spin
Case 7: check too many spins on second spin
Case 8: check OK second spin, but done over multiple turns
Case 9: check too many spins on third turn
Case 10: check OK third spin, but done over multiple turns
Case 11: check LARGE first spin
Case 12: new example done correctly
Case 13: bad second spin, third spin put back to first num, rest OK
Case 14: bad third spin, but put back to first num, rest OK
Cases 15-16: lock open, then one extra spin
Case 17: lock open, then re-open
Case 18: start CC, then OK
Case 19: good first, then bad CC, then C to get to first, but not full
Case 20: same as 19, but C to get to first now full
Case 21: good first three, then bad CC, then C to get to first, but not full
Case 22: same as 21, but C to get to first now full
Case 23: good first two, then C and CC combo to get back to 2nd number
Cases 24-50: random cases
