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

×

Help regarding CSEQ [April Challenge]?

I was not able to solve this problem during contest, but this is my CSEQ code -> http://ideone.com/iaqmIp

codechef solution link -> http://www.codechef.com/viewsolution/6781060

I cant figure out why there is error in program.

Can anyone please help me, as, this is not getting accepted now ?

Thanks.

asked 16 Apr '15, 17:39

glow's gravatar image

3★glow
6312
accept rate: 0%

edited 16 Apr '15, 17:40


you are calculating wrong Combinatorial(n,r) you had to calculate combinatorial( (r-l+1),(n+ r-l+1))-1.

link

answered 16 Apr '15, 19:24

ayush_awasthi's gravatar image

4★ayush_awasthi
16113
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,738
×35

question asked: 16 Apr '15, 17:39

question was seen: 860 times

last updated: 16 Apr '15, 19:24