tijie
2025-01-22 20:53:21
发布于:浙江
5阅读
0回复
0点赞
#include <iostream>
#include <cmath>
#include <algorithm>
using namespace std;
int main() {
string a;
double n;
cin>>a>>n;
if(a=="ceil"){
cout<<ceil(n);
}else if(a=="floor"){
cout<<floor(n);
}else{
cout<<round(n);
}
return 0;
}
这里空空如也
有帮助,赞一个