QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#31195#965. Tradeflower#WA 1087ms6512kbC++20868b2022-05-04 18:48:122022-05-04 18:48:14

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3476kb

input:

2 5
1 1
10 11

output:

1

result:

ok 1 number(s): "1"

Test #2:

score: 0
Accepted
time: 2ms
memory: 3616kb

input:

2 22
10 1
0 10000

output:

2

result:

ok 1 number(s): "2"

Test #3:

score: 0
Accepted
time: 3ms
memory: 3688kb

input:

1 0
1
0

output:

0

result:

ok 1 number(s): "0"

Test #4:

score: 0
Accepted
time: 1ms
memory: 3644kb

input:

100 100
27 64 97 65 62 73 4 99 39 28 73 80 22 58 49 47 28 63 8 36 1 98 81 74 22 48 44 1 40 46 28 9 42 18 74 97 14 34 53 58 58 34 35 96 32 82 32 17 36 4 46 79 14 15 82 9 7 56 75 73 95 57 2 10 4 59 25 28 91 71 34 26 6 67 52 48 10 36 69 21 84 28 50 7 50 99 64 92 46 83 25 39 57 96 94 87 53 79 20 75
47 9...

output:

6

result:

ok 1 number(s): "6"

Test #5:

score: 0
Accepted
time: 6ms
memory: 3624kb

input:

100 1000000000
92 10 63 82 27 70 84 27 51 82 31 89 36 87 88 4 78 94 98 80 85 36 5 76 72 43 18 57 25 25 68 97 70 15 66 33 21 48 75 96 57 80 87 84 74 83 81 20 2 73 67 10 4 62 77 37 88 48 7 86 56 69 65 20 63 60 95 55 95 1 60 61 82 49 51 69 80 81 63 21 67 56 48 94 42 91 44 19 81 58 16 79 36 66 61 55 73 ...

output:

100

result:

ok 1 number(s): "100"

Test #6:

score: 0
Accepted
time: 3ms
memory: 3692kb

input:

100 1000000000
120257228 557511186 386772241 2806964 773458571 348106345 915880772 645203887 358800633 71539475 90761197 668794032 828988857 53801363 163581988 334995719 656620400 748708478 180228942 195311072 632338909 421944369 384634443 401198678 512399678 259642866 663773698 116444419 278003602 ...

output:

14

result:

ok 1 number(s): "14"

Test #7:

score: 0
Accepted
time: 64ms
memory: 4056kb

input:

10000 10000
553 5780 2647 3284 1514 4103 7505 6005 1418 1765 2996 7475 6899 8544 2259 7743 4145 3695 368 6334 949 4674 3498 9956 1077 7837 4954 5947 4147 7667 1141 3136 7246 5437 7451 7813 8259 7729 5746 5970 1788 7713 4728 3035 6648 619 3256 5830 9341 7117 1475 2492 5235 5734 3590 2280 6501 481 415...

output:

15

result:

ok 1 number(s): "15"

Test #8:

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

input:

10000 1000000000
3 48 65 79 65 53 64 86 66 4 67 11 13 59 60 80 79 88 77 70 75 41 46 37 37 89 70 52 24 5 24 31 17 71 65 10 54 17 50 52 91 65 73 36 19 56 96 4 83 100 22 48 60 90 56 18 50 85 100 27 73 13 97 54 35 41 39 25 20 13 53 50 51 5 25 97 28 49 73 93 48 91 40 35 35 39 71 82 75 29 84 94 6 50 3 74 ...

output:

1818

result:

ok 1 number(s): "1818"

Test #9:

score: 0
Accepted
time: 59ms
memory: 4016kb

input:

10000 1000000000
17478881 846868180 252834662 584621530 688368711 649771552 897367118 857304150 840702693 367368413 387315882 785727134 410284672 300499440 142912462 428466550 918774960 630206990 117113626 804456081 773064621 590760931 912927447 934569708 61621694 446616310 754044998 568678757 98709...

output:

133

result:

ok 1 number(s): "133"

Test #10:

score: -100
Wrong Answer
time: 1087ms
memory: 6512kb

input:

100000 1000000
593 8988 4850 5332 302 7862 7748 2674 9256 1110 2765 2184 9013 9678 5509 2524 9918 9091 2399 9526 971 3951 1421 1339 2583 1139 5594 4113 981 5049 9790 4466 1625 470 829 5569 4768 103 2074 4627 8261 3326 6514 2951 9275 4486 2782 9908 7363 4876 7232 913 7950 4772 8333 5880 8968 9789 889...

output:

6

result:

wrong answer 1st numbers differ - expected: '143', found: '6'