告诉大家一个满级方法
查看原帖
告诉大家一个满级方法
1303746
Internet_Explorer_14楼主2024/4/3 09:39
#include<bits/stdc++.h>
using namespace std;
int main(){
	long double a;
	long long b;
	cin>>a;
	b=a;
	if(a>0){
		if(a<b){
			b=b-1;
		}
	}
	else if(a=0){
		b=b;
	}
	else{
		if(a<0){
			if(a>b){
				b=b+1;
			}
		}
	}
	cout<<b;
	return 0;
}
2024/4/3 09:39
加载中...