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, 2024 21:31Yuriy LyfenkoYuriy LyfenkoError
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, 2024 21:3100000Error: expected "53680176944653577 ", got "53680125744653577 "stderr
2Aug 31, 2024 21:316,89780,437,26855,233,0002,008,0002,379,776
3Aug 31, 2024 21:317,05789,081,03753,524,0005,049,0002,461,696
4Aug 31, 2024 21:317,10383,486,61455,958,0002,997,0002,326,528