check 函数要写
check
if(t<=s*k)return true;
而不是
if(t/k<=s)return true;
因为除法下取整会造成精度损失,以后除法要记住精度问题,尽量使用乘法.