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 listSep 11, 2024 15:19Dmitrii KravchenkoDmitrii KravchenkoScore: 87,579Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 11, 2024 15:1987,311747,809,894503,778,000220,902,0002,383,872
2Sep 11, 2024 15:1987,579753,292,037507,237,000219,669,0002,465,792
3Sep 11, 2024 15:1988,173756,948,372504,884,000226,948,000368,640