Problem Description
Loading...
Problem Analysis
It can be seen
that the blocks sharing fewer than 4 points with a corner block are all except the three neighboring blocks and itself
that the blocks sharing fewer than 4 points with an edge block are all except the four neighboring blocks and itself
that the blocks sharing fewer than 4 points with a face block are all except the five neighboring blocks and itself
the rest share fewer than 4 with all except the six neighboring blocks and itself
Then add them up and divide the result by 2 (each pair is counted twice)
and the answer is obtained
cpp
| |
Problem link: 【杭电】[1220]Cube