#include <iostream> using namespace std; int main() { int n, x; cin >> n >> x; // 将电水箱容量从升转换为毫升 int totalCapacity = n * 1000; // 计算能倒的杯数,不足 1 杯算 1 杯,使用向上取整 int cupCount = (totalCapacity + x - 1) / x; cout << cupCount << endl; return 0; } /************************************************************** Problem: 1309 User: linmiaoling Language: Java Result: Compile Error ****************************************************************/