| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 86212 | sh25_sunyuanxi | 浮点数向零舍入 | C++ | 通过 | 0 MS | 240 KB | 215 | 2026-03-27 14:46:54 |
#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; }