Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
5761 | 郑元泰 | 11向上取整 | C++ | Wrong Answer | 0 MS | 252 KB | 217 | 2024-12-14 15:42:32 |
# include<iostream> using namespace std; int main(){ double a=5.5; int b; b=a; if(a-b==0) cout<<b; else{ if(a<0) cout<<(int)a; else cout<<(int)(a); } return 0; }
------Input------
99.8
------Answer-----
100
------Your output-----
5