Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
83910 sh25_xuws 浮点数向零舍入 C++ 通过 0 MS 244 KB 215 2026-02-04 01:16:48

Tests(1/1):


#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; }


测评信息: