Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int n,fh1,fh2,fm1,fm2,eh1,eh2,em1,em2,i,f1,f2,e1,e2;
- char s1[10],s2[10],s3[10],s4[10];
- freopen("input.txt","r",stdin);
- scanf("%d",&n);
- for(i=1;i<=n;i++){
- scanf("%s %s",s1,s2);
- scanf("%s %s",s3,s4);
- f1=((s1[0]*10+s1[1])*60)+(s1[3]*10+s1[4]);
- f2=((s2[0]*10+s2[1])*60)+(s2[3]*10+s2[4]);
- e1=((s3[0]*10+s3[1])*60)+(s3[3]*10+s3[4]);
- e2=((s4[0]*10+s4[1])*60)+(s4[3]*10+s4[4]);
- if((e1>=f1 && e1<=f2)||(e2>=f1 && e2<=f2))
- printf("Case %d: Mrs Meeting\n",i);
- else
- printf("Case %d: Hits Meeting\n",i);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement