摘要: #include int main(void){ int h; while(scanf("%d", &h) != EOF){ int a = h + 2 * (h-1); for(int i=0; i<h; i++){ for(int k = 0; k < a - (h + 2 * i); k++) printf(" "); ... 阅读全文
posted @ 2018-12-08 23:22 Acoccus 阅读(99) 评论(0) 推荐(0) 编辑
摘要: #include const int maxn = 100; int a[maxn] = {0}; int b[maxn]= {0}; int main(void) { int n; while(scanf("%d", &n) != EOF){ for(int i=0; i<n; i++){ scanf("%d", a+i); ... 阅读全文
posted @ 2018-12-05 22:59 Acoccus 阅读(102) 评论(0) 推荐(0) 编辑
摘要: #include #include const int maxn = 1e3; struct student{ char id[10]; char name[70]; //!!!!!!! char gender[3]; int age; } stu[maxn]; int main(void){ int n; while... 阅读全文
posted @ 2018-12-01 00:46 Acoccus 阅读(252) 评论(0) 推荐(0) 编辑
摘要: #include const int maxn = 300; int a[maxn]; int main(void){ int n; while(scanf("%d", &n)!=EOF){ for(int i=0; i<n; i++){ scanf("%d", a+i); } int x; scanf("%d", &x); ... 阅读全文
posted @ 2018-12-01 00:07 Acoccus 阅读(225) 评论(0) 推荐(0) 编辑