Bash + GNU utilities, 70
date -f- +%u<<<"1ドル/1+1month-1day
1ドル/1"|dc -e??sad8*la-55-rla+8-d*64*+p
Input is formatted as YYYY/MM.
Output is numeric, as follows:
- less than 0: centrally symmetric
- exactly 0: symmetric
- greater than 0: asymmetric
I assume this output format is acceptable for this question.
Bash + GNU utilities, 70
date -f- +%u<<<"1ドル/1+1month-1day
1ドル/1"|dc -e??sad8*la-55-rla+8-d*64*+p
Input is formatted as YYYY/MM.
Output is numeric, as follows:
- less than 0: centrally symmetric
- exactly 0: symmetric
- greater than 0: asymmetric
Bash + GNU utilities, 70
date -f- +%u<<<"1ドル/1+1month-1day
1ドル/1"|dc -e??sad8*la-55-rla+8-d*64*+p
Input is formatted as YYYY/MM.
Output is numeric, as follows:
- less than 0: centrally symmetric
- exactly 0: symmetric
- greater than 0: asymmetric
I assume this output format is acceptable for this question.
Bash + coreutils GNU utilities, 8070
d()(date -d1ドル +%u)
a=`d 1ドル/1`
b=`df- 1ドル+%u<<<"1ドル/1+1month-1day`1day
echo1ドル/1"|dc $[(a-1||be??sad8*la-7)+(a+b!=8)]55-rla+8-d*64*+p
Input is formatted as YYYY/MM.
Output is numeric, as follows:
- less than 0: centrally symmetric
- 1exactly 0: centrally symmetric
- 2greater than 0: asymmetric
Bash + GNU utilities, 70
date -f- +%u<<<"1ドル/1+1month-1day
1ドル/1"|dc -e??sad8*la-55-rla+8-d*64*+p
Input is formatted as YYYY/MM.
Output is numeric, as follows:
- less than 0: centrally symmetric
- exactly 0: symmetric
- greater than 0: asymmetric