XVII Open Cup Grand Prix of Eurasia
How to solve problem 1, 4, 8 and 12 of this contest??
I found that Petr commented problem 1 on his blog, but he didn't post the idea later.