上一页 1 2 3 4 5 6 7 8 ··· 49 下一页
摘要: "闰年判断" cpp include using namespace std; int main(){ int y; cin y; if((y%400==0)||(y%4==0&&y%100!=0)) cout 阅读全文
posted @ 2019-01-28 12:32 A-Little-Nut 阅读(202) 评论(0) 推荐(0) 编辑
摘要: "01字串" cpp include include using namespace std; int main(){ for(int i=0; i(i) 阅读全文
posted @ 2019-01-28 12:30 A-Little-Nut 阅读(122) 评论(0) 推荐(0) 编辑
摘要: "阶乘计算" 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]!= 阅读全文
posted @ 2019-01-27 21:53 A-Little-Nut 阅读(176) 评论(0) 推荐(0) 编辑
摘要: "字母图形" cpp include include using namespace std; int main(){ int n, m; cin n m; for(int i=0; i 阅读全文
posted @ 2019-01-24 21:13 A-Little-Nut 阅读(152) 评论(0) 推荐(0) 编辑
摘要: "数列特征" 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 阅读全文
posted @ 2019-01-24 21:10 A-Little-Nut 阅读(125) 评论(0) 推荐(0) 编辑
摘要: "查找整数" 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 阅读全文
posted @ 2019-01-24 21:09 A-Little-Nut 阅读(118) 评论(0) 推荐(0) 编辑
摘要: "杨辉三角" 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 阅读全文
posted @ 2019-01-24 21:07 A-Little-Nut 阅读(106) 评论(0) 推荐(0) 编辑
摘要: "特别的数字" cpp include using namespace std; int main(){ for(int i=100; i 阅读全文
posted @ 2019-01-24 21:06 A-Little-Nut 阅读(88) 评论(0) 推荐(0) 编辑
摘要: "回文数" cpp include using namespace std; int main(){ for(int i=10; i 阅读全文
posted @ 2019-01-24 21:04 A-Little-Nut 阅读(130) 评论(0) 推荐(0) 编辑
摘要: "扫雷问题" 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(){ 阅读全文
posted @ 2019-01-23 21:24 A-Little-Nut 阅读(193) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 49 下一页