Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int n;
- cin>>n;
- if(n==1)
- cout<<"da\n";
- else
- {
- int nrd=2,d=2;
- while(d*d<n)
- {
- if(n%d==0)
- nrd+=2;
- ++d;
- }
- if(d*d==n)
- ++nrd;
- if(nrd%2)
- cout<<"da\n";
- else
- cout<<"nu\n";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement