5 solutions

  • 0
    @ 2026-6-21 13:52:32
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        int a;
    	cin>>a;
    	int b=sqrt(a);
    	if(b*b==a)
    	{
    		cout<<"YES";
    	}
    	else
    	{
    		cout<<"NO";
    	}
    	return 0; 
    }
    

    Information

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