1 solutions

  • 0
    @ 2025-3-3 16:24:11

    C++ :

    #include <bits/stdc++.h>
    using namespace std;
    
    int main(){
    	int n;
    	cin>>n;
    	int x=sqrt(n);
    	if(x*x==n){
    		cout<<"Y";
    	}else{
    		cout<<"N";
    	}
    }
    
    • 1

    Information

    ID
    10060
    Time
    1000ms
    Memory
    64MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By