You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
950 B
43 lines
950 B
#include<cstdio>
|
|
|
|
using namespace std;
|
|
|
|
int main() {
|
|
char i, j;
|
|
scanf("%d", &i);
|
|
switch (i) {
|
|
case 'm':
|
|
printf("monday\n");
|
|
break;
|
|
case 'w':
|
|
printf("wednesday\n");
|
|
break;
|
|
case 'f':
|
|
printf("friday\n");
|
|
break;
|
|
case 't':
|
|
scanf("%d", &j);
|
|
if (j == 'u') {
|
|
printf("tuesday\n");
|
|
break;
|
|
}
|
|
if (j == 'h') {
|
|
printf("thursday\n");
|
|
break;
|
|
}
|
|
case 's':
|
|
scanf("%d", &j);
|
|
if (j == 'a') {
|
|
printf("saturday\n");
|
|
break;
|
|
}
|
|
if (j == 'u') {
|
|
printf("sunday\n");
|
|
break;
|
|
}
|
|
default :
|
|
printf("error\n");
|
|
break;
|
|
}
|
|
return 0;
|
|
} |