Hello CF!
I think many of you, in particular IOI participants, can not find a good, clear solutions of IOI problems, so I decided to create a blog where we will publish a problem then find solution for it and start to solve next problem.
Let me begin — IOI 2006 B. Pyramid.