#include <stdio.h>#include <math.h>
int main(){ double x; int y; scanf("%lf", &x); y = ceil(x); printf("%d\n",y); return 0; }
ceil向上取整函数
原文:https://www.cnblogs.com/pc-westy22Lx1000001000/p/8846741.html