3 solutions

  • 2
    @ 2025-7-2 9:07:40
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        int n;
        cin>>n;
        int b=sqrt(n);
        b=b*b;
        if(b==n)
        {
            cout<<"YES";
        }
        else cout<<"NO";
        return 0;
    }
    

    Information

    ID
    2802
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    40
    Accepted
    17
    Uploaded By