CF 2009C - The Legend of Freya the Frog

Codeforces 2009C: The Legend of Freya the Frog

CF 2009C - The Legend of Freya the Frog

Rating: 1100
Tags: implementation, math
Solve time: 55s
Verified: no

Solution