Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- using namespace std;
- int main()
- {
- long long int n=0,i,a,b,x,ok,j;
- cin>>n;
- for(j=1;j<=n;j++)
- {
- cin>>x;
- i=1;
- if(x<0) x=-x;
- while(i*i*i<x)
- i++;
- if(i*i*i==x) cout<<"DA"<<endl; else cout<<"NU"<<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement