望麓自卑—湖南大学最具潜力的校园传媒

 找回密码
 注册

QQ登录

只需一步,快速开始

楼主: 流氓大兵

据说80%人会错的一道小学数学题

[复制链接]
发表于 2005-8-24 20:28:34 | 显示全部楼层
衣服亏了25
补了   75
给隔壁老板 100
不收假币卖衣服赚  75
总共  225
发表于 2005-8-25 10:51:51 | 显示全部楼层
125
发表于 2005-8-25 12:32:01 | 显示全部楼层
为什么大家都要算错呢?
很明显是100元啊.
发表于 2005-8-25 13:40:03 | 显示全部楼层
同意楼上,题目里面那么多什么兑换零钱的条件都是迷惑人的,说白了就是亏了那人给的假钞100元(75元东西+白送人家的25元真钞)
发表于 2005-8-27 13:10:18 | 显示全部楼层
200?
发表于 2005-8-27 15:06:09 | 显示全部楼层
果然啊,错了虽然没有80%

但是也构拉,^_^

大学生是要地点嘛,哈哈
发表于 2005-8-27 15:08:17 | 显示全部楼层
不就亏拉那张家超么
发表于 2005-8-27 15:36:14 | 显示全部楼层
下面是引用灰和尚于2005-08-23 03:33发表的:
25元东西和75块钱
一楼的就给出了正解
怎么每人注意呢
发表于 2005-8-27 18:20:52 | 显示全部楼层
这是一道经典题目
曾经还是一道编程题目

How much did the businessman lose

Businessmen, of course, can make much money. However, sometimes, they would lose money in trading. For example, Jame, a businessman, brought in some goods each cost him 40 yuan and he decided to sell at the price of 70 yuan. Then a customer came to buy one, gave Jame 100 yuan, and of course got back 30 yuan. You may said, "Jame earned 30 yuan." But unfortunately, Jame found the 100 yuan from the customer was fake. What a poor man! In this case Jame lost 70 yuan (40 (the goods price) + 30 (the money paid back to the customer)).

Now your task is to calculate how much Jame would lose in this kind of trade. Of course in this case, sometimes Jame may still earn.

Input
The input consists of several instances. Each instance contains four integers N, M, P and C, which are all in the range [0, 50000], separated by a single space.

N is the cost price of Jame good.
M is the sell price.
P is the total fake money the customer gave Jame.
C is how much Jame paid back to the customer.

Here N < M. And P may be less than M, as customer may pay with some fake money and some true money.

The input is terminated by a line containing 4 zeros.


Output
For one instance, output one line contains exactly one integer, which tells how much Jame lost in the trade. If Jame still earned, just output a negative integer, the absolute value of which tells the money Jame earned.

Sample Input

40 70 100 30
40 70 50 20
14604 32391 3902 153
0 0 0 0


Sample Output

70
20
-13885


Source
POJ Monthly--2005.07.31, Wang Yijie
发表于 2007-10-5 14:03:29 | 显示全部楼层
呵呵
发表于 2007-10-7 12:17:42 | 显示全部楼层
哈哈 明显是100嘛 他给小贩100真钱 但小贩给了他100块的零钱 给了买东西的75+25(东西)
哈哈 那100假钱是没用的嘛 哈哈
发表于 2007-10-10 22:10:25 | 显示全部楼层
125
125
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

每日推荐上一条 /1 下一条

小黑屋|手机版|湖南大学望麓自卑校园传媒 ( 湘ICP备14014987号 )

GMT+8, 2025-6-25 08:26 , Processed in 0.200902 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表