摘要: 水题 等差数列求和 1 #include <cstdio> 2 #include <algorithm> 3 #include <cstring> 4 #include <cmath> 5 #include <string> 6 #include <iostream> 7 #include <vec 阅读全文
posted @ 2016-03-07 22:57 OhYee 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 优化!优化! 读入的字符串包含空格! 数据量较大,vector string都会降低效率 简直优化哭了要( ▼-▼ ) 1 #include <cstdio> 2 #include <algorithm> 3 #include <cstring> 4 #include <cmath> 5 #incl 阅读全文
posted @ 2016-03-07 21:30 OhYee 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 打表 1 #include <cstdio> 2 #include <algorithm> 3 #include <cstring> 4 #include <cmath> 5 using namespace std; 6 7 #define REP(n) for(int o=0;o<n;o++) 8 阅读全文
posted @ 2016-03-07 19:40 OhYee 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 动态规划+打表 1 #include <cstdio> 2 #include <algorithm> 3 #include <cstring> 4 #include <cmath> 5 using namespace std; 6 7 #define REP(n) for(int o=0;o<n;o 阅读全文
posted @ 2016-03-07 19:23 OhYee 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 筛法求素数 1 #include <cstdio> 2 #include <algorithm> 3 #include <cstring> 4 #include <cmath> 5 using namespace std; 6 7 #define REP(n) for(int o=0;o<n;o++ 阅读全文
posted @ 2016-03-07 19:22 OhYee 阅读(372) 评论(0) 推荐(0) 编辑