include[HTML_REMOVED]
include[HTML_REMOVED]
include[HTML_REMOVED]
include[HTML_REMOVED]
include[HTML_REMOVED]
include[HTML_REMOVED]
using namespace std;
typedef unsigned long long ll;
const int N = 60 * 60 * 24;
struct node{
int x;
int y;
}l[N];
bool cmp(node a,node b)
{
return a.x[HTML_REMOVED]0)
{
int a3=l[0].x/3600;
l[0].x=l[0].x%3600;
int b3=l[0].x/60;
int c3=l[0].x%60;
printf(“00:00:00 - %02d:%02d:%02d\n”,a3,b3,c3);
}
for(int i=1;i[HTML_REMOVED]q1)
{
printf(“%02d:%02d:%02d - %02d:%02d:%02d\n”,a1,b1,c1,a2,b2,c2);
}
}
if(l[n-1].y<N-1)
{
int a3=l[n-1].y/3600;
l[n-1].y=l[n-1].y%3600;
int b3=l[n-1].y/60;
int c3=l[n-1].y%60;
printf(“%02d:%02d:%02d - 23:59:59\n”,a3,b3,c3);
}
return 0;
}