Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
96886 谢佳辰 05买水果 C++ Accepted 1 MS 272 KB 311 2024-11-09 18:05:46

Tests(1/1):


Code:

#include <iostream> #include <iomanip> using namespace std; int main(){ int b,a,g; b=5; a=8; g=12; double x; x=(b+a+g)/3.0; cout<<fixed<<setprecision(3)<<x<<endl; cout<<39/5<<" "<<39%5<<endl; cout<<39/8<<" "<<39%8<<endl; cout<<39/12<<" "<<39%12<<endl; }