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 1057. Amount of Degrees

WA, please help
Posted by Danica Porobic 16 Jun 2004 22:15
I've tried to use Lalescu Liviu's method described on the webboard, but my implementation has some minor bug I can't find. Can someone please help me by sending me ac program in pascal? In return, I can send some of my ac-ed programs...
Re: WA, please help
Posted by SkorKNURE 21 Apr 2008 23:06
I had same problem. Maybe, you should pay attention to binomial coeficients' computation method (check long integers for overflow).
Re: WA, please help
Posted by Daniel Mahu 15 Sep 2016 00:44
I also had this problem with the binomial coefficients, because I was using the formula with factorials and long long.

It shows up under this test:
1 2000000000 15 2
answer:
286658146