fork 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.  
  15. else
  16.  
  17. if(b>c)
  18. {
  19. p=b;
  20. b=c;
  21. c=p;
  22. }
  23.  
  24. if(a+b>c)
  25. cout <<"TAK"<<endl;
  26.  
  27. else
  28.  
  29. cout <<"NIE"<< endl;
  30. return 0;
  31. }
Success #stdin #stdout 0.01s 5320KB
stdin
3
4
2
stdout
TAK