Run ID:159072

提交时间:2026-08-25 15:13:39

#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; int main(){ int year,year1,year2,s; cin>>year>>year1>>year2; s=0; if(year%400==0||year%4==0&&year%100!=0){ s=s+1; } if(year1%400==0||year1%4==0&&year1%100!=0){ s=s+1; } if(year2%400==0||year2%4==0&&year2%100!=0){ s=s+1; } cout<<s; return 0; }