You are not logged in. Please login at www.codechef.com 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

4★vbt_95
4406
accept rate: 27%

toggle preview
Preview

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×2,167
×1,070
×672

question asked: 13 May '18, 21:31

question was seen: 119 times

last updated: 13 May '18, 21:31