测试没问题,但是0分

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

@[lion0617](/user/1404388) ```cpp #include<bits/stdc++.h> using namespace std; const int c=24,h=8,m=0,e=10; int s,v; int main() { cin>>s>>v; int co=ceil(1.0*s/v)+e; int st=ceil(1.0*co/60); co%=60; printf("%02d:%02d",(h-st+c)%c,(m-co+60)%60); return 0; } ``` 求关
by _Constantine_ @ 2024-08-22 09:12:56


@[_Constantine_](/user/1271326) 666
by MacArthur_sir @ 2024-08-22 09:13:31


@[MacArthur_sir](/user/1271378) !!!!!!
by mingyunze @ 2024-08-22 09:15:33


@[_Constantine_](/user/1271326) 这道题问题出在哪里
by lrqSB @ 2024-08-22 09:44:42


@[lion0617](/user/1404388) 你输出前面多一个空格,你改成 ```cpp printf("%02d:",sh); ``` 试试
by _Constantine_ @ 2024-08-22 10:02:36


@[lion0617](/user/1404388) 也不对,反正肯定是多空格的事
by _Constantine_ @ 2024-08-22 10:03:49


@[lion0617](/user/1404388) 改成%02d后20pts
by _Constantine_ @ 2024-08-22 10:05:54


@[medal_dreams](/user/1271321) @[_joker_r](/user/1271324) 给他调
by _Constantine_ @ 2024-08-22 10:16:36


@[Emil_](/user/1393222)
by _Constantine_ @ 2024-08-22 10:17:54


@[_Constantine_](/user/1271326) ?
by Emil_ @ 2024-08-22 10:19:08


| 下一页