提交时间:2023-01-12 15:52:15

运行 ID: 4610

#include <iostream> using namespace std; int main() { double h, r; cin >> h >> r; int result = 20 / (3.14 * r * h); int yushu = 20 % (3.14 * r * h); if (yushu != 0) { cout << (result + 1) << endl; } else { cout << result << endl; } return 0; }