- 博客(2)
- 收藏
- 关注
原创 大数加减乘除
#include #include #include #include #include using namespace std; //compare比较函数:相等返回0,大于返回1,小于返回-1 int compare(string str1,string str2) { if(str1.length()>str2.length()) return 1; else if(str
2016-07-15 12:41:51 276
原创 筛素数
#include #include #include #include using namespace std; int a[105]; int n; void init() { int m = sqrt(n+0.5); for(int i = 2;i <= m;i++) if(!a[i])//a[i]为质数! { for(int j = i
2016-07-15 12:35:33 231
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人