HDU--1004--Let the Balloon Rise
2013-01-24 17:41
387 查看
#include <stdio.h> #include <string.h> int main (void) { int n,i,j,k,l,s; char a[1000][15]; while(scanf("%d",&n)!=EOF) { l=0; if(!n) break; for(i=0;i<n;i++) scanf("%s",&a[i]); for(i=0;i<n-1;i++) { k=0; for(j=i+1;j<n;j++) { if(0==strcmp(a[i],a[j])) k++; } if(l<k) { l=k;s=i; } } printf("%s\n",a[s]); } return 0; }
相关文章推荐
- E - Let the Balloon Rise HDU - 1004
- HDU 1004 Let the Balloon Rise(Map)
- hdu 1004 Let the Balloon Rise
- HDU 1004 Let the Balloon Rise
- HDU 1004 Let the Balloon Rise (map使用)
- HDU 1004 Let the Balloon Rise
- HDU -- 1004 Let the Balloon Rise
- HDU 1004 Let the Balloon Rise
- HDU 1004 Let the Balloon Rise
- Hdu 1004 Let the Balloon Rise
- hdu 1004 Let the Balloon Rise
- hdu-oj 1004 Let the Balloon Rise
- HDU 1004 Let the Balloon Rise
- hdu 1004 Let the Balloon Rise
- 【ACM】hdu_1004_Let the Balloon Rise
- HDU1004——Let the Balloon Rise
- 【HDU 1004】 Let the Balloon Rise
- hdu 1004 Let the Balloon Rise(字典树)
- hdu 1004 Let the Balloon Rise ( 字符串简单处理)
- HDU 1004 Let the Balloon Rise