附代码
#include<iostream>
using namespace std;
int main(){
int s,v;
cin>>s>>v;
int t;
if(s%v==0){
t=s/v+10;
}else{
t=s/v+11;
}
int min=480;
int h,m;
if(t>min){
t=t-min;
h=t/60;
m=t-h*60;
if(h>15){
cout<<"0"<<24-h-1<<":"<<60-m;
}else{
cout<<24-h-1<<":"<<60-m;
}
}else{
h=t/60;
m=t-h*60;
cout<<"0"<<8-h-1<<":"<<60-m;
}
return 0;
}