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

×

What is Wrong with PUMPIMG code??

Solution 1 Solution 2

Can Somebody Help me to Debug my Solutions. It has divide and conquer approach.

Thanks in Advance

asked 22 Oct '18, 00:45

huzaifa242's gravatar image

5★huzaifa242
323
accept rate: 0%


I think you just forgot that question contains input sample test case T also. when I run your code with adding input T I got the correct answer ( https://www.codechef.com/viewsolution/21142394 ). I don't think we need segment tree for this problem. link to my code without segment tree ( https://www.codechef.com/viewsolution/21142206 )

link

answered 22 Oct '18, 04:30

vipin1407's gravatar image

5★vipin1407
2045
accept rate: 13%

why my code (https://www.codechef.com/viewsolution/21135941)is getting TLE as I did similar to vipin1407(https://www.codechef.com/viewsolution/21142206 ).

Thanks in Advance

link

answered 22 Oct '18, 10:30

gupta_173's gravatar image

5★gupta_173
1
accept rate: 0%

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,698

question asked: 22 Oct '18, 00:45

question was seen: 162 times

last updated: 22 Oct '18, 10:30