//完成しています
#include <stdio.h>
int main()
{
int m,d;
switch(m)
{
case 1: case 3: case 5: case 7: case 8: case 10: case 12:
if ((d<1)||(d>31))
{
}
break;
case 4: case 6: case 9: case 11:
if ((d<1)||(d>30))
{
}
break;
case 2:
if ((d<1)||(d>29))
{
}
break;
default:
break;
}
if ((d>=1)&&(d<=29))
{
if (((m==2)&&(d>=19))||((m==3)&&(d<=20)))
{
}
}
if ((d>=1)&&(d<=30))
{
if (((m==4)&&(d>=20))||((m==5)&&(d<=20)))
{
printf("%d月%d日の星座は牡牛座です",m
,d
); }
if (((m==6)&&(d>=22))||((m==7)&&(d<=22)))
{
}
if (((m==9)&&(d>=23))||((m==10)&&(d<=23)))
{
printf("%d月%d日の星座は天秤座です",m
,d
); }
if (((m==11)&&(d>=23))||((m==12)&&(d<=21)))
{
printf("%d月%d日の星座は射手座です",m
,d
); }
}
if ((d>=1)&&(d<=31))
{
if (((m==3)&&(d>=20))||((m==4)&&(d<=19)))
{
printf("%d月%d日の星座は牡羊座です",m
,d
); }
if (((m==5)&&(d>=21))||((m==6)&&(d<=21)))
{
printf("%d月%d日の星座は双子座です",m
,d
); }
if (((m==7)&&(d>=23))||((m==8)&&(d<=22)))
{
printf("%d月%d日の星座は獅子座です",m
,d
); }
if (((m==8)&&(d>=23))||((m==9)&&(d<=22)))
{
printf("%d月%d日の星座は乙女座です",m
,d
); }
if (((m==10)&&(d>=24))||((m==11)&&(d<=22)))
{
}
if (((m==12)&&(d>=22))||((m==1)&&(d<=19)))
{
printf("%d月%d日の星座は山羊座です",m
,d
); }
if (((m==1)&&(d>=20))||((m==2)&&(d<=18)))
{
printf("%d月%d日の星座は水瓶座です",m
,d
); }
}
return 0;
}
Ly/lrozmiJDjgZfjgabjgYTjgb7jgZkKI2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpCnsKCWludCBtLGQ7CglzY2FuZigiJWQlZCIsJm0sJmQpOwoJCglzd2l0Y2gobSkKCXsKCSAgICBjYXNlIDE6I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Vk5pel44Gu5pif5bqn44Gv6J+55bqn44Gn44GZIixtLGQpOwoJICAgIH0KCSAgICBpZiAoKChtPT05KSYmKGQ+PTIzKSl8fCgobT09MTApJiYoZDw9MjMpKSkKCSAgICB7CgkgICAgICAgIHByaW50ZigiJWTmnIglZOaXpeOBruaYn+W6p+OBr+WkqeenpOW6p+OBp+OBmSIsbSxkKTsKICAgICAgICB9CiAgICAgICAgaWYgKCgobT09MTEpJiYoZD49MjMpKXx8KChtPT0xMikmJihkPD0yMSkpKQoJICAgIHsKCSAgICAgICAgcHJpbnRmKCIlZOaciCVk5pel44Gu5pif5bqn44Gv5bCE5omL5bqn44Gn44GZIixtLGQpOwogICAgICAgIH0KCX0KCWlmICgoZD49MSkmJihkPD0zMSkpCgl7CgkJaWYgKCgobT09MykmJihkPj0yMCkpfHwoKG09PTQpJiYoZDw9MTkpKSkKCQl7CgkJICAgIHByaW50ZigiJWTmnIglZOaXpeOBruaYn+W6p+OBr+eJoee+iuW6p+OBp+OBmSIsbSxkKTsKCSAgICB9CgkgICAgaWYgKCgobT09NSkmJihkPj0yMSkpfHwoKG09PTYpJiYoZDw9MjEpKSkKCSAgICB7CgkgICAgICAgIHByaW50ZigiJWTmnIglZOaXpeOBruaYn+W6p+OBr+WPjOWtkOW6p+OBp+OBmSIsbSxkKTsKCSAgICB9CgkgICAgaWYgKCgobT09NykmJihkPj0yMykpfHwoKG09PTgpJiYoZDw9MjIpKSkKCSAgICB7CgkgICAgICAgIHByaW50ZigiJWTmnIglZOaXpeOBruaYn+W6p+OBr+eNheWtkOW6p+OBp+OBmSIsbSxkKTsKCSAgICB9CiAgICAgICAgaWYgKCgobT09OCkmJihkPj0yMykpfHwoKG09PTkpJiYoZDw9MjIpKSkKCSAgICB7CgkgICAgICAgIHByaW50ZigiJWTmnIglZOaXpeOBruaYn+W6p+OBr+S5meWls+W6p+OBp+OBmSIsbSxkKTsKICAgICAgICB9CiAgICAgICAgaWYgKCgobT09MTApJiYoZD49MjQpKXx8KChtPT0xMSkmJihkPD0yMikpKQoJICAgIHsKCSAgICAgICAgcHJpbnRmKCIlZOaciCVk5pel44Gu5pif5bqn44Gv6KCN5bqn44Gn44GZIixtLGQpOwogICAgICAgIH0KICAgICAgICBpZiAoKChtPT0xMikmJihkPj0yMikpfHwoKG09PTEpJiYoZDw9MTkpKSkKCSAgICB7CgkgICAgICAgIHByaW50ZigiJWTmnIglZOaXpeOBruaYn+W6p+OBr+Wxsee+iuW6p+OBp+OBmSIsbSxkKTsKICAgICAgICB9CiAgICAgICAgaWYgKCgobT09MSkmJihkPj0yMCkpfHwoKG09PTIpJiYoZDw9MTgpKSkKCSAgICB7CgkgICAgICAgIHByaW50ZigiJWTmnIglZOaXpeOBruaYn+W6p+OBr+awtOeTtuW6p+OBp+OBmSIsbSxkKTsKICAgICAgICB9Cgl9CglyZXR1cm4gMDsKfQ==