8 while test "$input"; do
9 case ${input%%${input#?}} in
14 *) echo 'unexpected input'; exit 1 ;;
16 houses
[$x/$y]=$
(( ${houses[$x/$y]} +1 ))
19 echo ${houses[*]} |
tr ' ' '\n' |
wc -l
29 while test "$input"; do
30 case ${input%%${input#?}} in
35 *) echo 'unexpected input'; exit 1 ;;
37 houses
[$x1/$y1]=$
(( ${houses[$x1/$y1]} +1 ))
39 case ${input%%${input#?}} in
44 *) echo 'unexpected input'; exit 1 ;;
46 houses
[$x2/$y2]=$
(( ${houses[$x2/$y2]} +1 ))
49 echo ${houses[*]} |
tr ' ' '\n' |
wc -l