QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#83119#3110. Guessing Camelsxiaowuc1AC ✓701ms75820kbJava112.6kb2023-03-01 05:55:512023-03-01 05:56:15

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 74ms
memory: 35704kb

input:

65
45 51 16 63 40 21 17 50 43 57 4 36 26 5 59 44 48 8 39 1 49 53 33 29 30 56 18 28 62 47 60 25 32 41 34 13 15 64 2 38 23 31 54 6 19 20 24 42 14 46 9 12 22 35 37 11 10 3 55 65 52 61 7 27 58
28 57 22 47 46 32 65 49 10 23 26 41 63 56 42 15 59 11 1 21 37 17 44 20 40 54 38 24 19 30 5 61 31 52 33 34 12 35...

output:

529

result:

ok single line: '529'

Test #2:

score: 0
Accepted
time: 53ms
memory: 35316kb

input:

15
7 1 13 12 8 3 10 6 11 15 9 14 2 5 4
3 2 12 13 11 4 10 1 9 8 6 15 5 14 7
10 9 2 12 3 15 7 4 5 14 11 1 6 8 13

output:

26

result:

ok single line: '26'

Test #3:

score: 0
Accepted
time: 53ms
memory: 36132kb

input:

530
152 309 466 62 59 311 503 450 92 393 147 335 313 404 196 149 469 161 250 176 110 524 277 261 326 53 521 84 40 333 178 303 278 317 31 249 453 294 497 8 88 225 376 238 307 157 406 125 191 518 168 494 7 199 197 461 188 526 167 392 422 60 411 235 341 394 449 471 77 136 405 93 86 340 145 386 4 364 20...

output:

35553

result:

ok single line: '35553'

Test #4:

score: 0
Accepted
time: 69ms
memory: 36168kb

input:

573
80 191 268 274 35 296 355 521 322 169 168 225 315 215 199 339 97 507 455 141 498 492 462 179 39 273 366 476 87 192 338 418 474 104 408 253 51 495 88 243 484 288 363 539 463 133 236 158 266 450 426 442 470 122 246 331 116 218 396 371 64 103 137 208 499 252 513 561 190 369 397 570 278 233 548 114 ...

output:

43161

result:

ok single line: '43161'

Test #5:

score: 0
Accepted
time: 70ms
memory: 36228kb

input:

640
618 469 242 87 326 253 99 168 119 72 134 307 8 436 461 310 79 576 572 502 112 178 365 109 288 314 84 539 358 602 279 481 614 362 208 412 625 509 22 23 382 581 32 413 565 215 259 272 38 308 405 337 325 414 100 410 640 567 126 184 165 238 553 595 516 570 560 440 115 61 268 258 299 404 377 292 303 ...

output:

49627

result:

ok single line: '49627'

Test #6:

score: 0
Accepted
time: 484ms
memory: 58460kb

input:

57148
10762 46652 29032 15419 22122 22808 54638 8908 50116 7242 35154 18540 43299 47008 24206 36808 5582 41043 57051 26500 24380 52182 38687 48726 26685 40370 35334 51476 18266 33013 52821 22174 44026 34123 34798 40667 11963 8242 911 56845 45059 29184 55493 47012 45487 8595 3082 39195 35432 17178 44...

output:

408765778

result:

ok single line: '408765778'

Test #7:

score: 0
Accepted
time: 428ms
memory: 61416kb

input:

90112
47778 5350 8493 65636 10099 45343 27528 58057 15171 75067 83040 83375 67252 60701 40863 87074 6392 18787 68274 58274 61945 34188 56639 49840 64389 34645 10553 1743 53744 19287 71813 44830 60968 84711 12862 66865 13936 74597 12000 58 52829 64303 62398 39615 81558 63951 41960 75684 81145 42114 1...

output:

1016909006

result:

ok single line: '1016909006'

Test #8:

score: 0
Accepted
time: 377ms
memory: 50788kb

input:

42253
32986 38806 41289 31841 972 39407 28179 37998 16960 37711 18487 9748 28605 133 38965 6386 7476 9781 25192 15155 4139 19274 4450 32091 11474 10453 16686 6212 22854 10099 13901 11705 9944 29204 11366 14567 32342 30244 38020 31406 28603 34230 2047 20543 12493 37609 30740 6483 17253 4532 19004 155...

output:

222691010

result:

ok single line: '222691010'

Test #9:

score: 0
Accepted
time: 602ms
memory: 64732kb

input:

100000
2462 69236 40298 62864 7026 55635 90363 83590 55140 72556 60342 57393 98497 17990 10460 44323 53696 90253 78588 15265 86872 16625 7078 31128 55590 58945 13602 37771 4682 49788 64629 1499 71862 76492 72830 78197 39360 91051 72799 36186 45776 50571 33667 53992 2121 65122 70291 12804 36222 60587...

output:

1248711188

result:

ok single line: '1248711188'

Test #10:

score: 0
Accepted
time: 67ms
memory: 35764kb

input:

3
3 2 1
1 2 3
1 2 3

output:

0

result:

ok single line: '0'

Test #11:

score: 0
Accepted
time: 604ms
memory: 64420kb

input:

100000
88449 19873 71224 58987 42869 65121 31799 56413 86679 23400 45231 62838 10142 12026 81118 48751 18880 6658 92132 36125 10822 26092 11368 78043 62802 22189 48908 78505 17461 54213 65544 37408 599 12279 75346 49064 94984 32108 22031 89480 45654 59032 89027 76103 94868 1099 86454 91353 21217 106...

output:

1246601835

result:

ok single line: '1246601835'

Test #12:

score: 0
Accepted
time: 484ms
memory: 62296kb

input:

100000
80482 30958 46894 64054 15906 45801 41724 98869 31067 71929 60541 78192 50634 24513 40077 89879 23475 93692 4486 17027 38861 94897 24193 20437 37495 70663 68279 69204 93038 77644 38793 27005 51201 49896 45603 35280 30318 61423 25067 15098 63711 42614 12279 93878 20762 13696 57994 4590 87188 6...

output:

1248812618

result:

ok single line: '1248812618'

Test #13:

score: 0
Accepted
time: 682ms
memory: 72472kb

input:

200000
179590 101057 163835 94159 181400 191259 110630 113468 130566 63148 28360 99298 39214 26315 121807 23956 37478 101150 187537 17 93595 64519 5450 53236 73990 118680 9339 112743 49618 173023 164748 140218 187402 106497 128293 39654 90015 174706 18565 24784 160454 179200 42458 77443 85754 40069 ...

output:

4981984487

result:

ok single line: '4981984487'

Test #14:

score: 0
Accepted
time: 569ms
memory: 70808kb

input:

200000
122913 65019 40956 164650 161091 59114 29150 160156 169900 127020 117999 167337 14388 145041 26768 181531 168447 162421 22292 61908 87616 57499 7371 160545 159627 137035 172747 101211 10704 63079 119333 88965 125198 18712 14529 9789 28905 99043 190089 189676 66573 133118 65353 73475 52379 898...

output:

4984097629

result:

ok single line: '4984097629'

Test #15:

score: 0
Accepted
time: 701ms
memory: 72252kb

input:

200000
199101 173979 80159 68949 131082 131301 62132 197377 176892 6052 182276 40062 75151 100110 99285 103205 119017 173051 109068 22060 74916 76715 119242 162217 191924 133738 65418 188955 139526 126223 919 57500 59011 164815 176134 5433 148998 61510 62823 43444 18997 47023 198547 74661 142003 174...

output:

5006252551

result:

ok single line: '5006252551'

Test #16:

score: 0
Accepted
time: 55ms
memory: 35772kb

input:

4
2 3 1 4
2 1 4 3
2 4 3 1

output:

3

result:

ok single line: '3'

Test #17:

score: 0
Accepted
time: 612ms
memory: 72084kb

input:

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

output:

10021632347

result:

ok single line: '10021632347'

Test #18:

score: 0
Accepted
time: 667ms
memory: 71408kb

input:

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

output:

10024483328

result:

ok single line: '10024483328'

Test #19:

score: 0
Accepted
time: 672ms
memory: 75820kb

input:

200000
33464 69218 28849 109597 129795 152178 128489 142304 197272 29624 94774 120838 169804 192571 131496 92754 100210 56857 138886 21369 1617 155643 122717 129322 134486 80260 49857 25442 82535 75450 155214 128215 63380 170828 48123 173790 93449 37164 44767 163603 191321 40864 38586 28154 94959 93...

output:

0

result:

ok single line: '0'

Test #20:

score: 0
Accepted
time: 699ms
memory: 72920kb

input:

200000
144509 174629 172754 185593 177740 110455 197879 150441 111494 15805 96054 8002 98632 130446 4632 148397 82419 79646 104108 76670 94586 99651 176974 174008 85845 30576 158587 156158 73762 58081 29504 125266 73186 114302 122189 77926 160052 11725 40699 171822 105549 126720 185623 15417 81317 1...

output:

19999900000

result:

ok single line: '19999900000'

Test #21:

score: 0
Accepted
time: 60ms
memory: 35632kb

input:

2
1 2
1 2
1 2

output:

1

result:

ok single line: '1'

Test #22:

score: 0
Accepted
time: 47ms
memory: 35952kb

input:

2
1 2
2 1
1 2

output:

0

result:

ok single line: '0'