2020/10/23 周五
下午没课,兴致勃勃在宿舍刷排名,结果搞到1028: I love 闰年!这个题崩溃了,和书上一模一样,为啥会错!!!
include<stdio.h>
int main(void)
{
int x;
scanf("%d",&x);
if(x % 4!= 0);
{
printf("no\n");
}
else
{
if(x % 100 !=0);
{
printf("yes\n");
}
else
{
if(x%400==0)
printf("yes\n");
else
printf("no\n");
}
}
return 0;
}
淦,难受死了,继续刷排名!!!