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

×

Highway Bypass -can someone please point out the mistake in my solution.

question : https://www.codechef.com/IOIPRAC/problems/INOI1401

dp state represents no. of ways to go to target given that next move will be 0(down) or 1(right) and the no. of moves left in that direction.

rleft : moves left in right direction

dleft : moves left in downwards direction

solution : https://ideone.com/GWwTzf

asked 24 Aug '17, 17:00

shivam2298's gravatar image

4★shivam2298
12
accept rate: 0%

edited 26 Aug '17, 15:55

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,718
×2,172
×399
×2

question asked: 24 Aug '17, 17:00

question was seen: 200 times

last updated: 26 Aug '17, 15:55