Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
333177 | 李俞家骅 | 【C1-9】分享水果 | C++ | 解答错误 | 0 | 2 MS | 256 KB | 189 | 2025-07-16 10:01:42 |
#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)<<x/z<<endl; return 0; }