Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
1570 邓小龙 02买铅笔 C++ Accepted 0 MS 268 KB 290 2023-10-22 08:48:08

Tests(10/10):


Code:

# 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; }