Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
49304 | zhouxinglin | 202406-GESP-一级-立方数 | C++ | Accepted | 1 MS | 244 KB | 267 | 2024-07-02 19:14:24 |
#include<bits/stdc++.h> using namespace std; int f(int x){ for(int i=0;i<x;i++){ if(i*i*i==x){ return 1; } } return 0; } int main(){ int n; cin>>n; if(f(n)==1){ cout<<"Yes"; } else cout<<"No"; }