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

Wrong answer on test 7?
Author: mrsam
ID: 059448
Problem: 259
Contest: 0
Date: 2014-01-14 01:11:56

I'm sure my algorithm is right...

here is my code:

#include <iostream>

using namespace std;

int main()
{
int n, t[100+10], l[100+10], sum=0;

cin >> n;

for(int i = 0 ; i < n ; i++)
{
cin >> t[i];
sum += t[i];
}

int minimalL = 1001;

for(int i = 0 ; i < n ; i++)
{
cin >> l[i];
minimalL = (l[i] < minimalL)? l[i] : minimalL;
}

sum += minimalL;

cout << sum;

return 0;
}

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:54:42Online Contester Team © 2002 - 2016. All rights reserved.