MapleStory Finger Point

๐Ÿƒ‍โ™‚๏ธBaekjoon/C++

[2753/Cpp] ์œค๋…„

HYEJU01 2021. 9. 3. 03:47
#include <stdio.h>
using namespace std;
int main(){
int a;

scanf("%d" , &a);

if (a%4 == 0){ //4์˜๋ฐฐ์ˆ˜์ด๊ณ 
    if (a%100 != 0){
        printf("1");
       }
    else if (a%400 == 0){
        printf("1");
        }
    else {
        printf("0");
    }
    }
else
    printf("0");



return 0;
}