Run ID:123576

提交时间:2025-07-06 13:19:22

#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,d; cin>>a>>b>>c; for(int x=1;x<b;x++){ if(x<=7){ if(x==2){ d+=28; if(a%4==0&&!a%100==0){ d++; } } else{ if(x%2==1){ d+=31; } else{ d+=30; } } } else{ if(x%2==0){ d+=31; } else{ d+=30; } } } cout<<d+c; return 0; }