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 19, 2023 16:06Ignas BagdonasIgnas BagdonasScore: 32,281Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 19, 2023 16:0632,132339,157,328266,695,38202,277,376
2Aug 19, 2023 16:0332,211341,913,973267,349,87302,187,264
3Aug 19, 2023 16:0332,262330,844,684267,774,24002,289,664
4Aug 19, 2023 16:0632,281329,061,350267,928,29102,293,760
5Aug 19, 2023 16:0632,347335,380,947268,476,45902,289,664
6Aug 19, 2023 16:0332,368329,275,721268,657,36102,281,472