Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
49300 | zhouxinglin | 202406-GESP-一级-立方数 | C++ | Compile Error | 0 MS | 0 KB | 274 | 2024-07-02 19:08:57 |
#include<bits/stdc++.h> using namespace std; int f(int x){ bool p=0; for(int i=0;i<x;i++){ if(i*i*i==n){ p=1; } else p=0; } } int main(){ int n; cin>>n; if(f(n)==1){ cout<<"yes"; } else cout<<"no"; }