![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
母函数
a1158348247
这个作者很懒,什么都没留下…
展开
-
1398
#include using namespace std; int main() { int n, i, j, k, s[17], c1[301], c2[301]; // c2为中间值 for(i = 1; i { s[i-1] = i*i; // 1 4 9 16 } for(i = 0; i {原创 2011-11-13 19:23:01 · 111 阅读 · 0 评论 -
joj 1424
#include using namespace std; int main() { int i, j, k, n, s[5], c1[7491], c2[7491]; s[0] = 1; s[1] = 5; s[2] = 10; s[3] = 25; s[4] = 50; for( i = 0; i { c1[i] = 0; c2[i]原创 2011-11-20 19:21:21 · 142 阅读 · 0 评论 -
joj 1583
#include using namespace std; int main() { int n, i, j, k, s[5], c1[100], c2[100]; s[0] = 1; s[1] = 5; s[2] = 10; s[3] = 25; s[4] = 50; for( i = 0; i { c1[i] = 0; c2[i] = 0原创 2011-11-20 19:57:12 · 140 阅读 · 0 评论 -
joj 2201
#include #include using namespace std; bool prime(int n) { int i, t, flag; flag = 1; t = (int) sqrt(n*1.0); for( i = 2; i { if(n % i == 0) { flag = 0; } } if( flag )原创 2011-11-20 20:27:54 · 147 阅读 · 0 评论 -
1028
#include using namespace std; int main() { int c1[125], c2[125]; int n, i, j, k; while ( cin >> n ) { for( i = 0; i { c1[i] = 1; c2原创 2011-11-11 06:50:14 · 106 阅读 · 0 评论