文件名称:1111
介绍说明--下载内容均来自于网络,请自行研究使用
有三户人家共拥有一座花园,每户人家的太太均需帮忙整理花园。A 太太工作了5 天,B 太太则工作了4 天,才将花园整理完毕。C 太太因为正身怀六甲无法加入她们的行列,便出了90元。请问这笔钱如何分给A、B 二位太太较为恰当?A 应得多少元?90/(5+4)*5=$50 元?如果这么想你就上当了!正确答案是60 元。如果没想通的话再想想吧。
下面回答一个一般性的问题:假定A 太太工作了x 天,B 太太工作了y 天,C 太太出了90元,则A 太太应得多少元?输入保证二位太太均应得到非负整数元钱。三个太太工作效率相同。
友情提示:本题有个小小的陷阱哦。如果答案错的话,认真检查一下代码吧。
输入第一行为数据组数T (T<=20)。每组数据仅一行,包含三个整数x, y, z (1<=x, y<=10,1<=z<=1000)。
对于每组数据,输出一个整数,即A 太太应得的金额(单位:元)。-There are a total of three people have a garden, each household is required to help organize the garden wife. A wife worked for five days, Mrs. B will work four days before the garden after finishing. C because being pregnant wife can not join them, will be out 90 yuan. May I ask how the money given to A, B two wife is more appropriate? A number of dollars deserve? 90/(5+4)* 5 = $ 50 dollars? If you think you fooled! The correct answer is 60 yuan. If you thought it through, then think again. The following answer to a general question: Assume A wife worked x days, Mrs. B y days worked, C wife out of the 90 yuan, then A wife should get the number of dollars? Enter the wife should get guaranteed two non-negative integers dollars. Three Mrs. same efficiency. Tips: This question has a little trap, oh. If the answer is wrong, carefully check the bar code. Input of the first behavioral data set number T (T < = 20). Each set of data for one line only, contains three integers x, y, z (1 < =
下面回答一个一般性的问题:假定A 太太工作了x 天,B 太太工作了y 天,C 太太出了90元,则A 太太应得多少元?输入保证二位太太均应得到非负整数元钱。三个太太工作效率相同。
友情提示:本题有个小小的陷阱哦。如果答案错的话,认真检查一下代码吧。
输入第一行为数据组数T (T<=20)。每组数据仅一行,包含三个整数x, y, z (1<=x, y<=10,1<=z<=1000)。
对于每组数据,输出一个整数,即A 太太应得的金额(单位:元)。-There are a total of three people have a garden, each household is required to help organize the garden wife. A wife worked for five days, Mrs. B will work four days before the garden after finishing. C because being pregnant wife can not join them, will be out 90 yuan. May I ask how the money given to A, B two wife is more appropriate? A number of dollars deserve? 90/(5+4)* 5 = $ 50 dollars? If you think you fooled! The correct answer is 60 yuan. If you thought it through, then think again. The following answer to a general question: Assume A wife worked x days, Mrs. B y days worked, C wife out of the 90 yuan, then A wife should get the number of dollars? Enter the wife should get guaranteed two non-negative integers dollars. Three Mrs. same efficiency. Tips: This question has a little trap, oh. If the answer is wrong, carefully check the bar code. Input of the first behavioral data set number T (T < = 20). Each set of data for one line only, contains three integers x, y, z (1 < =
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Untitled5.c
Untitled5.exe
Untitled5.o