Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
6865 | 侯宜辰 | 05买水果 | C++ | Accepted | 0 MS | 260 KB | 512 | 2025-03-22 19:40:04 |
#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() #include<iomanip> //setprecision() using namespace std; int main(){ int b=5,a=8,g=12; double average; average = (b+a+g)/3.0; printf("%.3lf\n",average); printf("%d %d\n",39/b,39%b); printf("%d %d\n",39/a,39%a); printf("%d %d\n",39/g,39%g); return 0; }