Input Total Cost

Input the total cost of sampling. The total cost translates to a number of samples, which in turn translates to a grid size, which is used to solve the Hot Spot problem.