~cs9242/12/lectures/
#include
int main(void)
{
int year;
scanf("%d", &year);
if(year % 4 == 0 && year % 100 != 0)
printf("Yes\n");
else if(year % 400 == 0)
printf("Yes\n");
else
printf("No\n");
return 0;
}
/*
#include
int main(void)
{
int year;
scanf("%d", &year);
if((year % 4 == 0 && year % 100 != 0) || year % 400 == 0)
printf("Yes\n");
else
printf("No\n");
return 0;
}
*/
#include
int main(void)
{
int year;
scanf("%d", &year);
printf("%s\n", (year % 4 == 0 && year % 100 != 0) || year % 400 == 0 ? "Yes" : "No");
return 0;
}
阅读(1567) | 评论(0) | 转发(0) |