Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
69298 田苒彤 05买水果 C++ Accepted 1 MS 264 KB 366 2024-03-31 14:44:30

Tests(1/1):


Code:

#include <bits/stdc++.h> using namespace std; int main (){ int a,b,c; a=5; b=8; c=12; double d=(a+b+c)/3.0; printf("%.3lf\n",d); int e,f,g,h,i,j,k; e=39; f=e/a; g=e/b; h=e/c; i=e%a; j=e%b; k=e%c; cout<<f<<" "<<i<<endl; cout<<g<<" "<<j<<endl; cout<<h<<" "<<k<<endl; return 0; }