Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- int main()
- {
- int t,i,j,h1,h2,h3,h4,m1,m2,m3,m4,a,b,c,d,e,f;
- cin>>t;
- for(i=1;i<=t;i++)
- {
- scanf("%d:%d %d:%d",&h1,&m1,&h2,&m2);
- scanf("%d:%d %d:%d",&h3,&m3,&h4,&m4);
- a=h1*3600+m1*60;
- b=h2*3600+m2*60;
- c=h3*3600+m3*60;
- d=h4*3600+m4*60;
- if(a>d || b<c)
- cout<<"Case "<<i<<": "<<"Hits Meeting"<<endl;
- else
- cout<<"Case "<<i<<": "<<"Mrs Meeting"<<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement