[Codeforces Round #320 (Div. 2) C. A Problem about Polyline (数学)

NoSuchKey