Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
107007 | 田珂莹 | 05买水果 | C++ | Wrong Answer | 0 MS | 264 KB | 361 | 2025-01-17 10:53:00 |
#include<iostream> #include<cstdio> using namespace std; int main(){ int b=5,a=8,g=12,y=39; printf("%.3f",(b+a+g)/3.0); cout<<"买香蕉:"<<y/b<<"斤"<<"还剩余"<<y%b<<"元"<<endl; cout<<"买苹果:"<<y/a<<"斤"<<"还剩余"<<y%a<<"元"<<endl; cout<<"买葡萄:"<<y/g<<"斤"<<"还剩余"<<y%g<<"元"<<endl; return 0; }
------Input------
0
------Answer-----
8.333 7 4 4 7 3 3
------Your output-----
8.333买香蕉:7斤还剩余4元 买苹果:4斤还剩余7元 买葡萄:3斤还剩余3元