Run ID:69298

提交时间:2024-03-31 14:44:30

#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; }