Блог пользователя Ahmet.K37

Автор Ahmet.K37, история, 5 лет назад, По-английски

In 09.03.2019 there will be COCI exam in this link: http://hsin.hr/coci/ You can study for the old COCI's here: https://oj.uz/problems/source/122 Also this site has an online judge. The contest will begin at:09.03.2019 14:00 GMT/UTC and it will take three hours.

UPD1: Last 4 hours...

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

»
5 лет назад, # |
  Проголосовать: нравится +7 Проголосовать: не нравится

Thank you for announcement.

»
5 лет назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

Auto comment: topic has been updated by Ahmet.K37 (previous revision, new revision, compare).

»
5 лет назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

Last 3 days.

»
5 лет назад, # |
  Проголосовать: нравится +8 Проголосовать: не нравится

Auto comment: topic has been updated by Ahmet.K37 (previous revision, new revision, compare).

»
5 лет назад, # |
  Проголосовать: нравится +7 Проголосовать: не нравится

Let me give Sličice's solution. You will do dp for this question.You will keep two things in recursive.(Index and how many bonus you have)

Then you use for in recursive for how many times you use bonus for this index . Then you will take max.

This is the code: https://paste.ubuntu.com/p/twNKyCZBjS/