Advertisement
Saleh127

Untitled

Apr 29th, 2020
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. #define ll long long
  4. int main()
  5. {
  6. ll a,b,c,d,e,f,g,h,i,j,k,l,t,h1,h2,m1,m2;
  7. cin>>t;
  8. char ch;
  9. for(i=1;i<=t;i++)
  10. {
  11. cin>>a>>ch>>b>>c>>ch>>d;
  12. cin>>e>>ch>>f>>g>>ch>>h;
  13. h1=a*60+b;
  14. h2=c*60+d;
  15. m1=e*60+f;
  16. m2=g*60+h;
  17. if((h1>m1 && h1>m2) || (m1>h1 && m1>h2))
  18. {
  19. printf("Case %d: Hits Meeting\n",i);
  20. }
  21. else
  22. {
  23. printf("Case %d: Mrs Meeting\n",i);
  24. }
  25. }
  26. return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement