求助大佬们帮忙看看为什么只有30分

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

```cpp #include <bits/stdc++.h> using namespace std; int main() { int s,v; int s_time=8*60+24*60; cin>>s>>v; double sum=ceil(s/v)+10; if(s%v) sum++;s_time-=sum; double h=s_time/60; s_time%=60; if(h>=24) h-=24; if(h<10) { if(s_time<10) cout<<"0"<<h<<":0"<<s_time; else cout<<"0"<<h<<":"<<s_time; } else { if(s_time<10) cout<<h<<":0"<<s_time; else cout<<h<<":"<<s_time; } return 0; } ```
by ninji @ 2023-04-10 19:34:09


@[Domoo](/user/535848)
by ninji @ 2023-04-10 19:34:32


@[ninji](/user/927666) 收到感谢!
by Domoo @ 2023-04-11 00:33:48


|