Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
4536 邓小龙 02买铅笔 C++ Accepted 0 MS 264 KB 294 2024-08-21 14:31:58

Tests(10/10):


Code:

#include<iostream>//头文件 using namespace std; int main(){ int a,b,c,d; cin>>a>>b>>c>>d; //有的钱/每一支铅笔的价钱=?支···余下多少钱 //一支铅笔的价格:a*10+b角 //有的钱:c*10+d角 cout<<(c*10+d)/(a*10+b); return 0; }