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


(HARD TO DETECT)What's wrong in my TEAMMATE submission?

Link of codechef submission :

Link if you directly want to fork in online compiler :

Please explain where are the things going wrong.

asked 19 Oct '18, 17:29

geek0's gravatar image

accept rate: 0%

edited 19 Oct '18, 17:52

I think the problem is with how you're counting groups of 2, specifically the way you're calculating 2^n. It's not very clear. If you explained what you calculated a little better, it would help.

We want to calculate $\frac{(2n)!}{2^n n!}$

Here is my code. It might be helpful to you.


answered 19 Oct '18, 21:30

mathprogrammer's gravatar image

accept rate: 5%

I think the problem is with something else, see this groups of tow works fine...

(20 Oct '18, 13:20) geek01★
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 19 Oct '18, 17:29

question was seen: 292 times

last updated: 20 Oct '18, 13:20