摘要:
Polycarpus likes giving presents to Paraskevi. He has bought two chocolate bars, each of them has the shape of a segmented rectangle. The first bar is... 阅读全文
摘要:
We'll call an array ofnnon-negative integersa[1], a[2], ..., a[n]interesting, if it meetsmconstraints. Thei-th of themconstraints consists of three in... 阅读全文
摘要:
D. Valid Setstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAs you know, an undirected connected... 阅读全文
摘要:
DescriptionBeijing was once surrounded by four rings of city walls: the Forbidden City Wall, the Imperial City Wall, the Inner City Wall, and finally ... 阅读全文