Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
看错题In Reply To:怎么回事??? Posted by:00411082 at 2005-04-23 11:33:52 > 请各位帮忙看看,怎么过不了? > > #include<iostream.h> > #include<stdio.h> > void main() > { > char t[1000000]; > int b,s; > double a[26]; > while(1) > { > for(int i=0;i<26;i++) > { > a[i]=0; > } > s=b=0; > scanf("%s",t); > if(t[0]=='.') break; > for(int l=0;t[l]!='\0';l++) > { > b=t[l]-'a'; > a[b]++; > } > for(int j=0;j<26;j++) > { > if(a[j]>s) s=a[j]; > } > cout<<s<<endl; > } > } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator