代码
#include<bits/stdc++.h>
using namespace std;
long long a,b,c,d,e,f=10,g;
int main(){
cin>>a;
cin>>b;
if(a%b==0)
c=a/b;
else c=a/b+1;
if(c>=60){
if(c%60==0)
e=c/60;
else{
e=c/60;
c=c%60;
}
}
d=7;
g=60;
d=d-e;
g=g-c-f;
if(d<0)
d=24+7-e;
if(g<0)
{
d--;
g=60-c-f+60;
}
if(g==0&&d<10&&d<24)
cout<<0<<d<<":"<<00;
if(g<10&&d<10&&d<24)
cout<<0<<d<<":"<<0<<g;
if(g>=10&&d<10&&d<24)
cout<<0<<d<<":"<<g;
if(g==0&&d>10&&d<24)
cout<<d<<":"<<00;
if(g<10&&d>10&&d<24)
cout<<d<<":"<<0<<g;
if(g>=10&&d>10&&d<24)
cout<<d<<":"<<g;
if(g==0&&d>10&&d==24)
cout<<00<<":"<<00;
if(g<10&&d>10&&d==24)
cout<<00<<":"<<0<<g;
if(g>=10&&d>10&&d==24)
cout<<00<<":"<<g;
return 0;
}
谢谢各位dalao了OrZ