使用Dev-C++,弹出来 fenv.h,但交到UVA没有 CE
#include<bits/stdc++.h>
using namespace std;
int main(){
int t;cin>>t;getchar();
while(t--){
map<string,int>tr;
int all=0;
for(;;all++){
string azbycx;
getline(cin,azbycx);
if(azbycx[0]=='\0')break;
tr[azbycx]++;
}
for(auto i:tr){
double k=i.second*100.0/all;
cout<<i.first<<' '<<k;
}
if(t)cout<<endl;
}
}