1 solutions

  • 1
    @ 2025-8-18 15:25:25
    #include<bits/stdc++.h>
    using namespace std;
    int n;
    int main(){
    	cin>>n;
    	if(n%4==0&&n%100!=0){
    		cout<<"Y";
    	}else if(n%400==0){
    		cout<<"Y";
    	}else{
    		cout<<"N";
    	}
    	
    	
    	
    	return 0;
    }
    
    • 1

    Information

    ID
    41
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    305
    Accepted
    96
    Uploaded By