cpjcs @ 2023-09-25 11:53:03
#include <stdio.h>
int main() {
int s,v,w,x,y,h1,h2,m1,m2,z;
scanf("%d %d",&s,&v);
w=s/v+10;
x=w/60;
y=w%60;
z=x%10;
h1=x/10;
h2=7-z;
m1=(60-y-1)/10;
m2=(60-y-1)%10;
if(w>7*60+48){
printf("%d%d:%d%d",(24+7-x)/10,(24+7-x)%10,m1,m2);
}else{
printf("%d%d:%d%d",h1,h2,m1,m2);
}
return 0;
}