返回题库

美元美分混淆

Dollar Cent Confusion

专题
Brainteaser / 脑筋急转弯
难度
L4

题目详情

一名男子去银行兑现一张支票。柜员在给钱时不小心把“美元”当成“美分”,把“美分”当成“美元”给了他。他没有检查金额,直接回家,并花了 5 美分买糖。之后他发现自己剩下的钱正好是支票金额的两倍。去银行之前他身上一分钱都没有。问这张支票的金额是多少?

A man went to his local bank to cash a check. When giving his money to the cashier, by mistake, gave him dollars as cents and cents as dollars. He didn't examine the money and just walked home and spent a nickel on some candy. He then found that he possessed exactly twice as much money as the check was worth. He had no money in his pocket before going to the bank. How much was the check for?

解析

设支票面额为 D+C100D + \frac{C}{100} 美元,其中 DD 是美元数,CC 是美分数。

他本应拿到 D+C100D + \frac{C}{100} 但柜员把美元和美分弄反了,所以他实际拿到的是 C+D100C + \frac{D}{100}

回家后他先花了 5 美分,因此剩下的钱为 C+D1000.05C + \frac{D}{100} - 0.05 根据题意,这正好是支票面额的两倍:

C+D1000.05=2(D+C100)C + \frac{D}{100} - 0.05 = 2\left(D + \frac{C}{100}\right)

两边同乘 100 并整理,得到

100C+D5=200D+2C98C=199D+5100C + D - 5 = 200D + 2C \\ 98C = 199D + 5

再结合 0C990 \le C \le 99,可求得唯一整数解为

D=31,C=63D=31,\quad C=63

因此支票金额是 31.63\boxed{31.63} 美元。


Original Explanation

He should have received D+C100D + \frac{C}{100} Instead, dollars and cents were swapped, so he received C+D100C + \frac{D}{100}

He spent 5 cents, so the amount left was C+D100=0.05C + \frac{D}{100} = 0.05

After spending the nickel, he had exactly twice the value of the check

C+D1000.05=2(D+C100)C + \frac{D}{100} - 0.05 = 2(D + \frac{C}{100})

Multiply both sides by 100 and rearrange:

100C+D5=200D+2C98C=199D+5100C + D - 5 = 200D + 2C \\ 98C = 199D + 5

Now look for integer solutions with 0C990 \leq C \leq 99

Trying values of DD, we find

D=31C=63D = 31 \quad C = 63

Therefore the check was for 31.63\boxed{31.63} dollars