Skip to content

Instantly share code, notes, and snippets.

@MohamedTaha98
Created July 26, 2017 19:47
Show Gist options
  • Save MohamedTaha98/b6350bce76e062b17d37319aefa1c5ce to your computer and use it in GitHub Desktop.
Save MohamedTaha98/b6350bce76e062b17d37319aefa1c5ce to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
int main()
{
int n, mishka = 0, chris = 0;
cin >> n;
int ar[2];
for (int rnds = 0; rnds < n; rnds++)
{
cin >> ar[0] >> ar[1];
if (ar[0] > ar[1])
mishka++;
else if (ar[1] > ar[0])
chris++;
}
if (mishka > chris)
cout << "Mishka";
else if (chris > mishka)
cout << "Chris";
else
cout << "Friendship is magic!^^";
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment