# 求大佬帮忙,WA了五个点一直不明白为什么,谢谢指导!

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

@[windyyyds](/user/785883) `Markdown崩坏` **参考代码** ```cpp #include<bits/stdc++.h> //万能头文件 using namespace std; double s=0.0,v=0.0; int h,m; int main() { cin>>s>>v; m=10+ceil(s/v); h=ceil(m*1.0/60); m=60-m%60; h=8-h; if(h<0) h=24+h; if(h<10) cout<<"0"; cout<<h<<":"; if(m<10) cout<<"0"; cout<<m; return 0; } ```
by Wy_x @ 2022-10-03 16:08:30


|