为什么本地 CE?
  • 板块学术版
  • 楼主Catcats
  • 当前回复11
  • 已保存回复11
  • 发布时间2022/8/20 11:44
  • 上次更新2023/10/27 14:28:32
查看原帖
为什么本地 CE?
658875
Catcats楼主2022/8/20 11:44

使用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;
    }
}
//UVA10226
2022/8/20 11:44
加载中...