fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4.  
  5. int main() {
  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. if(a+b>c)
  23. cout <<"Tak" << endl;
  24. else
  25. cout <<"Nie" << endl;
  26.  
  27. return 0;
  28. }
Success #stdin #stdout 0s 5312KB
stdin
3
7
2
stdout
Nie