摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2023题意不难理解,就是三个量之间要理清楚,自己容易乱掉,还有,数组开大一点,第一次按题目说的开,没通过#include<stdio.h>int main(){ double gra[100][1000],st[10000],gr[10000]; int i,n,m,j,sum; while(scanf("%d%d",&n,&m)!=EOF) { for(i=0;i<55;i++) st[i]=gr[i]=0; sum=0; ... 阅读全文
posted @ 2013-05-19 23:48 执着追求的IT小小鸟 阅读(296) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1029简单哈希一次ac#include<stdio.h>int a[1000000];int main(){ int n,i,x,max; a[0]=0; while(scanf("%d",&n)!=EOF) { max=0; for(i=0;i<n;i++) { scanf("%d",&x); if(max<x) max=x; a[x]++; }... 阅读全文
posted @ 2013-05-19 18:00 执着追求的IT小小鸟 阅读(144) 评论(0) 推荐(0) 编辑