| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 78577 | 令狐文丽 | 05买水果 | C++ | Wrong Answer | 0 MS | 264 KB | 377 | 2024-06-22 20:19:28 |
#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; }
------Input------
0
------Answer-----
8.333 7 4 4 7 3 3
------Your output-----
8.333 购买香蕉7剩余4元 购买苹果4剩余7元 购买葡萄3剩余3元