You are not logged in. Please login at to post your questions!


Help in a codeforces dp problem

Getting Wrong answer on test case 39:
Here's the problem link link text
I used dp with memoization(using map). Started from last element and then their are two cases either include it in sum or not include it.
My submission link text

asked 13 May '18, 21:31

vbt_95's gravatar image

accept rate: 27%

toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:


question asked: 13 May '18, 21:31

question was seen: 119 times

last updated: 13 May '18, 21:31