2010年11月29日
摘要: 百马百担问题,有100匹马,驮100担货,大马驮3担,中马驮2担,两匹小马驮1担,编程计算共有多少种驮法? Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlig... 阅读全文
posted @ 2010-11-29 22:44 别人叫我军师 阅读(2364) 评论(0) 推荐(0) 编辑
摘要: 1 123 12345 1234567 123456789 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> #incl... 阅读全文
posted @ 2010-11-29 21:54 别人叫我军师 阅读(396) 评论(0) 推荐(0) 编辑
摘要: 求Sn=a+aa+aaa+aaaa+...aa,其中a是1~9之间的数字。从键盘中输入a和n,例如:a=3,n=6时,表达式为S6=3+33+ 333+3333+33333+333333,其值为370368. Code highlighting produced by Actipro... 阅读全文
posted @ 2010-11-29 21:18 别人叫我军师 阅读(1737) 评论(1) 推荐(0) 编辑
  2010年11月28日
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> #include void main(){ in... 阅读全文
posted @ 2010-11-28 17:12 别人叫我军师 阅读(670) 评论(0) 推荐(0) 编辑
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> #include void main(){ floa... 阅读全文
posted @ 2010-11-28 16:58 别人叫我军师 阅读(1116) 评论(0) 推荐(0) 编辑
摘要: 代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> #include void ma... 阅读全文
posted @ 2010-11-28 15:21 别人叫我军师 阅读(468) 评论(0) 推荐(0) 编辑
摘要: 代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> #include void ma... 阅读全文
posted @ 2010-11-28 15:03 别人叫我军师 阅读(498) 评论(3) 推荐(0) 编辑
摘要: 从3个红球、6个白球和7个黑球中,任意取出8个球作为一组输出,在每组中,可以没有黑球,但必须要有红球和白球 求总的组数以及每组的红球、白球、黑球的数目。 思路:红球取值范围为1个到3个,白球为1个到6个,黑球为0个到7个 代码 Code highlighting pr... 阅读全文
posted @ 2010-11-28 14:25 别人叫我军师 阅读(491) 评论(0) 推荐(0) 编辑
摘要: 代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> #include void ma... 阅读全文
posted @ 2010-11-28 14:00 别人叫我军师 阅读(729) 评论(0) 推荐(0) 编辑
摘要: 输入一个整数n,求n的各位上的数字之积。例如,若输入918,则输出应该是72,若输入360,则输出为 0。 思路:定义一个初始变量,并赋初始值为1。先求出输入的数的各个位的数字。并循环相乘。 代码 Code highlighting produced by Actip... 阅读全文
posted @ 2010-11-28 13:27 别人叫我军师 阅读(3741) 评论(0) 推荐(0) 编辑