题解:
#include <iostream> using namespace std; int main(int argc, char const *argv[]) { int n, x;// n L水 和 x ml水杯 cin >> n >> x; //统一单位 n = n * 1000; //转化为 ml //双分支 if(n % x == 0){ cout << n / x << endl; }else{ cout << n / x + 1 << endl; } }
标签:int,题解,1309,最多能,ml,杯水 From: https://www.cnblogs.com/topcoderblog/p/17696072.html