fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. string a1, a2;
  8. cin >> a1 >> a2;
  9. int b1, b2, b3, b4, c1, c2, c3, c4;
  10. cin >> b1 >> c1 >> b2 >> c2 >> b3 >> c3 >> b4 >> c4;
  11. if (b1+b2+b3+b4==c1+c2+c3+c4) {cout << "DRAW";}
  12. else if (b1+b2+b3+b4>c1+c2+c3+c4) {cout << a1;}
  13. else {cout << a2;}
  14. return 0;
  15. }
Success #stdin #stdout 0s 4480KB
stdin
Lakers
Hawks
26 17
13 15
19 11
14 16 
stdout
Lakers