Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 673 Bytes

README.adoc

File metadata and controls

30 lines (17 loc) · 673 Bytes

Integer Summation

Challenge

Calculate the sum of a series of non-negative integers specified on the command line and print the result to stdout.

Dataset

Input

The list of integers are supplied to main as commandline arguments (argc/argv).

The integers are never negative.

The integers may be of arbitrary length.

The integers may be of arbitrary quantity.

Output

The script summation.py tests an executable against a selection of pseudo-random inputs and their expected outputs (with a constant seed).

To test an executable you can execute:

summation.py a.out
Warning
The script is `minimally' tested. YMMV.