Run ID:143013

提交时间:2026-01-11 17:45:00

#include <iostream> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; // 将价格和预算转换为分 int pencil_price = a * 100 + b; int budget = c * 100 + d; // 计算最多能买的铅笔数量 int max_pencils = budget / pencil_price; // 输出结果 cout << max_pencils << endl; return 0; }