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

×

TLE in LCH15CD

I implemented the solution in Python using Dictionary but I got TLE in the last subtask. Link of my solution.

I have used dynamic programming. I tried mapping the n-dimensional tuple to a value using in-built dictionary.

Please help why I am getting TLE.

Please Help is it due to python or due to dictionary or n-dimensional tuple or some optimization mistake ??

asked 25 Jan '15, 20:32

the65bit's gravatar image

4★the65bit
1.1k101328
accept rate: 13%

edited 19 Feb '15, 22:03

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,086
×715
×528
×510

question asked: 25 Jan '15, 20:32

question was seen: 1,038 times

last updated: 19 Feb '15, 22:03