摘要: #include<stdio.h>#include<stdlib.h>int main(){ int n,i,x,j; scanf("%d",&n); int a[n]; for(i=0;i<n;i++) a[i]=0; for(i=0;i<n;i++) { scanf("%d",&x); a[x] 阅读全文
posted @ 2019-07-24 20:27 Cathycat 阅读(114) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<stdlib.h>int main(){ int a[10],i,n,y; n=0; for(i=0;i<10;i++) { scanf("%d",&a[i]); } scanf("%d",&y); for(i=0;i<10;i++) { if(a 阅读全文
posted @ 2019-07-24 19:56 Cathycat 阅读(86) 评论(0) 推荐(0) 编辑
摘要: #include<time.h>srand((unsigned)time(NULL));a=rand(); 阅读全文
posted @ 2019-07-24 19:37 Cathycat 阅读(96) 评论(0) 推荐(0) 编辑