文章
21
粉丝
76
获赞
1
访问
13.7k
#include<stdio.h>
int days[13] = {0,0,0,0,30,31,30,31,31,30,31,30,31};
int count(int month,int day){
int num = 0;
if(month==4){
return day-12;
}else{
month--;
num = day;
for(;month>4;month--){
num +=days[month];
}
num+=18;
}
return num;
}
int main(void){
int month,day;
scanf("%d%d",&month,&day);
int ans = count(month,day)%7;
switch(ans){
case 0:printf("Thursday");break;
case 1:printf("Friday&...
登录后发布评论
暂无评论,来抢沙发