题解 | A29530.数学函数
2025-10-08 11:16:53
发布于:广东
6阅读
0回复
0点赞
#include <bits/stdc++.h>
using namespace std;
string s;
double n;
int main(){
cin >> s >> n;
if(s == "ceil"){
cout << ceil(n);
return 0;
}
if(s == "floor"){
cout << floor(n);
return 0;
}
if(s == "round"){
cout << round(n);
return 0;
}
return 0;
}
这里空空如也


有帮助,赞一个