Xếp gạch


Submit solution

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

Problem type

Ví dụ

Ví dụ 1

input

5 3
2 5 1 4 6
1 3 4

output

4

Comments

There are no comments at the moment.