60分求助
查看原帖
60分求助
1034992
raoweihua楼主2024/11/9 17:20
#include<bits/stdc++.h>
using namespace std;
long long x;
int main(){
	cin>>x;
  	if(x==0){cout<<0;}
	else if(x<0){cout<<ceil(x);}
	else{cout<<floor(x);}
}

哪位大佬帮我看一下?谢谢!

2024/11/9 17:20
加载中...