为什么不是全ac啊

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

为什么5555555555555555
by Dotor_ @ 2021-12-06 23:14:57


更新一下 ``` #include<bits/stdc++.h> using namespace std; int v,m,t,h; double s; int main() { cin>>s>>v; t=ceil(s/v+10);//需要的时间(分钟) h=t/60;//需要的小时 m=t%60;//需要的分 if(h<=9){cout<<0<<7-h<<":"<<60-m;}//需要提前但仍在这一天 else{ if(h>21) {cout<<0<<31-h<<":"<<60-m;}//需要提前但是提前到上一天了 else{cout<<31-h<<":"<<60-m;}} return 0; } ```
by Dotor_ @ 2021-12-06 23:32:08


|