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 listOct 11, 2024 16:34Joad NacerJoad NacerScore: 9,109Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2024 16:348,888101,181,98171,781,0001,993,0002,351,104
2Oct 11, 2024 16:348,90295,651,96371,887,0001,996,0002,301,952
3Oct 11, 2024 16:348,91793,981,79771,010,0003,000,0002,383,872
4Oct 11, 2024 16:349,109101,886,78974,598,0001,008,0002,351,104
5Oct 11, 2024 16:349,112102,714,24275,628,00002,396,160
6Oct 11, 2024 16:349,113105,353,86574,628,0001,008,0002,351,104