#95. Determine leap year : Correct solution

C2024010 2024-07-24 10:35:05 2024-07-24 10:35:15

#include<bits/stdc++.h>

int main() {

std:int n;

std::cin>>n;

if(n%100 != 0 and n%4==0 or n%100 == 0 and n%400==0)

	std::cout<<"1";

if( n%4!=0 or n%100==0 and n%400 != 0)

    std::cout<<"0";

return 0;

}