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 listJan 25, 2025 14:50bendnbendnError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 25, 2025 14:5000000Error: Exit with code 101: 949077627 548403192 617772908 693586217 1769752601 1252535710 1999305978 2010555193 1566949374 106089697 782789466 1030114689 1926123788 1517483534 887296300 1633148489 1414067397 1522094736 2098710734 257306112 169965689 151...stderr