摘要: 本题来自:http://pe.spiritzhang.com/index.php/2011-05-11-09-44-54/12-1120t20我的分析:列,行的比较不用说了,关键是左上,右下的2条对角。在网上搜索的代码,要么是perl语言的,要么是C语言错误的(反正我看不懂)。我的左上:在5 x 5... 阅读全文
posted @ 2014-01-01 23:46 橙&子 阅读(601) 评论(0) 推荐(0)
摘要: 本题来自:http://pe.spiritzhang.com/index.php/2011-05-11-09-44-54/11-10不晓得怎么,200W要运行5s,望谁能优化···#include const int num=2000000;int SunPrime(int n){ int s... 阅读全文
posted @ 2014-01-01 01:17 橙&子 阅读(382) 评论(0) 推荐(0)
摘要: 本题来自:http://pe.spiritzhang.com/index.php/2011-05-11-09-44-54/10-9a--b--c--1000a-b-c#include int main(){ int a,b,c; for(a=1;a<500;a++) for(b=a... 阅读全文
posted @ 2014-01-01 00:22 橙&子 阅读(249) 评论(0) 推荐(0)