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 1402. Cocktails

This is a stupid question...!!!
Posted by Imran Yusubov 13 Aug 2009 10:54
Dose anyone know a better solution?I used big Ints for this task.Do anyone has a mathematic solution?
Re: This is a stupid question...!!!
Posted by DNS 27 Jul 2010 03:13
I have mathematic solution.

a[i]=i*a[i-1]+i*(i-1); - it's true