Typical ICPC Problem#10827

Typical ICPC Problem (Discussion)