GKM的复试acm练习2033

#include 
using namespace std;
int main()
{
	int n;
	cin>>n;
	while(n--)
	{
		int ah,am,as,bh,bm,bs;
		cin>>ah>>am>>as>>bh>>bm>>bs;
		int x=0,y=0,z=0;
		z=z+bs+as;
		if(z>=60)
		{
			y=y+1;
			z=z-60;
		}
		y=y+am+bm;
		if(y>60)
		{
			x=x+1;
			y=y-60;
		}
		x=x+ah+bh;
		cout<

你可能感兴趣的:(小程序)