4 solutions

  • 0
    @ 2025-7-15 11:48:09
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int n;
    	cin>>n;
    	int a=sqrt(n);
    	if(a*a==n)
    	{
    		cout<<"YES";
    	}
    	else
    	{
    		cout<<"NO";
    	}
    	return 0;
    }
    

    (ovo)

    Information

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