大佬们

B2016 浮点数向零舍入

soul2024 @ 2023-08-06 21:37:25

#include<iostream>
using namespace std;
int main(){
double a;
cin>>a;
int b=(int)(a);
cout<<b;
return 0;
}

救我


by LegendaryGrandmaster @ 2023-08-06 21:38:47

由数据范围,得

long long。


by xuzihao123 @ 2023-08-06 21:48:25

-10^{15}\le x\le10^{15}

by soul2024 @ 2023-08-07 12:01:09

@LegendaryGrandmaster long long 没用


by LegendaryGrandmaster @ 2023-08-07 12:26:46

@WJR2023 你代码有问题还好意思说 long long 没用。


|