文章
38
粉丝
11
获赞
2
访问
27.2k
#include<bits/stdc++.h>
using namespace std;
int main(){
int months[10] = {0,30,31,30,31,31,30,31,30,31};
int ans = 5;
int mon,day;
cin>> mon >>day;
mon -= 4;
for(int i = 0;i <= mon;i++)
ans += months[i];
ans += day;
string str = "";
switch(ans%7){
case 0:
str = "Monday";
break;
case 1:
str = "Tuesday";
break;
case 2:
str = "Wednesday";
break;
case 3:
str = "Thursday";
break;
case 4:
str = "Friday";
&n...
登录后发布评论
暂无评论,来抢沙发