2016年3月23日

摘要: #include <stdio.h>#include <stdlib.h>#include <math.h>int main(){ int n,m,i,j; double s; scanf("%d",&n); for(i=1;i<=n;i++) {s=0; scanf("%d",&m); for(j 阅读全文
posted @ 2016-03-23 15:31 zjk1988 阅读(120) 评论(0) 推荐(0)
 
摘要: #include <stdio.h>#include <stdlib.h> int main(){ int n,i,j; int a[30][30]; while(scanf("%d",&n)!=-1) { if(n==0) break; for(i=0;i<n;i++) for(j=0;j<=i; 阅读全文
posted @ 2016-03-23 15:14 zjk1988 阅读(105) 评论(0) 推荐(0)
 
摘要: #include <iostream>#include <stdio.h>#include <stdlib.h>//qsort 的头文件using namespace std;int compare(const void*a,const void*b)//比较函数{ return *(int*)a- 阅读全文
posted @ 2016-03-23 14:41 zjk1988 阅读(110) 评论(0) 推荐(0)