90分爆炸

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

@[xzc_yhxr](/user/1072970) ``` #include<cmath> #include<iostream> using namespace std; int main() { int s,v,h,m,a; cin>>s>>v; a=1910-ceil((double)s/(double)v); h=a/60; m=a%60; if(h>=24)h-=24; if(h<10)cout<<0; cout<<h<<":"; if(m<10)cout<<0; cout<<m<<endl; return 0; } ```
by GoodLuckCat @ 2023-08-28 12:23:00


我的
by GoodLuckCat @ 2023-08-28 12:23:23


我写过一篇这道题的题解,你可以看看有没有帮助ヾ(◍°∇°◍)ノ゙ [P5707题解](https://www.luogu.com.cn/blogAdmin/article/edit/625109)
by LuoNing__qaq @ 2023-08-28 14:53:24


|