Serval vs Monster
-
链接
-
题意
求\(H/A\)的上取整
-
代码实现
#include<bits/stdc++.h> using namespace std; int main(void){ int h,a; cin >> h >> a; cout<<(h+a-1)/a<<endl; return 0; }
2024-04-08 23:03:16
链接
题意
求\(H/A\)的上取整
代码实现
#include<bits/stdc++.h>
using namespace std;
int main(void){
int h,a;
cin >> h >> a;
cout<<(h+a-1)/a<<endl;
return 0;
}