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 31, 2023 05:04matsuoka-601matsuoka-601Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 31, 2023 05:0400000Error: expected "53682542400971526 ", got "53682516800971526 "stderr
2Aug 31, 2023 05:0600000Error: No answer to stdout. Died or killed?stderr
3Aug 31, 2023 05:047,362126,205,43061,103,45902,187,264
4Aug 31, 2023 05:047,377116,700,71261,230,54802,187,264
5Aug 31, 2023 05:047,414115,354,63961,539,48102,301,952