Wednesday, August 15, 2012

Codeforces 216A

Here is the link: http://www.codeforces.com/problemset/problem/216/A

Basically you can think of the hexagon as a cuboid which you can see the top, front, and right side. So given a, b and c, the number of tiles is a * b * c - (a - 1) * (b - 1) * (c - 1). Pretty tricky, right?

No comments:

Post a Comment