Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5. int a,b,c;
  6. int ch=0,m=0;
  7. cin>>a;
  8. for(int i=1;i<=a;i++)
  9. {
  10. cin>>b>>c;
  11. if(b>c)
  12. {
  13. m++;
  14. }
  15. if(b<c)
  16. {
  17. ch++;
  18. }
  19. else
  20. {
  21. m++;
  22. ch++;
  23. }
  24. }
  25.  
  26. if(m>ch) cout<<"Mishka"<<endl;
  27. if(m<ch) cout<<"Chris"<<endl;
  28. if(m == ch) cout<<"Friendship is magic!^^"<<endl;
  29.  
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement