题解
2025-11-29 16:16:41
发布于:江苏
20阅读
0回复
0点赞
#include<iostream>
#include<cmath>
using namespace std;
int main(){
string s;
double n;
cin>>s>>n;
if(s=="ceil"){
cout<<ceil(n);
}else if(s=="floor"){
cout<<floor(n);
}else if(s=="round"){
cout<<round(n);
}
return 0;
}
全部评论 1
6 这还真能ac
2025-11-29 来自 广东
0









有帮助,赞一个