Run ID:66062

提交时间:2024-03-02 12:01:00

#include<bits/stdc++.h> using namespace std; int main(){ int y,q,w; cin>>y>>q>>w; int j=0; if(y%400==0||(y%4==0&&y%100!=0)){ j++; } if(q%400==0||(q%4==0&&q%100!=0)){ j++; } if(w%400==0||(w%4==0&&w%100!=0)){ j++; } cout<<j; return 0; }