Created
August 25, 2014 14:14
-
-
Save satellitex/74f61c340c0d4e93020f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<bits/stdc++.h> | |
| using namespace std; | |
| int A; | |
| int main(){ | |
| cin >> A; | |
| bool f = false; | |
| for(int i=1;i<=1000;i++){ | |
| if( i*i*i == A ) f = true; | |
| if( f ) break; | |
| } | |
| if( f ) cout << "YES" << endl; | |
| else cout << "NO" << endl; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment