QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#123376#5656. Vittorio Plays with LEGO BricksZhangYiDeWA 1ms3536kbC++232.4kb2023-07-12 14:13:192023-07-12 14:13:22

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4 0
2 7 11 13

output:

0

result:

ok single line: '0'

Test #2:

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

input:

4 1
2 7 11 13

output:

3

result:

ok single line: '3'

Test #3:

score: 0
Accepted
time: 0ms
memory: 3412kb

input:

4 100
2 7 11 13

output:

107

result:

ok single line: '107'

Test #4:

score: 0
Accepted
time: 0ms
memory: 3428kb

input:

4 3
2 5 8 11

output:

8

result:

ok single line: '8'

Test #5:

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

input:

294 6
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 44 46 48 50 52 54 56 58 60 62 64 66 68 70 73 75 77 79 81 83 85 87 89 91 93 95 97 99 101 103 105 107 109 111 113 115 117 120 122 124 126 128 130 132 134 136 138 140 142 144 146 148 150 152 154 157 159 161 163 165 167 169 171 173 175 177 ...

output:

588

result:

ok single line: '588'

Test #6:

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

input:

299 4
21 180 316 466 512 531 671 934 1053 1099 1172 1220 1267 1332 1381 1583 1696 1923 1952 3572 4022 4748 4813 5421 5449 5872 6033 6528 6627 6719 6793 6946 7165 7203 7288 7386 7579 7629 7770 7792 7958 8028 8047 8207 8367 8423 9275 9344 9593 9698 9746 9751 9820 10325 10424 10721 10844 11364 11703 11...

output:

1189

result:

ok single line: '1189'

Test #7:

score: 0
Accepted
time: 0ms
memory: 3448kb

input:

294 5
393135 3577904 5061427 5823192 6548720 7475926 9511723 9524062 9971156 10739460 11561118 13409068 13533915 16670936 19526970 19707605 20719911 21192675 23266760 28157267 29115886 37288768 37728409 43039823 46868936 48145551 49929407 52336370 56304872 57195168 58391542 60810864 62223593 6425057...

output:

1470

result:

ok single line: '1470'

Test #8:

score: -100
Wrong Answer
time: 1ms
memory: 3536kb

input:

295 694
1 3 5 7 9 11 13 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 47 49 51 53 55 57 59 61 63 65 68 70 72 74 76 78 80 83 85 87 89 91 93 95 97 99 101 104 106 108 110 112 114 117 119 121 123 125 127 129 132 134 136 138 140 143 145 147 149 151 153 155 157 159 161 163 165 167 169 172 174 176 178 180 1...

output:

2657

result:

wrong answer 1st lines differ - expected: '2626', found: '2657'