666

Gooooogle  •  1年前


include<bits/stdc++.h>

using namespace std; int n,m[13]={0,31,28,31,30,31,30,31,31,30,31,30,31},l,k,ans; int main(){

cin>>n>>l;
if(n%4==0&&n%100!=0||n%400==0)m[2]++;
for(int i=1;i<=12;i++){
	k=(l+12)%7;
	if(k==5){
    cout<<i<<endl;
     ans++;
 }
	l=(l+m[i])%7;
}

if(ans==0)cout<<"None";

return 0;

}


评论:

请先登录,才能进行评论