JuneOrangeCat @ 2024-01-08 15:01:26
#include<iostream>
using namespace std;
int main(){
int s,v,f,h;
cin >> s>>v;
h= (s/v+10)/60;
f= (s/v+10) % 60;
if((s/v+10)%60 == 0)f++;
if(h == 0) cout << "07";
else if (h < 8) cout << "0" << 7-h;
else cout << 24+7 - h ;
cout << ":";
if(f>=50) cout << "0" << 59-f;
else cout << 59-f;
return 0 ;
}