fork(2) download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.  
  8. int n;
  9. cin>>n;
  10. int l[n];
  11. while(n--)
  12. {
  13. cin>>l[n];
  14.  
  15.  
  16. if((l[n]>1)&&(l[n]/1)&&(l[n]/l[n]))
  17. {
  18. cout<<"TAK"<<endl;
  19. }
  20. else
  21. {
  22. cout<<"NIE"<<endl;
  23. }
  24. }
  25.  
  26. return 0;
  27. }
  28.  
Success #stdin #stdout 0s 4460KB
stdin
Standard input is empty
stdout
TAK