Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
7673 zhaoziwen 浮点数向零舍入 C++ 编译错误 0 MS 0 KB 188 2023-02-06 14:00:44

Tests(0/0):


#include<iostream> #include<iomanip> using namespace std; int main () { float a; if(a>0){ cout<<floor(a); } else if(a<0){ cout<<ceil(a); } }


测评信息: