Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
88570 赵天瑜 05买水果 C++ Wrong Answer 1 MS 272 KB 389 2024-08-19 13:38:09

Tests(0/1):


Code:

#include<iostream> #include<cstdio> using namespace std; int main() { int banana; int apple; int grape; cin>>banana>>apple>>grape; double avg; avg=(banana+apple+grape)/3.0; printf("%.3lf元\n",avg); cout<<"香蕉"<<39/5<<" "<<39%5<<endl; cout<<"苹果"<<39/8<<" "<<39%8<<endl; cout<<"葡萄"<<39/12<<" "<<39%12<<endl; return 0; }


Run Info:

------Input------
0
------Answer-----
8.333 7 4 4 7 3 3
------Your output-----
1609002.667元 香蕉7 4 苹果4 7 葡萄3 3