| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 378839 | 王璟源 | 【C1-9】计算比值 | C++ | Accepted | 100 | 4 MS | 252 KB | 250 | 2026-02-10 17:11:50 |
#include<iostream> #include<iomanip> using namespace std; int main(){ int a,b; cin>>a>>b; if(b>a){ cout<<fixed<<setprecision(2)<<100.0*a/b<<"%"<<endl; }else{ cout<<fixed<<setprecision(2)<<100.0*b/a<<"%"<<endl; } return 0; }