提交时间:2024-07-02 19:08:57

运行 ID: 49300

#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"; }