wukaichen888's blog

By wukaichen888, 11 months ago, In English

This code uses a round of backtracking greed and local dynamic programming.

It can be hacked by this data.

data.in
10 24
1 10001
1 10001
3 30000
3 30000
3 30000
3 30000
3 30000
3 30000
3 30000
3 30000
data.out
240000
user.out
230002
  • Vote: I like it
  • +16
  • Vote: I do not like it