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 15:56Ignas BagdonasIgnas BagdonasScore: 33,294Success
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 15:5433,278333,371,323276,208,36502,289,664
2Aug 19, 2023 15:5433,287344,068,251276,283,03202,289,664
3Aug 19, 2023 15:5633,290347,570,309276,310,54902,273,280
4Aug 19, 2023 15:5633,294333,495,961276,340,18302,277,376
5Aug 19, 2023 15:5633,298338,047,922276,369,98402,293,760
6Aug 19, 2023 15:5433,304331,652,432276,420,68602,293,760