Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
328875 黄浙峰老师 【C1-9】计算比值 C++ 通过 100 4 MS 240 KB 192 2025-07-07 16:10:29

Tests(2/2):


#include<iostream> #include<iomanip> using namespace std; int main(){ int a,b,t; cin>>a>>b; if(a>b){ swap(a,b); } cout<<fixed<<setprecision(2)<<1.0*a/b*100<<'%'; return 0; }


测评信息: