### 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?YesNoWhat 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;
}

 ::Login form.login input{margin:2px;font-size:10px;} your id: password: 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-11-22 04:50:01 Online Contester Team © 2002 - 2016. All rights reserved.