ssqmnb1145 @ 2022-12-03 10:02:22
#include<bits/stdc++.h>
using namespace std;
int main(){
double a;
cin>>a;
cout<<(int)a;
}
by _maojun__ @ 2022-12-03 10:09:08
@for_i_in_range65 int 炸了
by ssqmnb1145 @ 2022-12-03 10:12:47
@_maojun__ 请问具体怎么改,谢谢大佬
by LiAuPb @ 2022-12-03 10:22:16
应改成:
#include<bits/stdc++.h>
using namespace std;
int main(){
double a;
cin>>a;
cout<<(long long)a;
}
by ssqmnb1145 @ 2022-12-03 13:58:37
@LiJingQian 谢谢大佬
by hang2023 @ 2023-04-16 11:46:20
用 long long
。