Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
333179 | 李俞家骅 | 【C1-9】分享水果 | C++ | 通过 | 100 | 2 MS | 240 KB | 193 | 2025-07-16 10:03:08 |
#include<bits/stdc++.h> using namespace std; int main(){ int x,y,z; cin>>x>>y>>z; if(y%z==0) cout<<y/z; else cout<<fixed<<setprecision(2)<<1.0*x/z<<endl; return 0; }