4 solutions

  • 1
    @ 2025-11-8 19:03:23
    
    ```cpp
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        int n;
        cin>>n;
        int s;
        for(int i=1;i<=n;i++)
        {
            if(i*i*i==n)
            {
                cout<<"Yes";
                s=i;
            }
        }
        if(s*s*s!=n)
        {
                cout<<"No";
        }
        return 0;
    }
    
    • 0
      @ 2025-11-22 9:47:46

      #include<bits/stdc++.h> using namespace std; int main() { int n,cnt=0; cin>>n; for(int i=1;i<=n;i++) { if(iiin) { cnt+=1; } else { continue; } } if(cnt1) cout<<"Yes"; else cout<<"No"; return 0; }

      • -1
        @ 2025-11-22 9:47:30

        #include<bits/stdc++.h> using namespace std; int main() { int n,cnt=0; cin>>n; for(int i=1;i<=n;i++) { if(iiin) { cnt+=1; } else { continue; } } if(cnt1) cout<<"Yes"; else cout<<"No"; return 0; }

        • -1
          @ 2025-8-21 14:43:38

          cout<<1<<endl;

          • 1

          Information

          ID
          2178
          Time
          1000ms
          Memory
          256MiB
          Difficulty
          7
          Tags
          # Submissions
          89
          Accepted
          21
          Uploaded By