Run ID:155506

提交时间:2026-06-07 14:11:55

#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,n=0; cin>>a>>b>>c; if(a % 400 == 0){ n=n+1; }else{ if(a % 100 != 0 and a % 4 == 0){ n=n+1; }else{ n=n; } } if(b % 400 == 0 ){ n=n+1; }else{ if(b % 100 != 0 and b % 4 == 0){ n=n+1; }else{ n=n; } } if(c % 400 == 0){ n=n+1; }else{ if(c % 100 != 0 and c % 4 == 0){ n=n+1; }else{ n=n; } } cout<<n; return 0; }