文件名称:Congratulation
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:715byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
恭喜发财 利是窦来.现在有 N 个人,他们都有小孩,春节来了,他们要发压岁钱给朋友的小孩,而他们自己的小孩也会收到压岁钱。为了简单,他们在发压岁钱的时候,使用以下的计算方法,譬如某甲有 100 块,它要给另外三个人的小孩发压岁钱,则每个小孩会分到 100/3 = 33 块,剩余的 1 块就不发了。
给你这 N 个人的信息,以及他们把压岁钱发给了谁的小孩,请你计算他们每个人的小孩收到的压岁钱和他们发出去的压岁钱的差额是多少。-Kung Hei Fat Choy Lee is the sinus to now 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 sent to whom the child, you calculate each of them and their children receive lucky money given to the lucky money difference is.
给你这 N 个人的信息,以及他们把压岁钱发给了谁的小孩,请你计算他们每个人的小孩收到的压岁钱和他们发出去的压岁钱的差额是多少。-Kung Hei Fat Choy Lee is the sinus to now 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 sent to whom the child, you calculate each of them and their children receive lucky money given to the lucky money difference is.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Congratulation.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.