为什么我#4#7过不了啊?

P5707 【深基2.例12】上学迟到

参考下我的代码? ```cpp #include<cstdio> #include<cmath> using namespace std; int main(){ int s,v; scanf("%d%d",&s,&v); int times=10+ceil(1.0*s/v); int fromz=60*(24+8)-times; int hh=(fromz/60)%24; int mm=fromz%60; printf("%02d:%02d\n",hh,mm); return 0; } ```
by littlebug @ 2023-11-04 14:28:48


@[littlebug](/user/541634) 谢谢
by B_hua @ 2023-11-04 14:39:14


|