提交时间:2026-02-04 01:16:48

运行 ID: 83910

#include <bits/stdc++.h> using namespace std; int main( ) { float f; cin>>f; bool b=(f<0); f=abs(f); int n=static_cast<int>(f); if(b==true) cout<<"-"; cout<<n; return 0; }