文件名称:1
介绍说明--下载内容均来自于网络,请自行研究使用
现在有 N 个人,他们都有小孩,春节来了,他们要发压岁钱给朋友的小孩,而他们自己的小孩也会收到压岁钱。为了简单,他们在发压岁钱的时候,使用以下的计算方法,譬如某甲有 100 块,它要给另外三个人的小孩发压岁钱,则每个小孩会分到 100/3 = 33 块,剩余的 1 块就不发了。
给你这 N 个人的信息,以及他们把压岁钱发给了谁的小孩,请你计算他们每个人的小孩收到的压岁钱和他们发出去的压岁钱的差额是多少。-There are N individuals, they have children, Chinese New Year came, and they want to send some money to friends, children, and their children will also receive some money. For simplicity, when they made some money, use the following method of calculation, for example, person A has 100, which give the other three children made some money, each child will be assigned to 100/3 = 33, the remaining one is not made. N to you this personal information, and they put some money distributed to children who, you calculate each of them and their children receive lucky money given to the lucky money difference is.
给你这 N 个人的信息,以及他们把压岁钱发给了谁的小孩,请你计算他们每个人的小孩收到的压岁钱和他们发出去的压岁钱的差额是多少。-There are N individuals, they have children, Chinese New Year came, and they want to send some money to friends, children, and their children will also receive some money. For simplicity, when they made some money, use the following method of calculation, for example, person A has 100, which give the other three children made some money, each child will be assigned to 100/3 = 33, the remaining one is not made. N to you this personal information, and they put some money distributed to children who, you calculate each of them and their children receive lucky money given to the lucky money difference is.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
1.txt