Parse integers Sergey Svistunov

Compute the sum of integers read from STDIN as fast as possible.

Input: 50 000 000 lines, each containing one integer in the range [0; 2147483647].

629871117
2024562523
1372689083
1021777120
2111176472

Output: The uint64 sum of all numbers, printed as a decimal string.

Note: Integer overflow is expected – use a 64-bit accumulator.

Back to listAug 10, 2023 22:21temporary-enlightenmenttemporary-enlightenmentError
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 10, 2023 22:2100000Error: expected "53681603220845112 ", got "8 1764954951 1520284712 762785762 1573656078 1035304507 593111719 1938146869 2028962 1280751099 617887541 1271753948 689524631 1007940165 1851426196 1530990586 457850753 256657787 1812771735 1745793856 8064738...