简单!
2026-03-28 18:37:46
发布于:江苏
9阅读
0回复
0点赞
#include <bits/stdc++.h>
using namespace std;
int main () {
string a;
double b;
cin >> a >> b;
if(a == "ceil") cout << ceil(b);
if(a == "floor") cout << floor(b);
if(a == "round") cout << round(b);
return 0;
}
OK啦,一个一个判断就可以啦
这里空空如也





有帮助,赞一个