Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- int main()
- {
- int a,b,c;
- int ch=0,m=0;
- cin>>a;
- for(int i=1;i<=a;i++)
- {
- cin>>b>>c;
- if(b>c)
- {
- m++;
- }
- if(b<c)
- {
- ch++;
- }
- else
- {
- m++;
- ch++;
- }
- }
- if(m>ch) cout<<"Mishka"<<endl;
- if(m<ch) cout<<"Chris"<<endl;
- if(m == ch) cout<<"Friendship is magic!^^"<<endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement