CF 491A - Up the hill

Codeforces 491A: Up the hill

CF 491A - Up the hill

Rating: 1000
Tags: constructive algorithms, implementation
Solve time: 5m 18s
Verified: no

Solution