Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
1569 | 邓小龙 | 02买铅笔 | C++ | Wrong Answer | 0 MS | 252 KB | 311 | 2023-10-22 08:40:19 |
# include<iostream> using namespace std; int main(){ int a,b,c,d; cout<<"一只铅笔的价格是a元b角"; cout<<"a=?b=?"; cin>>a>>b; cout<<"你的预算是c元d角"; cout<<"c=?d=?"; cin>>c>>d; cout<<"最多能买"<<(c+d/10)/(a+b/10)<<"只铅笔"; return 0; }
------Input------
24 12 88 38
------Answer-----
3
------Your output-----
一只铅笔的价格是a元b角a=?b=?你的预算是c元d角c=?d=?最多能买3只铅笔