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