fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main() {
  4. int a,b,c,d;
  5. long long x,v;
  6. cin>>a>>b>>c>>d;
  7. x=a*3+b*2;
  8. v=c*3+d*2;
  9. if(x>v)
  10. {cout<<"Team 1 Wins"<<endl;}
  11. else if(x<v)
  12. {cout<<"Team 2 Wins"<<endl;}
  13. else if(x==v)
  14. {cout<<"Tie"<<endl;}
  15.  
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 5296KB
stdin
Standard input is empty
stdout
Team 1 Wins