Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
62740 乐高国际教育 [在线测评解答教程] 闰年 C++ Accepted 2 MS 280 KB 259 2023-12-28 17:53:06

Tests(11/11):


Code:

#include <iostream> using namespace std; int main(){ int t; cin >> t; while(t--){ int year; cin >> year; if ((year % 4 == 0 && year %100 != 0) || (year % 400 == 0)) cout<<"Yes"<<endl; else cout<<"No"<<endl; } return 0; }