Comments
On kiyotaka → Codeforces Global Round 3, 7 years ago
0

By the time this solution was accepted, I also thought that the test data for this problem was a little weak:D

On kiyotaka → Codeforces Global Round 3, 7 years ago
0

54973406 My submission is Accepted after contest, but it's actually wrong. For instance, when get such inputs

6 3
18 75 245 847 1859 26

it outputs

6 5 4