Your task is, given an ASCII art representation of a diamond tiling, is to output the number of cubes removed and remaining (in any order), so for example the outputs should be 3 and 1 for these tilings(some shamelessly stolen from Scale up a Diamond Tiling):
____
/ /\
/___/ \ ________-> 1 0 or 0 ________1
\ /___/ \ /
\___\/
________
/ /\ \
/\ ___/ \\___\ -> 1 \1
/\ \ /\ /___/
\___\ /___/
\___\___\____________
/ \___\/ \ /\ \ / \
/___/ /\___\___\ \-> 2 /1 or 1 /2
\ \
\ / /\ / /
\___\/___/ \/___/
\___\________________
\/___/ \ /\ \ / \ \
/___/ \___\___\___\ /-> 3 1 or 1 3
\ \ / /
\ \ / /
\\___\/___/___/___/
________
/\ \ \___\/___/ \
/ \___\___\
\ \___\/
While for this example the number of cubes is 40 and 20:
/\ ____________________\
\/___/ \___\ -> /3 1 or /\1 3
\ \ \/ \/
\___\/___/
\___\___\___\___\ ________
/ /\ \
/\___/ \___\ \-> 3 1 \or 1 3
/\ \
/ \___\/ \___\___\___\___\/
/ \___\/___/
\ / /\ / /
\/___/___/
/ ____
/\ /\
/ \/___/ \/___/___/___/ \___\
\ /\ \ / \
/ \___\/ \ -> 3 \1 or 1 3
\ / /\
\/ /
\___\\/___/ \___\___\/___\/
\
\ /
\___\/\
\ ________
/ /\ \
/___/ \ \___\
/
\ \/___/ \___\/___/ \___\___\ /\
/ \___\/___/ \ -> 4 4
\ / /\ \ /
\/ ___/ \___\/
\ \ \___\ /___ /
\___\/___/___/
\ \____________
\ / / /\ /\
\___\___\/___/___/___/
More examples shamelessly stolen from Scale up a Diamond Tiling:
____\___\
/ /\
/___/ \ ->\ 1 0
/\ \
/
___/ \___\/
\___\
/\ ________
\ / /\ / /\
/ \___\/___/ \/___/ \___\\ -> 16 11 or 11 16
\ / /\ \ / /\ /
\/___/ \___\/___/ \/
-> 4\ 4
\ / /\ \ /
\ \___\/___/ \___\/
\ \ \ / /
\___\ \___\___\/___/
________________________________
/ /\ /\ \ \ \
/___/___ \___\___\___\___\
/\ \___\ \ /\ \ \ \ \
/ \___\/ \___\___\___\___\
/\ / /\ / / / /\ \
/ \/___/ \___\\/___/___/___/ \___\
\ /\ \ / /\ \ \ / /\
\/ \___\/___/ \\___\___\/___/ \ -> 1640 1120 or 20 40
\ / /\ \ / /\ \ \ /
\/___/ \___\/___/ \\___\___\/
\ \ / /\ \ / / /
\___\/___/ \___\/___/___/
\ \ \ / / / /
\___\___\/___/
___/___/
________________
/ /\ \ \ \
/___/ \___\___\___\
/\ \ /\ \ \ \
/ \___\/ \___\___\___\
/\ / /\ / / /\ \
/ \/___/ \/___/___/ \___\
/\ /\ \ / / /\ /\ \
/ \/ \___\/___/___/ \/ \___\ -> 46 18 or 18 46
\ /\ / /\ \ \ /\ / /
\/ \/___/ \___\___\/ \/___/
\ /\ \ / /\ \ / /
\/ \___\/___/ \___\/___/
\ /\ \ \ / / /
\/ \___\___\/___/___/
\ / / / / /
\/___/___/___/___/