Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
4537 郑元泰 02买铅笔 C++ Accepted 0 MS 260 KB 283 2024-08-21 14:32:30

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