早教吧作业答案频道 -->英语-->
英语翻译AgroupofNP(2≤NP≤10)uniquelynamedfriendshasdecidedtoexchangegiftsofmoney.Eachofthesefriendsmightormightnotgivesomemoneytoanyoralloftheotherfriends.Likewise,eachfriendmightormightnotreceivemone
题目详情
英语翻译
A group of NP (2 ≤ NP ≤ 10) uniquely named friends has decided to exchange gifts of money.Each of these friends might or might not give some money to any or all of the other friends.Likewise,each friend might or might not receive money from any or all of the other friends.Your goal in this problem is to deduce how much more money each person gives than they receive.
The rules for gift-giving are potentially different than you might expect.Each person sets aside a certain amount of money to give and divides this money evenly among all those to whom he or she is giving a gift.No fractional money is available,so dividing 3 among 2 friends would be 1 each for the friends with 1 left over -- that 1 left over stays in the giver's "account".
In any group of friends,some people are more giving than others (or at least may have more acquaintances) and some people have more money than others.
Given a group of friends,no one of whom has a name longer than 14 characters,the money each person in the group spends on gifts,and a (sub)list of friends to whom each person gives gifts,determine how much more (or less) each person in the group gives than they receive.
A group of NP (2 ≤ NP ≤ 10) uniquely named friends has decided to exchange gifts of money.Each of these friends might or might not give some money to any or all of the other friends.Likewise,each friend might or might not receive money from any or all of the other friends.Your goal in this problem is to deduce how much more money each person gives than they receive.
The rules for gift-giving are potentially different than you might expect.Each person sets aside a certain amount of money to give and divides this money evenly among all those to whom he or she is giving a gift.No fractional money is available,so dividing 3 among 2 friends would be 1 each for the friends with 1 left over -- that 1 left over stays in the giver's "account".
In any group of friends,some people are more giving than others (or at least may have more acquaintances) and some people have more money than others.
Given a group of friends,no one of whom has a name longer than 14 characters,the money each person in the group spends on gifts,and a (sub)list of friends to whom each person gives gifts,determine how much more (or less) each person in the group gives than they receive.
▼优质解答
答案和解析
一群姓名独特的朋友(2 ≤ 人数 ≤ 10)决定交换钱作为礼物.每个人可以给或者不给别人钱,也可以只给一个或者都给.也就是说,每个人有可能从任何一个人那里收到钱,也可能收不到钱.你要计算出每个人给出的钱比得到的钱多多少.
赠送礼物的规则可能和你预想的不同.每个人拿出一部分钱用来送给别人,并且把这部分钱平均分给他想要赠送的人.因为钱不能分成分数,所以当两个人分3块钱的时候,只能一人一块,然后剩余一块.这剩余的一块依然算进了这个人“当作礼物给出去”的部分.
在一组朋友中,有的人比别人给出的钱要多(或者认识的人多),有的人比别人拥有的钱多.
给你一组人,他们的名字都不长于14个汉字,每人当作礼物送出的钱,和他送给多少人钱,决定了组中每个人比别人给出或收到的钱多多少,或者少多少.
赠送礼物的规则可能和你预想的不同.每个人拿出一部分钱用来送给别人,并且把这部分钱平均分给他想要赠送的人.因为钱不能分成分数,所以当两个人分3块钱的时候,只能一人一块,然后剩余一块.这剩余的一块依然算进了这个人“当作礼物给出去”的部分.
在一组朋友中,有的人比别人给出的钱要多(或者认识的人多),有的人比别人拥有的钱多.
给你一组人,他们的名字都不长于14个汉字,每人当作礼物送出的钱,和他送给多少人钱,决定了组中每个人比别人给出或收到的钱多多少,或者少多少.
看了 英语翻译AgroupofNP...的网友还看了以下:
设不等式组x+y≤1x≥0y≥0,表示的平面区域为M,在圆x∧2+y∧2=r∧2(r>0)设不等式 2020-04-12 …
给出下列各组命题:(1)p:15是5的倍数,q:15是3的倍数;(2)p:∀m∈R,|m|>0,q 2020-05-13 …
请问求两个稀疏相乘,在初始化稀疏矩阵时下面这几个程序语句的作用是什么?for(r=1;rmu;r+ 2020-05-17 …
一个圆的半径R,若将R缩小百分之P这是圆面积是A,πR^2-p%R^2B,π(R-p%)^2c,π 2020-06-02 …
几道离散数学第一章的问题!1.判别下列公式哪些是合式公式,哪些不是合式公式?a)(Q→R∧S)b) 2020-06-20 …
已知P为椭圆上一点已知P为椭圆x^2/a^2+y^2/b^2=1(a>b>0)上一点,F1,F2为 2020-06-30 …
对于集合M包含R^2,称M为开集,当且仅当任意P0属于M,存在r>0,使得{P属于R^2||PP0 2020-07-09 …
1.已知集合A={y|y=|x|,x∈R},B={y|y=2-x^,x∈R},求A∩B?2.已知集 2020-07-20 …
离散数学中环算几条边K4有几边几面构造下面推理证明(1)前提:┑(p∧q),┑q∧r,┑r结论:┑ 2020-07-30 …
设R和S是定义在人类P上的关系,其中,R={|X是Y的父亲,x属于P,y属于P},R={|X是Y的母 2020-10-31 …