文章
1
粉丝
225
获赞
0
访问
8.3k
#include<bits/stdc++.h>
using namespace std;
int main(){
int month=4,day=12;
int mo,da;
cin>>mo;
cin>>da;
string zhou[]={"Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"};
for(int i=3;i<7;){
if(mo==month&&da==day){
cout<<zhou[i]<<endl;
break;
}
day++;
if(month==4||month==6||month==9||month==11){
if(day==31){
month++;
day=1;
}
}
else{
if(day==32){
month++;
day=1;
}
}
i++;
if(i==7){
i=0;
}
}
return 0;
}
登录后发布评论
暂无评论,来抢沙发