easyctf-2017/things-add-up/description.md
2017-02-17 01:44:44 -05:00

24 lines
860 B
Markdown

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
series of integers `a_1, a_2, ..., a_N`. You are to output the sum of that series - that is, `a_1 + a_2 + ... + a_n`. Good luck!
#### Input Constraints
`0 < N < 100`
`-1000 < a_i < 1000`
#### Sample Input
```5
1 2 3 4 5
```
#### Sample Output
`15`