Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
83909 sh25_xuws 浮点数向零舍入 C++ 解答错误 0 MS 248 KB 215 2026-02-04 01:15:17

Tests(0/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<<f; return 0; }


测评信息: