Code
Judgement Details
Case#1 [425984 bytes][47 ms]: ok contestant found the optimal answer: 1000000000
Case#2 [425984 bytes][16 ms]: ok contestant found the optimal answer: 340
Case#3 [14573568 bytes][593 ms]: ok contestant found the optimal answer: 411321413
Case#4 [17899520 bytes][437 ms]: ok contestant found the optimal answer: 100755932
Case#5 [430080 bytes][32 ms]: ok contestant found the optimal answer: 537092323
Case#6 [1925120 bytes][47 ms]: ok contestant found the optimal answer: 492516409
Case#7 [430080 bytes][15 ms]: ok contestant found the optimal answer: 44
Case#8 [425984 bytes][12 ms]: ok contestant found the optimal answer: 773
Case#9 [724992 bytes][15 ms]: ok contestant found the optimal answer: 493503
Case#10 [2314240 bytes][47 ms]: ok contestant found the optimal answer: 101056127
Case#11 [7569408 bytes][124 ms]: ok contestant found the optimal answer: 129968
Case#12 [14569472 bytes][531 ms]: ok contestant found the optimal answer: 375524431
Case#13 [19386368 bytes][249 ms]: ok contestant found the optimal answer: 75975
Case#14 [425984 bytes][47 ms]: ok contestant found the optimal answer: 2664
Case#15 [458752 bytes][15 ms]: ok contestant found the optimal answer: 140256
Case#16 [4362240 bytes][62 ms]: ok contestant found the optimal answer: 803105
Case#17 [14852096 bytes][578 ms]: ok contestant found the optimal answer: 162316123
Case#18 [458752 bytes][47 ms]: ok contestant found the optimal answer: 1002499
Case#19 [688128 bytes][15 ms]: ok contestant found the optimal answer: 1249999
Case#20 [14766080 bytes][398 ms]: ok contestant found the optimal answer: 250954854