fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main(){
  5. int liczba, dzielnik = 0;
  6. cin >> liczba;
  7. for(int i = 1; i <= liczba; i++){
  8. if(liczba % i == 0){
  9. dzielnik++;
  10. }
  11. }
  12. if(dzielnik%2==0){
  13. cout << "NIE";
  14. }
  15. else{
  16. cout << "TAK";
  17. }
  18.  
  19. }
Success #stdin #stdout 0.01s 5524KB
stdin
Standard input is empty
stdout
NIE