- 论坛徽章:
- 0
|
help! please simplify this shell program!
for example ( all the number is my guess):
2003 (Sunday 2 Friday 2 Thursday 1 Saturday 3 Tuesday 2 Monday 1 Wednesday 1)
2004 (Sunday 1 Friday 1 Thursday 2 Saturday 1 Tuesday 2 Monday 3 Wednesday 2)
2005 (Sunday 1 Friday 2 Thursday 1 Saturday 3 Tuesday 2 Monday 1 Wednesday 2)
add all sunday, monday, tuesday, ..... together, after you get the numbers, then you compare to get the output.
$hh.sh 2003 2005
Sunday Thursday
Note: Sunday and Thursday only appears 4 times, then both of them is the lowest. |
|