#include<stdio.h> int main() { int n; while(scanf("%d",&n)!=EOF) { if(((n%4==0)&&(n%100!=0))||(n%400==0)) printf("yes\n"); else printf("no\n"); } return 0; }
原文地址:https://www.cnblogs.com/Estwind/p/9751149.html
时间: 2024-10-07 20:30:46
#include<stdio.h> int main() { int n; while(scanf("%d",&n)!=EOF) { if(((n%4==0)&&(n%100!=0))||(n%400==0)) printf("yes\n"); else printf("no\n"); } return 0; }
原文地址:https://www.cnblogs.com/Estwind/p/9751149.html