2017-02-17 06:27:24 +00:00
|
|
|
For this problem you will utilise the programming interface, which you can access via the navigation bar at the top of your screen.
|
|
|
|
|
|
|
|
The input for your program will be given via STDIN - that's `cin`, `input()`, and `System.in` for cxx, Python, and Java respectively.
|
|
|
|
Output goes to STDOUT - `cout`, `print`, and `System.out`. Your program will be run on several sets of input, and if your output matches
|
|
|
|
ours for each testcase, this problem will be marked solved.
|
|
|
|
|
|
|
|
We'll start with a simple challenge. Each testcase has two lines of input. The first will contain an integer `N`. The second will contain a
|
2017-03-14 05:15:04 +00:00
|
|
|
sequence of integers `a_1, a_2, ..., a_N`. You are to output the sum of that sequence - that is, `a_1 + a_2 + ... + a_n`. Good luck!
|
2017-02-17 06:27:24 +00:00
|
|
|
|
|
|
|
#### Input Constraints
|
|
|
|
|
|
|
|
`0 < N < 100`
|
|
|
|
|
|
|
|
`-1000 < a_i < 1000`
|
|
|
|
|
|
|
|
#### Sample Input
|
|
|
|
|
2017-03-14 02:32:54 +00:00
|
|
|
```
|
|
|
|
5
|
2017-03-14 05:15:04 +00:00
|
|
|
2 4 7 3 1
|
2017-02-17 06:27:24 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Sample Output
|
|
|
|
|
2017-03-14 02:32:54 +00:00
|
|
|
```
|
2017-03-14 05:15:04 +00:00
|
|
|
17```
|