12713 - Pearl Chains

All about problems in Volume 127. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

Post Reply
refazul.refat
New poster
Posts: 1
Joined: Sat Nov 15, 2014 12:48 am

Re: 12713 - Pearl Chains

Post by refazul.refat » Sat Nov 15, 2014 12:57 am

Any reasonable way to optimize the following equation ?

Code: Select all

sigma( C(A+B-i , A-i)*C(B, B-i)*X^(A-i)*Y^(B-i)*Z^(i) ) (0 <= i <= min(A, B))
Getting TLE since A or B can be very large.

Post Reply

Return to “Volume 127 (12700-12799)”