fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. long long n,m;
  6. cin >> n >> m;
  7. if(m >= 2000000000)
  8. {
  9. cout << "NIE";
  10. return 0;
  11. }
  12. if(n >= ((m*(m+1))/2))
  13. {
  14. cout << "TAK";
  15. return 0;
  16. }
  17. cout << "NIE";
  18. return 0;
  19. }
Success #stdin #stdout 0s 5284KB
stdin
10 10
stdout
NIE