#include<stdio.h>
int main()
{ const char week[8][10]={"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"};
int n;
scanf("%d",&n);
printf("%s\n",n>0&&n<7?week[n]:"Error");
return 0;
}
#include<stdio.h>
int main()
{ int m,n;
float p,t=0;
scanf("%d%d%f",&m,&n,&p);
if(m<1||m>12)
{printf("month error\n");
return 0;
}
if(m==1||m>6&&m<10)
{if(n>19)t=0.05;}
else if(n>19)t=0.2;
else t=0.1;
printf("%d%%,%.2f,%.2f\n",(int)(t*100),t*n*p,(1-t)*n*p);
return 0;
}
#include<stdio.h>
int main()
{ int w;
scanf("%d",&w);
switch(w)
{ case 0:
printf("Sunday\n");
break;
case 1:
printf("Monday\n");
break;
case 2:
printf("Tuesday\n");
break;
case 3:
printf("Wednesday\n");
break;
case 4:
printf("Thursday\n");
break;
case 5:
printf("Friday\n");
break;
case 6:
printf("Saturday\n");
break;
default:
printf("Error\n");
}
return 0;
}
谢谢