提交时间:2026-01-03 14:56:48
运行 ID: 79379
#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; }