C
#include <stdio.h>
int main()
{
int a=0,b=0,gap=0;
scanf("%d%d",&a,&b);
gap = b-a+50;
gap /= 100;
printf("%02d:%02d:%02d",gap/3600,gap%3600/60,gap%3600%60);
return 0;
}
C++
#include <iostream>
using namespace std;
void fun()
{
int a=0,b=0,sum=0;
cin >> a >> b;
sum = b-a+50;
sum /= 100;
printf("%02d:%02d:%02d",sum/3600,sum%3600/60,sum%3600%60);
}
int main()
{
fun();
return 0;
}