QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#308306#1450. Noiseezteam1#AC ✓2771ms144484kbC++147.8kb2024-01-19 21:05:082024-01-19 21:05:08

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 12ms
memory: 65100kb

input:

5 3
1 2 3 4 5
2 3 4

output:

3

result:

ok answer is '3'

Test #2:

score: 0
Accepted
time: 9ms
memory: 65180kb

input:

5 2
100 199 300 201 299
200 300

output:

2

result:

ok answer is '2'

Test #3:

score: 0
Accepted
time: 12ms
memory: 65120kb

input:

3 3
1 1 1
1 2 3

output:

0

result:

ok answer is '0'

Test #4:

score: 0
Accepted
time: 15ms
memory: 63040kb

input:

2 2
6 2
4 4

output:

0

result:

ok answer is '0'

Test #5:

score: 0
Accepted
time: 12ms
memory: 65084kb

input:

1 1
99
99

output:

1

result:

ok answer is '1'

Test #6:

score: 0
Accepted
time: 15ms
memory: 63136kb

input:

50 1
4 2 2 2 3 4 2 5 3 1 1 2 4 1 2 4 1 4 3 4 5 5 4 2 3 5 1 3 3 4 2 1 5 2 4 2 2 4 2 2 1 2 2 5 3 1 4 3 3 2
1

output:

24

result:

ok answer is '24'

Test #7:

score: 0
Accepted
time: 1033ms
memory: 101792kb

input:

400000 1
4 4 1 1 4 2 4 2 1 2 2 3 1 3 3 2 3 1 5 3 2 5 2 2 5 2 3 2 1 2 5 4 3 1 1 1 4 2 5 5 1 1 5 3 5 1 2 5 1 3 1 1 3 5 4 3 3 4 5 4 3 3 4 5 1 3 4 3 5 1 1 2 5 1 2 4 5 4 1 1 2 5 1 2 1 2 2 1 3 2 4 4 5 2 3 2 3 2 2 5 2 5 1 2 1 2 5 5 5 3 4 5 4 1 3 1 1 3 1 3 3 2 2 1 2 3 3 5 2 3 1 5 5 3 2 3 2 1 3 2 5 1 1 2 2 4...

output:

159777

result:

ok answer is '159777'

Test #8:

score: 0
Accepted
time: 1034ms
memory: 100324kb

input:

400000 1
999995 999995 999996 999999 999996 999996 999998 999997 999995 999999 999997 999995 999996 1000000 1000000 999997 1000000 999997 999996 999997 999998 999998 999997 999996 999997 999995 999997 999997 999998 999995 999997 999999 999999 999999 999997 999997 999996 1000000 999996 999995 999996 ...

output:

199891

result:

ok answer is '199891'

Test #9:

score: 0
Accepted
time: 1021ms
memory: 100576kb

input:

400000 2
3 4 3 1 2 2 5 1 4 5 4 2 3 4 5 4 4 2 2 1 4 1 3 4 3 1 2 1 1 4 2 4 5 2 2 4 1 5 4 1 1 4 3 5 3 2 4 2 1 2 5 4 4 3 1 1 5 2 4 4 4 5 1 5 2 2 4 2 5 5 1 3 4 1 3 3 1 5 2 3 1 5 2 4 2 2 2 3 5 1 2 4 3 2 2 3 1 1 1 4 4 1 2 3 5 4 3 5 4 4 2 3 5 3 1 3 2 5 2 2 2 1 4 3 5 3 3 1 4 1 4 4 3 5 4 4 3 3 4 3 2 3 1 1 3 5...

output:

64258

result:

ok answer is '64258'

Test #10:

score: 0
Accepted
time: 1029ms
memory: 98592kb

input:

400000 2
1000000 999999 999999 999998 999999 999996 999998 1000000 999998 999999 999995 999998 999995 999999 999997 999995 999995 1000000 999999 999999 999999 1000000 999996 999995 999999 999996 999996 1000000 999995 1000000 999998 1000000 999998 999995 999998 999998 999998 999998 999996 999995 1000...

output:

99775

result:

ok answer is '99775'

Test #11:

score: 0
Accepted
time: 1016ms
memory: 99416kb

input:

400000 4
4 3 2 5 4 2 4 1 5 5 1 5 4 2 3 5 3 5 5 2 5 2 1 4 4 3 3 3 5 1 5 5 1 2 4 5 1 2 1 5 5 2 3 1 1 3 1 2 2 4 2 2 2 4 1 1 2 1 4 4 5 5 5 1 2 3 2 4 3 4 5 5 1 1 4 1 1 2 5 3 2 2 3 3 5 2 5 4 5 5 5 1 4 1 2 2 3 3 4 1 5 2 1 1 3 2 5 4 5 3 4 1 5 5 1 3 5 4 5 3 2 5 1 3 1 4 5 1 5 2 1 5 3 1 2 5 5 2 1 1 2 1 3 5 2 4...

output:

22973

result:

ok answer is '22973'

Test #12:

score: 0
Accepted
time: 1058ms
memory: 99508kb

input:

400000 4
999998 999998 999999 1000000 999999 999997 999995 1000000 999996 1000000 1000000 999995 999996 999999 999999 999995 1000000 1000000 999995 999995 1000000 999996 999996 999997 999995 1000000 999999 999997 999998 999997 999999 1000000 999996 999997 999996 999996 999998 1000000 999996 999996 9...

output:

10941

result:

ok answer is '10941'

Test #13:

score: 0
Accepted
time: 1052ms
memory: 97308kb

input:

400000 1000
1000000 1000000 999997 999997 999996 999997 999996 999997 999996 999997 1000000 999999 999995 999999 999995 999996 999999 999996 999998 999997 1000000 999997 999997 999997 1000000 999996 999999 999995 1000000 999996 999997 999995 999997 999998 999996 999999 999999 999998 999998 999996 99...

output:

0

result:

ok answer is '0'

Test #14:

score: 0
Accepted
time: 1118ms
memory: 102888kb

input:

400000 100000
926087 222552 310481 95437 887588 767138 684400 290786 613779 815203 822561 504936 377512 907526 41582 464073 695292 110935 202975 126038 980141 766347 828742 910083 668187 196726 614068 213480 340717 763730 469889 69506 696010 192190 626760 618351 992289 340477 1448 669430 312545 5784...

output:

0

result:

ok answer is '0'

Test #15:

score: 0
Accepted
time: 2771ms
memory: 135952kb

input:

400000 200000
54928 925862 884588 478401 24095 985135 753609 941996 138735 55355 436559 428826 209011 772790 300298 216097 655220 661633 621148 359755 658891 760369 242235 706904 591787 6094 523761 115835 653653 638869 865435 447065 422625 193783 367851 217549 407484 421848 685799 782759 337508 9721...

output:

0

result:

ok answer is '0'

Test #16:

score: 0
Accepted
time: 2630ms
memory: 141788kb

input:

400000 400000
345315 108291 355106 435818 455893 940041 18109 211711 347432 727146 183465 276606 839306 470615 785025 528656 799266 314645 233301 51382 497480 748414 36518 781636 214793 657536 118956 144736 924516 580636 656528 10695 586255 229672 593138 350537 139762 551886 638820 425096 868522 567...

output:

0

result:

ok answer is '0'

Test #17:

score: 0
Accepted
time: 1058ms
memory: 100300kb

input:

400000 1
317765 317765 317765 317765 317765 317765 317765 317765 317765 317765 317765 317765 317765 317765 317765 317765 317765 317765 317765 317765 317765 317765 317765 317765 317765 317765 317765 317765 317765 317765 317765 317765 317765 317765 317765 317765 317765 317765 317765 317765 317765 3177...

output:

400000

result:

ok answer is '400000'

Test #18:

score: 0
Accepted
time: 1070ms
memory: 100344kb

input:

400000 10
824191 824191 824191 824191 824191 824191 824191 824191 824191 824191 824191 824191 824191 824191 824191 824191 824191 824191 824191 824191 824191 824191 824191 824191 824191 824191 824191 824191 824191 824191 824191 824191 824191 824191 824191 824191 824191 824191 824191 824191 824191 824...

output:

399991

result:

ok answer is '399991'

Test #19:

score: 0
Accepted
time: 1105ms
memory: 102888kb

input:

400000 100000
749546 749546 749546 749546 749546 749546 749546 749546 749546 749546 749546 749546 749546 749546 749546 749546 749546 749546 749546 749546 749546 749546 749546 749546 749546 749546 749546 749546 749546 749546 749546 749546 749546 749546 749546 749546 749546 749546 749546 749546 749546...

output:

300001

result:

ok answer is '300001'

Test #20:

score: 0
Accepted
time: 2422ms
memory: 136932kb

input:

400000 200000
105281 105281 105281 105281 105281 105281 105281 105281 105281 105281 105281 105281 105281 105281 105281 105281 105281 105281 105281 105281 105281 105281 105281 105281 105281 105281 105281 105281 105281 105281 105281 105281 105281 105281 105281 105281 105281 105281 105281 105281 105281...

output:

200001

result:

ok answer is '200001'

Test #21:

score: 0
Accepted
time: 2494ms
memory: 140056kb

input:

400000 300000
236825 236825 236825 236825 236825 236825 236825 236825 236825 236825 236825 236825 236825 236825 236825 236825 236825 236825 236825 236825 236825 236825 236825 236825 236825 236825 236825 236825 236825 236825 236825 236825 236825 236825 236825 236825 236825 236825 236825 236825 236825...

output:

100001

result:

ok answer is '100001'

Test #22:

score: 0
Accepted
time: 2569ms
memory: 141064kb

input:

400000 400000
592560 592560 592560 592560 592560 592560 592560 592560 592560 592560 592560 592560 592560 592560 592560 592560 592560 592560 592560 592560 592560 592560 592560 592560 592560 592560 592560 592560 592560 592560 592560 592560 592560 592560 592560 592560 592560 592560 592560 592560 592560...

output:

1

result:

ok answer is '1'

Test #23:

score: 0
Accepted
time: 1041ms
memory: 101840kb

input:

400000 1
872425 872424 872424 872425 872423 872424 872425 872425 872423 872425 872423 872423 872424 872424 872425 872425 872424 872423 872423 872425 872423 872423 872424 872423 872425 872423 872425 872425 872423 872425 872424 872425 872423 872423 872425 872423 872425 872424 872424 872423 872424 8724...

output:

400000

result:

ok answer is '400000'

Test #24:

score: 0
Accepted
time: 1052ms
memory: 97652kb

input:

400000 10
906142 906143 906143 906144 906144 906142 906144 906143 906143 906143 906144 906142 906144 906144 906142 906143 906144 906142 906144 906144 906144 906142 906142 906142 906144 906142 906143 906143 906142 906144 906144 906144 906142 906144 906142 906144 906143 906144 906144 906143 906142 906...

output:

399991

result:

ok answer is '399991'

Test #25:

score: 0
Accepted
time: 1112ms
memory: 103976kb

input:

400000 100000
368623 368624 368624 368623 368624 368623 368623 368623 368625 368624 368623 368623 368625 368625 368624 368624 368623 368623 368624 368624 368625 368624 368623 368623 368625 368623 368624 368625 368624 368624 368624 368624 368623 368624 368623 368624 368625 368623 368624 368624 368624...

output:

300001

result:

ok answer is '300001'

Test #26:

score: 0
Accepted
time: 2472ms
memory: 134028kb

input:

400000 200000
662342 662341 662341 662342 662342 662342 662342 662341 662341 662340 662342 662341 662340 662340 662342 662342 662340 662340 662342 662340 662340 662340 662341 662342 662340 662341 662342 662341 662340 662341 662340 662341 662342 662341 662340 662340 662340 662340 662341 662341 662341...

output:

200001

result:

ok answer is '200001'

Test #27:

score: 0
Accepted
time: 2504ms
memory: 138960kb

input:

400000 300000
723253 723253 723252 723252 723252 723252 723253 723253 723253 723253 723253 723253 723253 723252 723251 723252 723253 723253 723252 723252 723252 723251 723252 723252 723251 723251 723253 723252 723253 723252 723253 723251 723252 723251 723252 723252 723251 723253 723253 723253 723251...

output:

100001

result:

ok answer is '100001'

Test #28:

score: 0
Accepted
time: 2567ms
memory: 139940kb

input:

400000 400000
760049 760050 760049 760048 760050 760049 760048 760049 760048 760049 760048 760050 760048 760048 760050 760048 760049 760049 760049 760049 760050 760049 760049 760048 760048 760048 760049 760050 760049 760048 760048 760050 760050 760049 760050 760048 760048 760048 760048 760050 760050...

output:

1

result:

ok answer is '1'

Test #29:

score: 0
Accepted
time: 1053ms
memory: 97548kb

input:

400000 1
445510 445510 445510 445510 445510 445510 445510 445510 445510 445510 445510 445510 445510 445510 445510 445510 445510 445510 445510 445510 445510 445510 445510 445510 445510 445510 445510 445510 445510 445510 445510 445510 445510 445510 445510 445510 445510 445510 445510 445510 445510 4455...

output:

400000

result:

ok answer is '400000'

Test #30:

score: 0
Accepted
time: 1050ms
memory: 97796kb

input:

400000 10
479229 479229 479229 479229 479229 479229 479229 479229 479229 479229 479229 479229 479229 479229 479229 479229 479229 479229 479229 479229 479229 479229 479229 479229 479229 479229 479229 479229 479229 479229 479229 479229 479229 479229 479229 479229 479229 479229 479229 479229 479229 479...

output:

399991

result:

ok answer is '399991'

Test #31:

score: 0
Accepted
time: 1102ms
memory: 101180kb

input:

400000 100000
941708 941708 941708 941708 941708 941708 941708 941708 941708 941708 941708 941708 941708 941708 941708 941708 941708 941708 941708 941708 941708 941708 941708 941708 941708 941708 941708 941708 941708 941708 941708 941708 941708 941708 941708 941708 941708 941708 941708 941708 941708...

output:

300001

result:

ok answer is '300001'

Test #32:

score: 0
Accepted
time: 2421ms
memory: 139460kb

input:

400000 200000
235427 235427 235427 235427 235427 235427 235427 235427 235427 235427 235427 235427 235427 235427 235427 235427 235427 235427 235427 235427 235427 235427 235427 235427 235427 235427 235427 235427 235427 235427 235427 235427 235427 235427 235427 235427 235427 235427 235427 235427 235427...

output:

200001

result:

ok answer is '200001'

Test #33:

score: 0
Accepted
time: 2476ms
memory: 139436kb

input:

400000 300000
296338 296338 296338 296338 296338 296338 296338 296338 296338 296338 296338 296338 296338 296338 296338 296338 296338 296338 296338 296338 296338 296338 296338 296338 296338 296338 296338 296338 296338 296338 296338 296338 296338 296338 296338 296338 296338 296338 296338 296338 296338...

output:

100001

result:

ok answer is '100001'

Test #34:

score: 0
Accepted
time: 2543ms
memory: 142848kb

input:

400000 400000
333135 333135 333135 333135 333135 333135 333135 333135 333135 333135 333135 333135 333135 333135 333135 333135 333135 333135 333135 333135 333135 333135 333135 333135 333135 333135 333135 333135 333135 333135 333135 333135 333135 333135 333135 333135 333135 333135 333135 333135 333135...

output:

1

result:

ok answer is '1'

Test #35:

score: 0
Accepted
time: 1033ms
memory: 102036kb

input:

400000 1
18595 18596 18596 18595 18596 18595 18595 18597 18597 18595 18597 18595 18596 18596 18595 18596 18595 18596 18597 18596 18595 18595 18596 18596 18597 18597 18595 18595 18596 18597 18597 18597 18596 18595 18596 18596 18596 18597 18595 18596 18595 18595 18597 18596 18597 18595 18596 18597 185...

output:

400000

result:

ok answer is '400000'

Test #36:

score: 0
Accepted
time: 1035ms
memory: 100624kb

input:

400000 10
52314 52316 52316 52315 52316 52315 52314 52316 52315 52314 52316 52315 52316 52316 52314 52316 52314 52315 52314 52315 52314 52316 52315 52316 52316 52316 52314 52315 52315 52315 52314 52315 52315 52316 52316 52315 52316 52315 52315 52315 52315 52315 52315 52316 52316 52315 52315 52315 52...

output:

10577

result:

ok answer is '10577'

Test #37:

score: 0
Accepted
time: 1109ms
memory: 100452kb

input:

400000 100000
514794 514795 514793 514793 514795 514794 514795 514794 514794 514793 514793 514795 514794 514794 514793 514795 514795 514793 514794 514795 514793 514793 514793 514795 514795 514794 514794 514793 514794 514795 514795 514793 514793 514793 514795 514793 514794 514794 514795 514794 514793...

output:

0

result:

ok answer is '0'

Test #38:

score: 0
Accepted
time: 2415ms
memory: 134692kb

input:

400000 200000
832625 832626 832624 832625 832626 832625 832625 832624 832624 832625 832625 832624 832624 832624 832625 832624 832625 832626 832624 832626 832624 832626 832624 832626 832626 832624 832625 832626 832626 832624 832624 832626 832626 832626 832626 832626 832625 832625 832626 832624 832626...

output:

0

result:

ok answer is '0'

Test #39:

score: 0
Accepted
time: 2489ms
memory: 138884kb

input:

400000 300000
869421 869423 869421 869422 869421 869423 869421 869422 869423 869423 869422 869423 869423 869422 869423 869423 869422 869422 869423 869421 869422 869422 869422 869422 869423 869423 869423 869422 869422 869422 869423 869423 869423 869422 869421 869421 869422 869421 869421 869423 869421...

output:

0

result:

ok answer is '0'

Test #40:

score: 0
Accepted
time: 2538ms
memory: 142680kb

input:

400000 400000
930334 930333 930332 930332 930333 930333 930333 930332 930334 930333 930332 930334 930334 930334 930334 930333 930332 930332 930333 930334 930334 930332 930333 930332 930332 930332 930333 930332 930332 930332 930332 930332 930332 930332 930334 930334 930334 930332 930332 930332 930332...

output:

0

result:

ok answer is '0'

Test #41:

score: 0
Accepted
time: 1032ms
memory: 99604kb

input:

300001 10
444102 444103 444103 444102 444103 444102 444102 444103 444103 444102 444102 444103 444102 444103 444103 444102 444103 444102 444102 444103 444102 444103 444103 444102 444102 444103 444103 444102 444103 444102 444102 444103 444103 444102 444102 444103 444102 444103 444103 444102 444102 444...

output:

12500

result:

ok answer is '12500'

Test #42:

score: 0
Accepted
time: 2382ms
memory: 138700kb

input:

390909 150000
427620 427621 427621 427620 427621 427620 427620 427621 427621 427620 427620 427621 427620 427621 427621 427620 427621 427620 427620 427621 427620 427621 427621 427620 427620 427621 427621 427620 427621 427620 427620 427621 427621 427620 427620 427621 427620 427621 427621 427620 427620...

output:

1

result:

ok answer is '1'

Test #43:

score: 0
Accepted
time: 2510ms
memory: 142220kb

input:

399999 350000
459366 459367 459367 459366 459367 459366 459366 459367 459367 459366 459366 459367 459366 459367 459367 459366 459367 459366 459366 459367 459366 459367 459367 459366 459366 459367 459367 459366 459367 459366 459366 459367 459367 459366 459366 459367 459366 459367 459367 459366 459366...

output:

1

result:

ok answer is '1'

Test #44:

score: 0
Accepted
time: 1022ms
memory: 98572kb

input:

400000 10
620480 620481 620482 620481 620480 620481 620482 620481 620480 620481 620482 620481 620480 620481 620482 620481 620480 620481 620482 620481 620480 620481 620482 620481 620480 620481 620482 620481 620480 620481 620482 620481 620480 620481 620482 620481 620480 620481 620482 620481 620480 620...

output:

299993

result:

ok answer is '299993'

Test #45:

score: 0
Accepted
time: 1103ms
memory: 103060kb

input:

400000 100000
162967 162968 162969 162968 162967 162968 162969 162968 162967 162968 162969 162968 162967 162968 162969 162968 162967 162968 162969 162968 162967 162968 162969 162968 162967 162968 162969 162968 162967 162968 162969 162968 162967 162968 162969 162968 162967 162968 162969 162968 162967...

output:

225001

result:

ok answer is '225001'

Test #46:

score: 0
Accepted
time: 2378ms
memory: 136344kb

input:

400000 200000
562034 562035 562036 562035 562034 562035 562036 562035 562034 562035 562036 562035 562034 562035 562036 562035 562034 562035 562036 562035 562034 562035 562036 562035 562034 562035 562036 562035 562034 562035 562036 562035 562034 562035 562036 562035 562034 562035 562036 562035 562034...

output:

150001

result:

ok answer is '150001'

Test #47:

score: 0
Accepted
time: 2437ms
memory: 138648kb

input:

400000 300000
980920 980921 980922 980921 980920 980921 980922 980921 980920 980921 980922 980921 980920 980921 980922 980921 980920 980921 980922 980921 980920 980921 980922 980921 980920 980921 980922 980921 980920 980921 980922 980921 980920 980921 980922 980921 980920 980921 980922 980921 980920...

output:

75001

result:

ok answer is '75001'

Test #48:

score: 0
Accepted
time: 2537ms
memory: 142684kb

input:

400000 400000
399810 399811 399812 399811 399810 399811 399812 399811 399810 399811 399812 399811 399810 399811 399812 399811 399810 399811 399812 399811 399810 399811 399812 399811 399810 399811 399812 399811 399810 399811 399812 399811 399810 399811 399812 399811 399810 399811 399812 399811 399810...

output:

1

result:

ok answer is '1'

Test #49:

score: 0
Accepted
time: 1096ms
memory: 102956kb

input:

400000 100000
387749 387749 387749 387749 387749 387749 387749 387749 387749 387749 387749 387749 387749 387749 387749 387749 387749 387749 387749 387749 387749 387749 387749 387749 387749 387749 387749 387749 387749 387749 387749 387749 387749 387749 387749 387749 387749 387749 387749 387749 387749...

output:

294037

result:

ok answer is '294037'

Test #50:

score: 0
Accepted
time: 2426ms
memory: 139496kb

input:

400000 250000
786313 786313 786313 786313 786313 786313 786313 786313 786313 786313 786313 786313 786313 786313 786313 786313 786313 786313 786313 786313 786313 786313 786313 786313 786313 786313 786313 786313 786313 786313 786313 786313 786313 786313 786313 786313 786313 786313 786313 786313 786313...

output:

141844

result:

ok answer is '141844'

Test #51:

score: 0
Accepted
time: 2512ms
memory: 144484kb

input:

400000 400000
292778 292778 292778 292778 292778 292778 292778 292778 292778 292778 292778 292778 292778 292778 292778 292778 292778 292778 292778 292778 292778 292778 292778 292778 292778 292778 292778 292778 292778 292778 292778 292778 292778 292778 292778 292778 292778 292778 292778 292778 292778...

output:

1

result:

ok answer is '1'

Test #52:

score: 0
Accepted
time: 1083ms
memory: 103164kb

input:

400000 100000
745180 745180 745180 745180 745180 745180 745180 745180 745180 745180 745180 745180 745180 745180 745180 745180 745180 745180 745180 745180 745180 745180 745180 745180 745180 745180 745180 745180 745180 745180 745180 745180 745180 745180 745180 745180 745180 745180 745180 745180 745180...

output:

34014

result:

ok answer is '34014'

Test #53:

score: 0
Accepted
time: 2413ms
memory: 138452kb

input:

400000 250000
583576 583576 583576 583576 583576 583576 583576 583576 583576 583576 583576 583576 583576 583576 583576 583576 583576 583576 583576 583576 583576 583576 583576 583576 583576 583576 583576 583576 583576 583576 583576 583576 583576 583576 583576 583576 583576 583576 583576 583576 583576...

output:

688

result:

ok answer is '688'

Test #54:

score: 0
Accepted
time: 2509ms
memory: 142880kb

input:

400000 400000
798024 798024 798024 798024 798024 798024 798024 798024 798024 798024 798024 798024 798024 798024 798024 798024 798024 798024 798024 798024 798024 798024 798024 798024 798024 798024 798024 798024 798024 798024 798024 798024 798024 798024 798024 798024 798024 798024 798024 798024 798024...

output:

0

result:

ok answer is '0'

Test #55:

score: 0
Accepted
time: 1088ms
memory: 101944kb

input:

400000 100000
229745 229745 229745 229745 229745 229745 229745 229744 229745 229745 229746 229745 229745 229746 229746 229744 229745 229744 229746 229745 229745 229746 229745 229745 229745 229745 229745 229745 229745 229745 229746 229745 229745 229745 229745 229746 229744 229745 229744 229745 229745...

output:

0

result:

ok answer is '0'

Test #56:

score: 0
Accepted
time: 2385ms
memory: 139588kb

input:

400000 250000
338323 338323 338322 338323 338322 338323 338322 338323 338323 338323 338323 338323 338323 338323 338323 338323 338323 338322 338323 338323 338323 338323 338323 338323 338324 338323 338323 338323 338323 338324 338324 338323 338322 338323 338323 338323 338323 338324 338323 338323 338323...

output:

0

result:

ok answer is '0'

Test #57:

score: 0
Accepted
time: 2526ms
memory: 141992kb

input:

400000 400000
907468 907467 907468 907467 907467 907467 907467 907467 907467 907467 907467 907467 907467 907467 907467 907467 907467 907467 907467 907467 907467 907466 907467 907467 907467 907467 907467 907468 907467 907467 907467 907467 907467 907468 907467 907467 907467 907467 907467 907467 907467...

output:

0

result:

ok answer is '0'