luogu#P12196. [NOISG 2025 Prelim] Lasers 2
[NOISG 2025 Prelim] Lasers 2
3 10 10
2 5 9
1 3 1
4 7 10
6
10 10 50
8 8 0
3 3 0
6 6 2
7 7 9
1 1 50
5 5 21
6 6 4
10 10 4
10 10 3
10 10 3
9
4 17 0
2 4 1000000000
6 9 1000000000
8 13 1000000000
15 16 1000000000
4
提示
Subtasks
For all testcases, the input will satisfy the following bounds:
- for all
- for all
Your program will be tested on input instances that satisfy the following restrictions:
Subtask | Marks | Additional constraints |
---|---|---|
Sample test cases | ||
No additional constraints |
Sample Test Case 1 Explanation
This test case is valid for subtasks , and .
The laser toy in the above figure corresponds to this test case. Pavement can unlock the first and second sliding walls for a total cost of dollars. He can then slide the first sliding wall such that it spans columns to , and slide the second sliding wall to span columns to .
This leaves lasers (in columns , and ) unblocked, which is the maximum possible.
Sample Test Case 2 Explanation
This test case is valid for subtasks to .
Sample Test Case 3 Explanation
This test case is valid for subtasks , and .