文章
5
粉丝
0
获赞
0
访问
3.6k
抽象的解题,乱戳
#include<stdio.h>
int main(){
int m[13] = {0,0,0,0,30,31,30,31,31,30,31,30};
int month,day,sum=0;
scanf("%d", &month);
scanf("%d", &day);
if(month == 4){
sum = day - 12;
} else{
sum = day;
month --;
for(;month>4;month--)
sum += m[month];
sum += 18;
}
int week = sum % 7;
switch(week){
case 0: printf("Thursday"); break;
case 1: printf("Friday"); break;
cas...
登录后发布评论
暂无评论,来抢沙发