Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
145833 张奕杨 08有几个闰年 C++ Accepted 1 MS 272 KB 390 2026-01-25 19:11:24

Tests(10/10):


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,b,c; cin>>a>>b>>c; cout<<rn(a)+rn(b)+rn(c); return 0; }