Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
330927 | 路明泽 | [在线测评解答教程] 闰年 | C++ | 通过 | 100 | 4 MS | 196 KB | 339 | 2025-07-11 12:32:02 |
#include <stdio.h> int main() { int t, year; scanf("%d", &t); for (int i = 0; i < t; i++) { scanf("%d", &year); if ((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0)) { printf("Yes\n"); } else { printf("No\n"); } } return 0; }