ENG  RUSTimus 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 1114. Boxes

to those who use C++ and don't like long ariphmetics
Posted by jedimastex 28 Jun 2004 19:56
use formula (n+a)!/(a!n!)*(n+b)!/(b!n!)
all the variables should have type 'unsigned __int64'
Re: to those who use C++ and don't like long ariphmetics
Posted by Armen Tsirunyan 2 Dec 2008 02:04
Dear jedumastex!
It's really great that you have written the formula on a blyudechko with a light-blue koyomochka, but could you please be so kind as to PROVE(or at lest explain) why on earth does the formula work? Thanks in advance. My email is LordN3mrod@gmail.com