| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 79379 | sh25_lvyn | [在线测评解答教程] 闰年 | C++ | 解答错误 | 0 MS | 240 KB | 310 | 2026-01-03 14:56:48 |
#include<iostream> using namespace std; bool isLeapYear(int year){ if((year%4==0&&year%100!=0)||(year&400==0)){ return true; } return false; } int main(){ int t; while(t--){ int n; cin>>n; if(isLeapYear(n)){ cout<<"yes"<<endl; }else{ cout<<"no"<<endl; } } return 0; }