Run ID:7269

提交时间:2025-04-12 10:56:50

#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 y,a,s,d; cin>>y>>a>>s; if(y%100==0) { if(y%400==0) { d=d+1; } else { if(a%100==0) { if(a%400==0) { d=d+1; } } else { if(a%4==0) { d=d+1; } else { cout<<y<<" "<<"No"; } } } } else { if(y%4==0) { d=d+1; } else { if(s%100==0) { if(s%400==0) { d=d+1; } else { cout<<y<<" "<<"No"; } } else { if(s%4==0) { d=d+1; } } } return 0; }