D. Rooter's Song time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Wherever the destination is, whoever we meet, let's render this song together. On a Cartesian coordinate plane lies a recta…
http://codeforces.com/contest/738/problem/D 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 bconsecutive cells. No cell can be part of two ships, however, the shi…