文件名称:33943781524point
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.88kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
计算24是流行的扑克游戏。其方法是随意抽出4张牌,AJQK王牌算一,其他牌按点数计算,花色不计。目标是通加减乘除和括号最终算出24。设计一个程序,输入四个数字(1 - 10),则列出所有可能计算结果为24 的方案。要求:
方案不能重复(加法乘法交换律等算不同方案)。
计算中局部可以为分数,结果为整数即可( 如 3 3 7 7 算法:(3 + 3 / 7) * 7)-Calculation of 24 popular poker game. Random out of four tiles, AJQK ace count one, the other players in points calculation, excluding color. The goal is through addition, subtraction and parentheses calculate the final 24. Design a program, enter the four numbers (1- 10), lists all possible to calculate the results of 24 programs. Requirements: The program can not be repeated (addition multiplication commutative operators of different options). The calculation of local scores, the results can be an integer (such as the 3377 algorithm: (3+ 3/7)* 7)
方案不能重复(加法乘法交换律等算不同方案)。
计算中局部可以为分数,结果为整数即可( 如 3 3 7 7 算法:(3 + 3 / 7) * 7)-Calculation of 24 popular poker game. Random out of four tiles, AJQK ace count one, the other players in points calculation, excluding color. The goal is through addition, subtraction and parentheses calculate the final 24. Design a program, enter the four numbers (1- 10), lists all possible to calculate the results of 24 programs. Requirements: The program can not be repeated (addition multiplication commutative operators of different options). The calculation of local scores, the results can be an integer (such as the 3377 algorithm: (3+ 3/7)* 7)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
24point.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.