Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
78578 令狐文丽 05买水果 C++ Wrong Answer 0 MS 268 KB 380 2024-06-22 20:20:33

Tests(0/1):


Code:

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


Run Info:

------Input------
0
------Answer-----
8.333 7 4 4 7 3 3
------Your output-----
8.333 购买香蕉7 剩余4元 购买苹果4 剩余7元 购买葡萄3 剩余3元