Saratov State University :: Online Contester


::Go
- home
- news
- register
- update personal info
- problemset archive
- submit
- status online
- standing
- contests
- virtual contests
- forum
- statistic
- FAQ
- links
- projects

::Poll
Are you registered on Codeforces?
Yes
No
What is it???

[results]

::webboard

135 wromg answer
Author: Rmynz
ID: 053557
Problem: 135
Contest: 0
Date: 2012-08-15 13:07:50

hello i have problem for wrong answer on test 135(zones on the paper)
this is my program

#include <iostream>
using namespace std;
int a[65556];
//a[n]=a[n-1]+n
int main()
{

int n;
int i=0;
cin>>n;
a[0]=1;
for (i=0;i<=n+10;i++)
a[i]=a[i-1]+i;
cout<<a[n]+1;

}
i think it is easy but i have pronlem on wrong answer!
what is problem??

see sub-tree reply to that message


::Login
Forgot password?

::News
22.10.12 - The problems from the Southern Subregional Programming Contest 2012 added to the problemset archive (542 - 553).
22.10.12 - After the start of the contest the statements in PDF will be available by the link.
23.10.11 - The problems from the Southern Subregional Programming Contest 2011 added to the problemset archive (530 - 541).

::Counter

Server time: 2017-09-22 20:52:58Online Contester Team © 2002 - 2016. All rights reserved.