C++ 两个整数相除向上取整

int a,b;
cin>>a>>b;
cout<<(a-1)/b+1;

猜你喜欢

转载自blog.csdn.net/DwenKing/article/details/108362655