#include <stdio.h>
int main(){
float a;
scanf("%f",&a); //强制转换,判断向下取整核实向上取整
printf("%d",(int)(a) + (0.5 <= a - (int)(a)));
return 0;
}
无
无
#include <stdio.h>
int main(){
float a;
scanf("%f",&a); //强制转换,判断向下取整核实向上取整
printf("%d",(int)(a) + (0.5 <= a - (int)(a)));
return 0;
}
无
无