| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 157849 | 李泽曦 | 05买水果 | C++ | Wrong Answer | 1 MS | 264 KB | 356 | 2026-08-18 16:01:45 |
#include<bits/stdc++.h> using namespace std; int main() { int a,b,c; a=5; b=8; c=12; int d=39; printf("平均价格:%.3f\n",(a+b+c)/3.0); cout<<"香蕉:"<<d/a<<"斤."<<"剩下:"<<d%a<<"元."<<endl; cout<<"苹果:"<<d/b<<"斤."<<"剩下:"<<d%b<<"元."<<endl; cout<<"葡萄:"<<d/c<<"斤."<<"剩下:"<<d%c<<"元."<<endl; return 0; }
------Input------
0
------Answer-----
8.333 7 4 4 7 3 3
------Your output-----
平均价格:8.333 香蕉:7斤.剩下:4元. 苹果:4斤.剩下:7元. 葡萄:3斤.剩下:3元.