题目:1231. 航班时间
#include<bits/stdc++.h>
using namespace std;
typedef long long LL;
const int N=1e5+10;
const int mod=100000007;
int t;
int a,b,c,d,e,f,g;
LL solve(){
LL t1=a*3600+b*60+c;
LL t2=d*3600+e*60+f+g*3600*24;
return t2-t1;
}
int main(){
cin>>t;
while(t--){
g=0;
scanf("%d:%d:%d %d:%d:%d (+%d)",&a,&b,&c,&d,&e,&f,&g);
LL t1=solve();
g=0;
scanf("%d:%d:%d %d:%d:%d (+%d)",&a,&b,&c,&d,&e,&f,&g);
LL t2=solve();
LL t3=(t2+t1)/2;
printf("%02d:%02d:%02d\n",t3/3600,t3%3600/60,t3%60);
}
return 0;
}