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

×

Small doubt in topcoder problem

I am trying to solve this problem on Tocoder.In the problem they are given three colors red,green,black and the question is to find the postion with the best winning probability.
My doubt is that in order to find the best postion we need to check every configuration,Suppose if r=2,g=2,b=2 then there are (2+2+2)!/2!2!2! permutations.But in editorial they are using just three loops. Any help will be highly appreciated.

asked 29 Dec '15, 18:33

pallesai's gravatar image

4★pallesai
176830
accept rate: 17%

edited 29 Dec '15, 18:49

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

question asked: 29 Dec '15, 18:33

question was seen: 544 times

last updated: 29 Dec '15, 18:49