文件名称:caiqiqiu
- 所属分类:
- Windows编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 250kb
- 下载次数:
- 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
......\.....\caiqiqiu.ilk
......\.....\caiqiqiu.obj
......\.....\caiqiqiu.obj.enc
......\.....\caiqiqiu.pch
......\.....\caiqiqiu.pdb
......\.....\vc60.idb
......\.....\vc60.pdb
......\caiqiqiu.cpp
......\caiqiqiu.dsp
......\caiqiqiu.dsw
......\caiqiqiu.ncb
......\caiqiqiu.opt
......\caiqiqiu.plg
......\Debug
......\.....\caiqiqiu.exe
......\.....\caiqiqiu.ilk
......\.....\caiqiqiu.obj
......\.....\caiqiqiu.obj.enc
......\.....\caiqiqiu.pch
......\.....\caiqiqiu.pdb
......\.....\vc60.idb
......\.....\vc60.pdb