Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
145823 张奕杨 08判断是否为闰年 C++ Accepted 1 MS 276 KB 408 2026-01-25 19:09:05

Tests(11/11):


Code:

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