标签:tee cout tle this cas ++ 保存 ora logs
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 126305 Accepted Submission(s):
49934
1 #include<iostream> 2 #include<string.h> 3 #include<stdio.h> 4 #include<map> 5 #include<string> 6 using namespace std; 7 8 map<string,int>mp; 9 int main() { 10 string ch,ah; 11 int n; 12 while(~scanf("%d",&n),n) 13 { 14 cin>>ah; 15 mp[ah]++; 16 n--; 17 while(n--) 18 { 19 cin>>ch; 20 mp[ch]++; 21 if(mp[ch]>mp[ah]) 22 ah=ch; 23 } 24 cout<<ah<<endl; 25 } 26 return 0; 27 }
标签:tee cout tle this cas ++ 保存 ora logs
原文地址:http://www.cnblogs.com/52why/p/7478068.html