Advertisement
Guest User

Cub_Perfect

a guest
Nov 15th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     long long n, rt, x;
  7.     cin>>n;
  8.     for(int i=1;i<=n;i++)
  9.     {
  10.         cin>>x;
  11.         rt=cbrt(x);
  12.         if(rt*rt*rt==x)
  13.             cout<<"DA\n";
  14.         else
  15.             cout<<"NU\n";
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement