Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
157873 江佳航 05买水果 C++ Accepted 1 MS 264 KB 546 2026-08-18 17:49:08

Tests(1/1):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a,b,c; a=5; b=8; c=12; printf("%.3lf\n",(a+b+c)/3.0); int x=39/a; int x2=39%a; int p=39/b; int p2=39%b; int q=39/c; int q2=39%c; cout<<x<<endl<<x2<<endl; cout<<p<<endl<<p2<<endl; cout<<q<<endl<<q2<<endl; return 0; }