#include #include #include // Yukicoder №9010 うるう年判定 ★ // https://yukicoder.me/problems/no/9010 // *********************** #define GETLINE(str) do{char *p;fgets(str,sizeof(str),stdin);p=strchr(str,'\n');if(p)*p='\0';}while(0) static int GETLINEINT(void) {char s[34];GETLINE(s);return atoi(s);} #define Yes(a) printf("%s",((a)?"Yes":"No")) // ********************* int uruuyear(int year){ if( year % 4 == 0 && year % 100 != 0 || year % 400 == 0 ) return 1; else return 0; } // ********************* int main( void ) { Yes( uruuyear( GETLINEINT() ) ); }