determine the value a-b-c+d
Source:
January 24, 2016
Problem Statement
A cube with sides of length 3cm is painted red
and then cut into 3 x 3 x 3 = 27 cubes with sides of length 1cm.
If a denotes the number of small cubes (of 1cm x 1cm x 1cm) that
are not painted at all, b the number painted on one sides, c the
number painted on two sides, and d the number painted on three
sides, determine the value a-b-c+d.