hdu1029 Ignatius and the Princess IV(统计)
摘要:
这个题很无语,先贴代码了! 1 #include<stdio.h> 2 #define N 9999//最小是9999,测试数据里最大的数就是9999 3 int main() 4 { 5 int a[N]={0},n,x,i; 6 while(scanf("%d",&n)!=EOF) 7 { 8 i=n; 9 while(n--) 10 { 11 scanf("%d",&x); 12 ... 阅读全文
posted @ 2012-11-04 19:52 点A点C 阅读(238) 评论(0) 推荐(0) 编辑