摘要: Theater stage is a rectangular field of size n × m. The director gave you the stage's plan which actors will follow. For each cell it is stated in the 阅读全文
posted @ 2016-11-20 22:15 Lweleth 阅读(407) 评论(0) 推荐(0) 编辑
摘要: There are n workers in a company, each of them has a unique id from 1 to n. Exaclty one of them is a chief, his id is s. Each worker except the chief 阅读全文
posted @ 2016-11-20 22:07 Lweleth 阅读(355) 评论(0) 推荐(0) 编辑
摘要: Galya is playing one dimensional Sea Battle on a 1 × n grid. In this game a ships are placed on the grid. Each of the ships consists of b consecutive 阅读全文
posted @ 2016-11-20 21:54 Lweleth 阅读(268) 评论(0) 推荐(0) 编辑