Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
144866 刘宸宇 08有几个闰年 C++ Accepted 0 MS 280 KB 250 2026-01-24 19:19:30

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int aa[4],o=0; cin>>aa[0]>>aa[1]>>aa[2]; for(int i=0;i<3;i++){ int a=aa[i]; if(a%400==0||(a%4==0&&a%100!=0)) o++; } cout<<o<<endl; return 0; }