##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
| # | Title | Points | Solved | Admin | |
|---|---|---|---|---|---|
You are given stones. The weight of stone is .
You have a bag with capacity . You may choose any subset of stones whose total weight is at most .
It is guaranteed that there exists a non-empty subset of stones whose total weight is exactly .
You do not need to find such an exact subset. You only need to choose a subset whose total weight is at least of and at most .
The input is given in the following format:
For each test case, first output an integer , the number of chosen stones.
Then output distinct integers , the indices of the chosen stones.
The total weight of the chosen stones must be at most and at least of .
The output format is:
If , the second line may be empty.
The chosen stones have total weight .
This does not fill the bag exactly, but it is still valid because is exactly of and does not exceed the capacity.