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

Автор Dominater069, история, 3 месяца назад, По-английски

We invite you to participate in CodeChef’s Starters 226, this Wednesday, 18th February, rated for 5 stars (i.e. for users with rating < 2200).

Time: 8:00 PM — 10:00 PM IST

Joining us on the problem setting panel are:

Written editorials will be available for all on discuss.codechef.com. Pro users can find the editorials directly on the problem pages after the contest. The video editorials of the problems will be available only to Pro users.

Also, if you have some original and engaging problem ideas, and you’re interested in them being used in CodeChef's contests, you can share them here. Hope to see you participating.

Good Luck!

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

»
3 месяца назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Contest starts in 30 minutes.

»
3 месяца назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Were the test cases on "Good Array" weak because my 2 states dp solution passed using map. Not sure if due to some property we don't visit all states or just weak test case.

»
3 месяца назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

can anyone tell why my approach is incorrect for problem At least one
my approach was to calculate contibution of each $$$gap (1 \lt = d \lt n)$$$ by counting no. of subsequence having first $$$gap == d$$$ between $$$i$$$ and $$$i + d$$$

code
»
3 месяца назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

i think there is error in 'minimum distance' typing. no mention of input k