Advertisement
Farjana_akter

Untitled

Feb 3rd, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int t,i,j,h1,h2,h3,h4,m1,m2,m3,m4,a,b,c,d,e,f;
  7. cin>>t;
  8. for(i=1;i<=t;i++)
  9. {
  10. scanf("%d:%d %d:%d",&h1,&m1,&h2,&m2);
  11. scanf("%d:%d %d:%d",&h3,&m3,&h4,&m4);
  12. a=h1*3600+m1*60;
  13. b=h2*3600+m2*60;
  14. c=h3*3600+m3*60;
  15. d=h4*3600+m4*60;
  16. if(a>d || b<c)
  17. cout<<"Case "<<i<<": "<<"Hits Meeting"<<endl;
  18. else
  19. cout<<"Case "<<i<<": "<<"Mrs Meeting"<<endl;
  20. }
  21. return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement