Solutions are presented as using the least memory and the fastest execution time. It also takes the top
10 most recent solutions from each language. If you want to limit to a specific index, click the
"Solved" button and go to that problem.
ContestId |
Name |
Phase |
Frozen |
Duration (Seconds) |
Relative Time |
Start Time |
| 470
|
Surprise Language Round 7 |
FINISHED |
False |
7200 |
365869785 |
Sept. 13, 2014, 3:30 p.m. |
Problems
You are given an array of n integers. For each element output the sum of itself and the previous element. For the first element, output the sum of the first and the last elements of the array. The input consists of a single line of space-separated integers. The first number is n (2 ≤ n ≤ 50) -- the size of the array. The following n numbers are the elements of the array (1 ≤ ai ≤ 1000). Output the sums a1 + an, a2 + a1, ..., an + an - 1, separated with spaces. |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|
40987958 |
ReaLNero1 |
F |
July 30, 2018, 9:38 p.m. |
OK |
FALSE |
TESTS |
20 |
15 |
0 |
|
2300 |
|
21770051 |
samvel.safaryan.s |
F |
Oct. 25, 2016, 11:50 a.m. |
OK |
FALSE |
TESTS |
20 |
15 |
0 |
|
2300 |
|
19138263 |
DATASOURCE |
F |
July 15, 2016, 12:21 a.m. |
OK |
FALSE |
TESTS |
20 |
15 |
0 |
|
2300 |
|
18516735 |
TooNewbie |
F |
June 16, 2016, 9:20 a.m. |
OK |
FALSE |
TESTS |
20 |
15 |
0 |
|
2300 |
|
15721937 |
cugel |
F |
Feb. 1, 2016, 12:15 a.m. |
OK |
FALSE |
TESTS |
20 |
15 |
0 |
|
2300 |
|
13925930 |
130705009 |
F |
Oct. 29, 2015, 3:07 a.m. |
OK |
FALSE |
TESTS |
20 |
15 |
0 |
|
2300 |
|
11511099 |
rxdoi |
F |
June 9, 2015, 2:17 p.m. |
OK |
FALSE |
TESTS |
20 |
15 |
0 |
|
2300 |
|
10200048 |
xxxyyyzzz |
F |
March 8, 2015, 3:01 a.m. |
OK |
FALSE |
TESTS |
20 |
15 |
0 |
|
2300 |
|
10187357 |
Grevozin |
F |
March 7, 2015, 8:06 a.m. |
OK |
FALSE |
TESTS |
20 |
15 |
0 |
|
2300 |
|
9555294 |
dr.ikros |
F |
Jan. 26, 2015, 1:38 a.m. |
OK |
FALSE |
TESTS |
20 |
15 |
0 |
|
2300 |
remove filters
Back to search problems