提交时间:2024-01-23 16:58:58
运行 ID: 125453
#include<iostream> int main() { int year, leap; scanf("%d", &year); if (year % 4 == 0) { if (year % 100 == 0) { if (year % 400 == 0) leap = 1; else leap = 0; } else leap = 1; } else leap = 0; if (leap) printf("Y", year); else printf("N", year); return 0; }