Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
96068 | 任紫谦 | 05买水果 | C++ | Accepted | 1 MS | 260 KB | 283 | 2024-11-02 19:00:33 |
#include <iostream> #include <iomanip> using namespace std; int main(){ int a=5,b=8,c=12; double p; p=(a+b+c)/3.0; cout<<fixed<<setprecision(3)<<p<<endl; cout<<39/a<<" "<<39%a<<endl; cout<<39/b<<" "<<39%b<<endl; cout<<39/c<<" "<<39%c<<endl; }