- C24zhouyanchen's blog
样例
- @ 2025-6-6 11:26:40
input:
2000 10
500 1 0
400 4 0
300 5 1
400 5 1
200 5 0
500 4 5
400 4 0
320 2 0
410 3 0
400 3 5
output:
7430
input:
2000 10
500 1 0
400 4 0
300 5 1
400 5 1
200 5 0
500 4 5
400 4 0
320 2 0
410 3 0
400 3 5
output:
7430
By signing up a ZXOJ universal account, you can submit code and join discussions in all online judging services provided by us.