CPACK


Submit solution

Points: 1
Time limit: 1.0s
Memory limit: 1G

Problem type

Ví dụ

Ví dụ 1

input

6 3
4 2 3 5 8 1
4
12
2

output

3
6
1

Comments

There are no comments at the moment.