冒险岛2水手服:zju 1366 cash machine 的O(n*cash)算法