advise @ 2024-05-08 20:56:29
#include <bits/stdc++.h>
using namespace std;
int main()
{
int a,b,num;
cin >>a>>b;
int c=a/b+10,d;
if (c>=60)
{
int mmm=floor(c/60);
cout<<mmm;
d=8-mmm;
num=59-(c%60);
}
else
{
d=7;
num=59-c;
}
if (num<10)
{
cout<<0<<d<<":"<<0<<num;
}
else
{
cout<<0<<d<<":"<<num;
}
return 0;
}
by run_away @ 2024-05-08 21:16:11
@advise d有可能是前一天的
by advise @ 2024-05-08 21:17:48
@run_away 我还是不太理解
by run_away @ 2024-05-08 21:19:27
@advise 就是出发时间有可能在前一天
by advise @ 2024-05-08 21:37:27
@run_away 谢谢,已关注