ENG
RUS
Timus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board
Discussion of Problem
1573
. Alchemy
hint
Posted by
amirani
17 Jan 2012 15:35
Very easy just write c(b,b1)*c(r,r1)*c(y,y1). Where b1 ,r1,y1 is the number of red, blue,yellow colors. note function c isn't in library you should write it .
For more about C read here
http://en.wikipedia.org/wiki/Binomial_coefficient
© 2000–2024
Timus Online Judge Team
. All rights reserved.