Sample Programming Challenge

Collapse Content

Get used to the format with a simple sample challenge!

You need to process input from the Standard Input (STDIN) and print your solution to the Standard Output (STDOUT). You are provided with boilerplate code which processes the input and passes it to the method doStuff.

In the contest challenges, you can run the code on "Test input" and see the results, but you need to run the code on "Contest Input" to pass the challenge.

For each list of numbers given as input, output the sum of the list.

The first line will contain T, the number of test cases. Each test case contains 2 lines:
N - the number of elements in a list.
N numbers follow.

Output the sum of each list of integers on its own line.


Given a list of numbers as input, output their sum.

Please sign in or sign up to submit answers.

Alternatively, you can try out Learneroo before signing up.

Contact Us
Sign in or email us at [email protected]