文件名称:caiqiqiu
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:250.5kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
六一儿童节,小朋友们做踩气球游戏,气球的编号是1~100,两位小朋友各踩了一些气球,要求他们报出自己所踩气球的编号的乘积。现在需要你编一个程序来判断他们的胜负,判断的规则是这样的:如果两人都说了真话,数字大的人赢;如果两人都说了假话,数字大的人赢;如果报小数字的人说的是真话而报大数字的人说谎,则报小数字的人赢(注意:只要所报的小数字是有可能的,即认为此人说了真话)。
输入为两个数字,0 0表示结束;
输出为获胜的数字。
-61 Children, children step on to do a balloon games, balloons are the No. 1 ~ 100, the two children a number of balloons each step, asking them to report their own step by the product of the number of balloons. You are now required for a procedure to determine their outcome, to determine the rules are this: if two people say the truth, people figure a big win that if two people of the lie, the number of people to win big If the newspaper said a small number of people are telling the truth and the large number of people reported to lie, it reported a small number of people to win (Note: As long as the reported figure is probably small, that is, people think that the truth of this). Input for the two figures, that the end of 0 0 output figure for the win.
输入为两个数字,0 0表示结束;
输出为获胜的数字。
-61 Children, children step on to do a balloon games, balloons are the No. 1 ~ 100, the two children a number of balloons each step, asking them to report their own step by the product of the number of balloons. You are now required for a procedure to determine their outcome, to determine the rules are this: if two people say the truth, people figure a big win that if two people of the lie, the number of people to win big If the newspaper said a small number of people are telling the truth and the large number of people reported to lie, it reported a small number of people to win (Note: As long as the reported figure is probably small, that is, people think that the truth of this). Input for the two figures, that the end of 0 0 output figure for the win.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
踩气球/caiqiqiu.cpp
踩气球/caiqiqiu.dsp
踩气球/caiqiqiu.dsw
踩气球/caiqiqiu.ncb
踩气球/caiqiqiu.opt
踩气球/caiqiqiu.plg
踩气球/Debug/caiqiqiu.exe
踩气球/Debug/caiqiqiu.ilk
踩气球/Debug/caiqiqiu.obj
踩气球/Debug/caiqiqiu.obj.enc
踩气球/Debug/caiqiqiu.pch
踩气球/Debug/caiqiqiu.pdb
踩气球/Debug/vc60.idb
踩气球/Debug/vc60.pdb
踩气球/Debug
踩气球
踩气球/caiqiqiu.dsp
踩气球/caiqiqiu.dsw
踩气球/caiqiqiu.ncb
踩气球/caiqiqiu.opt
踩气球/caiqiqiu.plg
踩气球/Debug/caiqiqiu.exe
踩气球/Debug/caiqiqiu.ilk
踩气球/Debug/caiqiqiu.obj
踩气球/Debug/caiqiqiu.obj.enc
踩气球/Debug/caiqiqiu.pch
踩气球/Debug/caiqiqiu.pdb
踩气球/Debug/vc60.idb
踩气球/Debug/vc60.pdb
踩气球/Debug
踩气球
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.