上一页 1 ··· 3 4 5 6 7
摘要: 本题来自:http://pe.spiritzhang.com/index.php/2011-05-11-09-44-54/7-6 1 #include 2 3 long sum() 4 { 5 int i; 6 long sum_1=0,sum_2=0; 7 for(i=... 阅读全文
posted @ 2013-02-17 01:20 橙&子 阅读(787) 评论(0) 推荐(0) 编辑
摘要: 本题来自:http://pe.spiritzhang.com/index.php/2011-05-11-09-44-54/6-51-20 1 #include 2 3 void zhengshu(int n) 4 { 5 int i,j,flag=1; 6 for(i=n*(n-... 阅读全文
posted @ 2013-02-17 00:48 橙&子 阅读(762) 评论(8) 推荐(0) 编辑
摘要: 本题来自:http://pe.spiritzhang.com/index.php/2011-05-11-09-44-54/5-4 1 #include 2 3 /* 判断是否是回文数 */ 4 int Is(i... 阅读全文
posted @ 2013-02-16 18:01 橙&子 阅读(485) 评论(6) 推荐(0) 编辑
摘要: 本题来自:http://pe.spiritzhang.com/index.php/2011-05-11-09-44-54/4-3 1 #include 2 #include 3 void MaxPrime(unsigned long long int n) 4 { 5 unsigned ... 阅读全文
posted @ 2013-02-16 17:51 橙&子 阅读(314) 评论(0) 推荐(0) 编辑
摘要: ---恢复内容开始---本题来自:http://pe.spiritzhang.com/index.php/2011-05-11-09-44-54/3-24分析:400万项之和,数太大,故使用usinged long long。 int 字节:4 取值范围:-2147438648~+214743... 阅读全文
posted @ 2013-02-16 17:41 橙&子 阅读(500) 评论(0) 推荐(0) 编辑
摘要: 本题来自欧拉计划:http://pe.spiritzhang.com/index.php/2011-05-11-09-44-54/2-1100035 1 #include 2 3 void main() 4 { 5 int sum=0,i; 6 for(i=3;i 2 3 vo... 阅读全文
posted @ 2013-02-16 01:19 橙&子 阅读(1202) 评论(9) 推荐(1) 编辑
上一页 1 ··· 3 4 5 6 7