摘要:
After a long party Petya decided to return home, but he turned out to be at the opposite end of the town from his home. There are nn crossroads in the 阅读全文
摘要:
Screen resolution of Polycarp's monitor is a×ba×b pixels. Unfortunately, there is one dead pixel at his screen. It has coordinates (x,y)(x,y) (0≤x<a,0 阅读全文
摘要:
This is a harder version of the problem. In this version n≤500000n≤500000 The outskirts of the capital are being actively built up in Berland. The com 阅读全文