fork(2) download
  1. #include <iostream>//zaliczone
  2. using namespace std;
  3.  
  4. int main() {
  5. int n;
  6. int tab[10000];
  7. cin>>n;
  8. for(int x=0;x<n;x++)
  9. {
  10. cin>>tab[x];
  11. }
  12. for(int x=0;x<n;x++)
  13. {
  14. if((tab[x]%3!=0||tab[x]==3)&&(tab[x]%2!=0||tab[x]==2)&&tab[x]!=1)
  15. {
  16. cout<<"TAK"<<endl;
  17.  
  18. }
  19. else
  20. {
  21. cout<<"NIE"<<endl;
  22. }
  23. }
  24. return 0;
  25. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
Standard output is empty