×

# Small doubt in topcoder problem

 0 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 4★pallesai 176●8●30 accept rate: 17%
 toggle preview community wiki:
Preview

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• 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