NO
2025-11-04 17:42:19
发布于:浙江
0阅读
0回复
0点赞
#include <bits/stdc++.h>
using namespace std;
int main()
{
string s;
double n;
cin >> s >> n;
if(s == "ceil")
{
printf("%.0lf",ceil(n));
}
if(s == "floor")
{
printf("%.0lf",floor(n));
}
if(s == "round")
{
printf("%.0lf",round(n));
}
return 0;
}
这里空空如也







有帮助,赞一个