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 1726. Visits

Need help
Posted by Jasmin Rahimic 10 Apr 2011 16:35
Edited by author 10.04.2011 23:53

Edited by author 10.04.2011 23:54
Re: Need help
Posted by electroNik 10 Apr 2011 22:04
You need 64bit integer.
Also, brute force isn't gonna solve this problem.
Re: Need help
Posted by Jasmin Rahimic 11 Apr 2011 11:36
I can't understand what they mean by this.
1.sort(X[]).
2.add (X[i+1]-X[i])*i*(n-i).