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

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; } }


测评信息: