SOJ-3601(Cola)

【题目描述】

5瓶可乐换一瓶,一共喝n瓶,至少要多少钱

【解题思路】

n - (n - 1) / 5

你可能感兴趣的:(SOJ-3601(Cola))