Run ID:146000
提交时间:2026-01-25 20:11:13
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; bool a1(long long n){ if((n%4==0&&n%100!=0)||n%400==0){ return true; }else{ return false; } } int main(){ long long a,b,c,d=0; cin>>a>>b>>c; if(a1(a)) d++; if(a1(b)) d++; if(a1(c)) d++; cout<<d; return 0; }