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;
}
淦,難受死了,繼續(xù)刷排名?。?!