Ahmet.K37's blog

By Ahmet.K37, history, 6 years ago, In English

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...

  • Vote: I like it
  • +67
  • Vote: I do not like it

»
6 years ago, # |
  Vote: I like it +7 Vote: I do not like it

Thank you for announcement.

»
6 years ago, # |
  Vote: I like it +3 Vote: I do not like it

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

»
6 years ago, # |
  Vote: I like it +3 Vote: I do not like it

Last 3 days.

»
6 years ago, # |
  Vote: I like it +8 Vote: I do not like it

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

»
6 years ago, # |
  Vote: I like it +7 Vote: I do not like it

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/