zhangluo @ 2024-03-06 21:36:19
#include<bits/stdc++.h>
using namespace std;
int main(){
double a;
long long x;
cin>>a;
if(a>0){
x=floor(a);
}
if(a<0){
x=ceil(a);
}
cout<<x;
return 0;
by zhangluo @ 2024-03-06 21:36:44
90分求解
by ccf666 @ 2024-03-06 21:45:38
那么如果输入0怎么办呢