题目链接: 酷町堂:7301(扣除经验)
见题目
向下取整函数:floor(a);
其实根本不需要,因为a=a/2直接可以向下取整(int/int结果为整数,直接去除小数部分)
强制类型转换int
加头文件cmath向下取整函数floor