SHARE
TWEET

Untitled

a guest Apr 20th, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. int main(){
  4.     int a,b,c,d,e,f;
  5.     cin>>a>>b>>c>>d>>e>>f;
  6.     int n=(a+b+c)/2;
  7.     int m=(d+e+f)/2;
  8.     if((a+b+c)%2!=0 || (d+e+f)%2!=0 || n<a || n<b || n<c || m<d || m<e || m<f){
  9.         cout<<"Drogba Wins";
  10.     }
  11.     else if(a+b+c>d+e+f){
  12.         cout<<"Messi Wins";
  13. }
  14.     else if(a+b+c<d+e+f){
  15.         cout<<"Ronaldo Wins";
  16.     }
  17.     else{
  18.     cout<<"Draw...";
  19. }
  20.     return 0;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top