Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
165261 陈开远 [在线测评解答教程] 闰年 C++ Accepted 1 MS 264 KB 324 2026-11-14 13:19:42

Tests(11/11):


Code:

#include <iostream> #include <stdio.h> using namespace std; int main() { int t,n; scanf("%d", &t); while (t--) { scanf("%d", &n); if ((n%4==0 && n%100!=0) || n%400==0){ cout<<"Yes"<<'\n'; } else{ cout<<"No"<<'\n'; } } return 0; }