A. Mishka and Game

Problem Link

<Souce Code>

#include<stdio.h>
#define pf printf

int main()
{
int n,i,m,c,ans1=0,ans2=0;
scanf(“%d”,&n);
for(i=0;i<n;i++)
{
scanf(“%d%d”,&m,&c);
if(m>c)
ans1++;
else if(m<c)
ans2++;
}
if(ans1>ans2)
puts(“Mishka”);
else if(ans1<ans2)
puts(“Chris”);
else
puts(“Friendship is magic!^^”);
return 0;
}

Advertisements

About waprogramming

I am in CSE,from CUET
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s