摘要:
"阶乘计算" cpp include include using namespace std; int main(){ vector vi(10005, 0); vi[0]=1; int r=0, n, flag=0; cin n; for(int i=1; i=0; i ){ if(vi[i]!= 阅读全文
摘要:
"数列特征" cpp include include using namespace std; int main(){ int n, sum=0, maxn= 999999, minn=999999, t; cin n; for(int i=0; i t; maxn=max(maxn, t); mi 阅读全文
摘要:
"查找整数" cpp include include using namespace std; int main(){ int n, cnt=1, t, a; cin n; vector v(10005, 1); for(int i=0; i t; if(v[t]== 1) v[t]=cnt; cn 阅读全文
摘要:
"杨辉三角" cpp include include using namespace std; int main(){ int n; cin n; vector vi(36, 0); vi[1]=1; for(int i=1; i temp(36,0); for(int j=1; j 阅读全文
摘要:
"扫雷问题" cpp include include include using namespace std; int direct[8][2]={ {1,0}, {1,1}, {1, 1}, {0,1}, {0, 1}, { 1,0}, { 1,1}, { 1, 1} }; int main(){ 阅读全文