Code
Judgement Details
Case#1 [409600 bytes][15 ms]: ok number of wagons 4
Case#2 [409600 bytes][27 ms]: ok number of wagons 3
Case#3 [409600 bytes][15 ms]: ok number of wagons 3
Case#4 [409600 bytes][31 ms]: ok number of wagons 1
Case#5 [409600 bytes][26 ms]: ok number of wagons 2
Case#6 [409600 bytes][17 ms]: ok number of wagons 4
Case#7 [409600 bytes][31 ms]: ok number of wagons 2
Case#8 [409600 bytes][31 ms]: ok number of wagons 4
Case#9 [409600 bytes][39 ms]: ok number of wagons 3
Case#10 [409600 bytes][15 ms]: ok number of wagons 4
Case#11 [409600 bytes][16 ms]: ok number of wagons 4
Case#12 [409600 bytes][31 ms]: ok number of wagons 4
Case#13 [409600 bytes][31 ms]: ok number of wagons 3
Case#14 [413696 bytes][14 ms]: ok number of wagons 4
Case#15 [409600 bytes][15 ms]: ok number of wagons 4
Case#16 [409600 bytes][32 ms]: ok number of wagons 2
Case#17 [409600 bytes][32 ms]: ok number of wagons 4
Case#18 [409600 bytes][31 ms]: ok number of wagons 4
Case#19 [413696 bytes][16 ms]: ok number of wagons 2
Case#20 [409600 bytes][31 ms]: ok number of wagons 4
Case#21 [409600 bytes][15 ms]: ok number of wagons 4
Case#22 [409600 bytes][31 ms]: ok number of wagons 4
Case#23 [409600 bytes][31 ms]: ok number of wagons 4
Case#24 [417792 bytes][63 ms]: ok number of wagons 4
Case#25 [417792 bytes][48 ms]: ok number of wagons 2
Case#26 [417792 bytes][27 ms]: ok number of wagons 4
Case#27 [417792 bytes][29 ms]: ok number of wagons 4
Case#28 [417792 bytes][31 ms]: ok number of wagons 4
Case#29 [417792 bytes][22 ms]: ok number of wagons 4
Case#30 [417792 bytes][46 ms]: ok number of wagons 17
Case#31 [421888 bytes][18 ms]: ok number of wagons 46
Case#32 [417792 bytes][107 ms]: ok number of wagons 37
Case#33 [417792 bytes][43 ms]: ok number of wagons 8
Case#34 [417792 bytes][17 ms]: ok number of wagons 20
Case#35 [417792 bytes][49 ms]: ok number of wagons 72
Case#36 [417792 bytes][16 ms]: ok number of wagons 21
Case#37 [421888 bytes][31 ms]: ok number of wagons 55
Case#38 [417792 bytes][62 ms]: ok number of wagons 39
Case#39 [417792 bytes][31 ms]: ok number of wagons 17
Case#40 [417792 bytes][52 ms]: ok number of wagons 17
Case#41 [417792 bytes][28 ms]: ok number of wagons 102
Case#42 [442368 bytes][44 ms]: ok number of wagons 26
Case#43 [442368 bytes][15 ms]: ok number of wagons 67
Case#44 [442368 bytes][15 ms]: ok number of wagons 53
Case#45 [442368 bytes][26 ms]: ok number of wagons 9
Case#46 [442368 bytes][32 ms]: ok number of wagons 21
Case#47 [442368 bytes][14 ms]: ok number of wagons 125
Case#48 [442368 bytes][15 ms]: ok number of wagons 26
Case#49 [442368 bytes][31 ms]: ok number of wagons 72
Case#50 [442368 bytes][31 ms]: ok number of wagons 45
Case#51 [442368 bytes][30 ms]: ok number of wagons 31
Case#52 [442368 bytes][15 ms]: ok number of wagons 26
Case#53 [442368 bytes][47 ms]: ok number of wagons 73
Case#54 [671744 bytes][37 ms]: ok number of wagons 88
Case#55 [671744 bytes][42 ms]: ok number of wagons 481
Case#56 [667648 bytes][78 ms]: ok number of wagons 248
Case#57 [667648 bytes][47 ms]: ok number of wagons 214
Case#58 [692224 bytes][62 ms]: ok number of wagons 54
Case#59 [671744 bytes][48 ms]: ok number of wagons 85
Case#60 [667648 bytes][65 ms]: ok number of wagons 854
Case#61 [950272 bytes][78 ms]: ok number of wagons 103
Case#62 [950272 bytes][62 ms]: ok number of wagons 603
Case#63 [950272 bytes][43 ms]: ok number of wagons 297
Case#64 [987136 bytes][62 ms]: ok number of wagons 26
Case#65 [950272 bytes][62 ms]: ok number of wagons 69
Case#66 [950272 bytes][46 ms]: ok number of wagons 66
Case#67 [978944 bytes][62 ms]: ok number of wagons 2304
Case#68 [950272 bytes][62 ms]: ok number of wagons 117
Case#69 [950272 bytes][62 ms]: ok number of wagons 736
Case#70 [950272 bytes][68 ms]: ok number of wagons 456
Case#71 [950272 bytes][78 ms]: ok number of wagons 299
Case#72 [950272 bytes][62 ms]: ok number of wagons 110
Case#73 [950272 bytes][62 ms]: ok number of wagons 109
Case#74 [978944 bytes][63 ms]: ok number of wagons 1496
Case#75 [954368 bytes][62 ms]: ok number of wagons 128
Case#76 [950272 bytes][62 ms]: ok number of wagons 916
Case#77 [954368 bytes][78 ms]: ok number of wagons 511
Case#78 [987136 bytes][78 ms]: ok number of wagons 18
Case#79 [950272 bytes][77 ms]: ok number of wagons 120
Case#80 [950272 bytes][94 ms]: ok number of wagons 106
Case#81 [978944 bytes][75 ms]: ok number of wagons 3624
Case#82 [4898816 bytes][359 ms]: ok number of wagons 322
Case#83 [4898816 bytes][323 ms]: ok number of wagons 8927
Case#84 [4898816 bytes][389 ms]: ok number of wagons 723
Case#85 [4837376 bytes][327 ms]: ok number of wagons 28
Case#86 [4870144 bytes][390 ms]: ok number of wagons 491
Case#87 [4866048 bytes][375 ms]: ok number of wagons 369
Case#88 [4898816 bytes][398 ms]: ok number of wagons 11588
Case#89 [4898816 bytes][378 ms]: ok number of wagons 23000
Case#90 [4898816 bytes][406 ms]: ok number of wagons 363
Case#91 [4898816 bytes][406 ms]: ok number of wagons 10386
Case#92 [4898816 bytes][403 ms]: ok number of wagons 1315
Case#93 [4898816 bytes][392 ms]: ok number of wagons 882
Case#94 [4866048 bytes][422 ms]: ok number of wagons 394
Case#95 [4866048 bytes][453 ms]: ok number of wagons 432
Case#96 [4898816 bytes][591 ms]: ok number of wagons 14175
Case#97 [4898816 bytes][671 ms]: ok number of wagons 14454
Case#98 [7790592 bytes][577 ms]: ok number of wagons 395
Case#99 [7389184 bytes][588 ms]: ok number of wagons 12397
Case#100 [7786496 bytes][534 ms]: ok number of wagons 1418
Case#101 [7757824 bytes][490 ms]: ok number of wagons 13
Case#102 [7761920 bytes][639 ms]: ok number of wagons 443
Case#103 [7757824 bytes][505 ms]: ok number of wagons 465
Case#104 [7393280 bytes][599 ms]: ok number of wagons 11426
Case#105 [7921664 bytes][610 ms]: ok number of wagons 17138
Case#106 [7790592 bytes][581 ms]: ok number of wagons 417
Case#107 [7323648 bytes][559 ms]: ok number of wagons 14923
Case#108 [7286784 bytes][588 ms]: ok number of wagons 2722
Case#109 [7786496 bytes][515 ms]: ok number of wagons 217
Case#110 [7757824 bytes][686 ms]: ok number of wagons 312
Case#111 [7761920 bytes][562 ms]: ok number of wagons 519
Case#112 [7921664 bytes][578 ms]: ok number of wagons 19353
Case#113 [7397376 bytes][640 ms]: ok number of wagons 12940
Case#114 [7786496 bytes][546 ms]: ok number of wagons 420
Case#115 [7323648 bytes][588 ms]: ok number of wagons 14962
Case#116 [7790592 bytes][578 ms]: ok number of wagons 1336
Case#117 [7761920 bytes][468 ms]: ok number of wagons 59
Case#118 [7761920 bytes][545 ms]: ok number of wagons 542
Case#119 [7757824 bytes][562 ms]: ok number of wagons 488
Case#120 [8445952 bytes][562 ms]: ok number of wagons 39281
Case#121 [8396800 bytes][578 ms]: ok number of wagons 39433
Case#122 [7786496 bytes][602 ms]: ok number of wagons 442
Case#123 [7319552 bytes][637 ms]: ok number of wagons 17617
Case#124 [7786496 bytes][612 ms]: ok number of wagons 1564
Case#125 [7262208 bytes][625 ms]: ok number of wagons 1027
Case#126 [7761920 bytes][640 ms]: ok number of wagons 510
Case#127 [7757824 bytes][686 ms]: ok number of wagons 538
Case#128 [7917568 bytes][729 ms]: ok number of wagons 21613
Case#129 [7917568 bytes][1109 ms]: ok number of wagons 21664
Case#130 [7786496 bytes][733 ms]: ok number of wagons 452
Case#131 [7319552 bytes][593 ms]: ok number of wagons 19923
Case#132 [7786496 bytes][658 ms]: ok number of wagons 1410
Case#133 [7790592 bytes][580 ms]: ok number of wagons 313
Case#134 [7757824 bytes][719 ms]: ok number of wagons 575
Case#135 [7753728 bytes][906 ms]: ok number of wagons 458
Case#136 [7917568 bytes][779 ms]: ok number of wagons 15031
Case#137 [7917568 bytes][765 ms]: ok number of wagons 22568