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

Tests(0/0):


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


测评信息: