QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#55748#2960. Social DistancingGuanYunchangWA 7ms3760kbC++201.7kb2022-10-14 23:53:372022-10-14 23:53:38

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 2ms
memory: 3572kb

input:

9 2
2 6

output:

2

result:

ok single line: '2'

Test #2:

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

input:

10 3
1 4 7

output:

1

result:

ok single line: '1'

Test #3:

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

input:

6 2
2 5

output:

0

result:

ok single line: '0'

Test #4:

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

input:

100 5
7 14 47 78 99

output:

43

result:

ok single line: '43'

Test #5:

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

input:

6 1
3

output:

2

result:

ok single line: '2'

Test #6:

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

input:

3 1
1

output:

0

result:

ok single line: '0'

Test #7:

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

input:

4 2
1 3

output:

0

result:

ok single line: '0'

Test #8:

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

input:

4 2
2 4

output:

0

result:

ok single line: '0'

Test #9:

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

input:

5 2
1 3

output:

0

result:

ok single line: '0'

Test #10:

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

input:

5 2
2 4

output:

0

result:

ok single line: '0'

Test #11:

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

input:

5 2
3 5

output:

0

result:

ok single line: '0'

Test #12:

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

input:

5 2
1 4

output:

0

result:

ok single line: '0'

Test #13:

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

input:

5 2
2 5

output:

0

result:

ok single line: '0'

Test #14:

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

input:

7 1
1

output:

2

result:

ok single line: '2'

Test #15:

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

input:

1000 1
1

output:

499

result:

ok single line: '499'

Test #16:

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

input:

1000 1
2

output:

499

result:

ok single line: '499'

Test #17:

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

input:

1000 1
1000

output:

499

result:

ok single line: '499'

Test #18:

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

input:

1000 1
999

output:

499

result:

ok single line: '499'

Test #19:

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

input:

1000 500
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63 65 67 69 71 73 75 77 79 81 83 85 87 89 91 93 95 97 99 101 103 105 107 109 111 113 115 117 119 121 123 125 127 129 131 133 135 137 139 141 143 145 147 149 151 153 155 157 159 161 163 165 167 169 171 17...

output:

0

result:

ok single line: '0'

Test #20:

score: 0
Accepted
time: 7ms
memory: 3548kb

input:

1000 500
2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 72 74 76 78 80 82 84 86 88 90 92 94 96 98 100 102 104 106 108 110 112 114 116 118 120 122 124 126 128 130 132 134 136 138 140 142 144 146 148 150 152 154 156 158 160 162 164 166 168 170 172 ...

output:

0

result:

ok single line: '0'

Test #21:

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

input:

999 499
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63 65 67 69 71 73 75 77 79 81 83 85 87 89 91 93 95 97 99 101 103 105 107 109 111 113 115 117 119 121 123 125 127 129 131 133 135 137 139 141 143 145 147 149 151 153 155 157 159 161 163 165 167 169 171 173...

output:

0

result:

ok single line: '0'

Test #22:

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

input:

999 499
2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 72 74 76 78 80 82 84 86 88 90 92 94 96 98 100 102 104 106 108 110 112 114 116 118 120 122 124 126 128 130 132 134 136 138 140 142 144 146 148 150 152 154 156 158 160 162 164 166 168 170 172 1...

output:

0

result:

ok single line: '0'

Test #23:

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

input:

999 498
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63 65 67 69 71 73 75 77 79 81 83 85 87 89 91 93 95 97 99 101 103 105 107 109 111 113 115 117 119 121 123 125 127 129 131 133 135 137 139 141 143 145 147 149 151 153 155 157 159 161 163 165 167 169 171 173...

output:

1

result:

ok single line: '1'

Test #24:

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

input:

999 333
2 5 8 11 14 17 20 23 26 29 32 35 38 41 44 47 50 53 56 59 62 65 68 71 74 77 80 83 86 89 92 95 98 101 104 107 110 113 116 119 122 125 128 131 134 137 140 143 146 149 152 155 158 161 164 167 170 173 176 179 182 185 188 191 194 197 200 203 206 209 212 215 218 221 224 227 230 233 236 239 242 245 ...

output:

0

result:

ok single line: '0'

Test #25:

score: 0
Accepted
time: 4ms
memory: 3596kb

input:

1000 250
3 7 11 15 19 23 27 31 35 39 43 47 51 55 59 63 67 71 75 79 83 87 91 95 99 103 107 111 115 119 123 127 131 135 139 143 147 151 155 159 163 167 171 175 179 183 187 191 195 199 203 207 211 215 219 223 227 231 235 239 243 247 251 255 259 263 267 271 275 279 283 287 291 295 299 303 307 311 315 31...

output:

250

result:

ok single line: '250'

Test #26:

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

input:

100 3
9 12 24

output:

46

result:

ok single line: '46'

Test #27:

score: -100
Wrong Answer
time: 2ms
memory: 3568kb

input:

100 10
19 21 27 33 57 71 74 80 86 99

output:

37

result:

wrong answer 1st lines differ - expected: '39', found: '37'