Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
14972 hhz123 闰年 C++ 解答错误 0 MS 248 KB 330 2022-12-09 20:04:16

Tests(0/11):


#include <bits/stdc++.h> using namespace std; int main(){ int t,n; cin>>t; while(t--){ cin>>n; if(n%100==0){ if(n%400==0){ cout<<"Yes"; }else{ cout<<"No"; } }else{ if(n%4==0){ cout<<"Yes"; }else{ cout<<"No"; } } } return 0; }


测评信息: