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