Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
433733 阮予正 【C1-9】计算比值 C++ 通过 100 1 MS 252 KB 257 2026-03-21 18:32:37

Tests(2/2):


#include<iostream> #include<iomanip> using namespace std; int main(){ int x,y; cin>>x>>y; if (x<y){ cout<<fixed<<setprecision(2)<<1.0*x/y*100; cout<<"%"; }else{ cout<<fixed<<setprecision(2)<<1.0*y/x*100; cout<<"%"; } return 0; }


测评信息: