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

Common Board

!!!! MESSAGE FOR THE ADMINISTRATORS !!!!
Posted by Akbar Ali 25 Nov 2006 08:13
I think that all correct or mistake on variable???
//#1502
#include<iostream.h>

int main()
{
long long s=0;
long k,i,n;
cin>>n;

for(i=0;i<=n;i++)
s+=(i + n) * (n - i + 1) / 2 + i * (n - i + 1);
cout<<s;
return 0;
}

Edited by author 25.11.2006 08:14
Re: !!!! MESSAGE FOR THE ADMINISTRATORS !!!!
Posted by Anton [SUrSU] 25 Nov 2006 15:46
Compilation Error!

#include <iostream>
using namespace std;
...
Re: !!!! MESSAGE FOR THE ADMINISTRATORS !!!!
Posted by <>|>|/|<|>>|<<>|-| 25 Nov 2006 22:43
Thank you.
спасибо Антон.