Codeforces и Polygon могут быть недоступны в период с 23 мая, 7:00 (МСК) по 23 мая, 11:00 (МСК) в связи с проведением технических работ. ×

Блог пользователя parth015

Автор parth015, история, 8 лет назад, По-английски

The problem statement is following : We are required to transport a package using trucks. We are given package size and trucksize (every truck has equal capacity). The package can be repeatedly broken into half i.e 6 can be broken into 3-3 and 3 can be broken into 1 and 2. We were required to code a program which could tell the minimum amount of trucks required for given package size and trucksize.

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится