shivamjain's blog

By shivamjain, history, 10 years ago, In English

i submitted a solution to this question, but i cant understand why i am getting error. here's my code: http://mirror.codeforces.com/contest/598/submission/14241094 any help will be appreciated.

  • Vote: I like it
  • 0
  • Vote: I do not like it

| Write comment?
»
10 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

would be much better if u just placed a submition :/ this is ugly i dont think any body can read :)

»
10 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

also give me a good reason why it shouldnt get tl :)

think the querries are all like this

l = 1 , r = n , k = n — 1

»
10 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

my solution passed 14 test cases and is getting timed out in test case #15. i think i have taken the constraints in consideration.