##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
| # | Title | Points | Solved | Admin | |
|---|---|---|---|---|---|
There are prison cells in a row, numbered from to .
There is one guard in each cell. The direction of the guards is given by a string of length .
In particular, every guard sees their own cell.
Hiring guard costs .
For each test case, find the minimum total cost needed to hire some guards so that every cell is seen by at least one hired guard.