1 solutions

  • 2
    @ 2024-12-15 14:14:05
    #include<bits/stdc++.h>
    using namespace std;
    bool isLeapyear(int y)
    {
    	if(y%4==0&&y%100!=0||y%400==0)
    	{
    		return true;
    	}
    	return false;
    }
    int main()
    {
    	int n;
    	cin>>n;
    	if(isLeapyear(n)) cout<<"yes";
    	else cout<<"no";
        return 0;
    }
    • 1

    Information

    ID
    108
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    64
    Accepted
    33
    Uploaded By