2924: ceil 函数专题(向上取整)
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:12
Solved:8
Description
编写一个程序,输入一个双精度浮点数,使用 ceil 函数对其进行向上取整,并输出结果。
Input
一个双精度浮点数 x(范围:-10^4 ≤ x ≤ 10^4)。
Output
一个整数,表示 x 向上取整的结果。
Sample Input Copy
3.2
Sample Output Copy
4
HINT
输入浮点数 x 的绝对值不超过 10000,确保 ceil 函数的计算结果在标准整数范围内。