- #include<iostream>
- using namespace std;
- int main()
- {int cm=0,cn=0;
- int n=0,m=0,c=0;
- int sum=0,sumM=0,sumN=0;
- cin>>n;///round
- int i;
- for(i=0;i<n;i++){
- cin>>m>>c;
- if(m==c) continue;
- if(m>c) cm++;
- if(m<c) cn++;
- }
- //cout<<cm<<" " <<cn;
- if(cm==cn)cout<<"Friendship is magic!^^\n";
- if(cm>cn)cout<<"Mishka\n";
- if(cm<cn) cout<<"Chris\n";
- return 0;
- }
Saturday, April 25, 2020
703A. Mishka and Game Solution Codeoforces
Subscribe to:
Post Comments (Atom)
Aptitude test assistant programmer 2018
#include <stdio.h> #include <stdlib.h> int main() { char str[100]; int i; int space=0; printf("Enter a string\n")...
-
104A - Blackjack #include < bits / stdc ++. h > using namespace std ; int main (){ int n ; cin >> n ; int d = n - 10 ; ...
-
A. YES or YES? There is a string s � of length 3 3 , consisting of uppercase and lowercase English letters. Check if it is equal to &qu...
-
#include <iostream> using namespace std ; int main () { int n ; int q = 2 ; int c = 0 ; cin >> n ; if ( n % 2 == ...
No comments:
Post a Comment