fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int a,b,c,p;
  7. cin >> a >> b >> c;
  8.  
  9. if (a>b && a>c)
  10. {
  11. p = a;
  12. a = c;
  13. c = p;
  14. }
  15. else
  16. if (b>c)
  17. {
  18. p = b;
  19. b = c;
  20. c = p;
  21. }
  22.  
  23. if (a + b > c)
  24. cout << "TAK" << endl;
  25. else
  26. cout << "NIE" << endl;
  27.  
  28. return 0;
  29. }
Success #stdin #stdout 0.01s 5276KB
stdin
1
1
8
stdout
NIE