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

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=int(f); if(b==true) cout<<"-"; cout<<f; return 0; }


测评信息: