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 listMay 3, 2024 12:14Steve HanSteve HanScore: 51,907Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 3, 2024 12:1451,841497,681,352430,283,82802,301,952
2May 3, 2024 12:1451,866482,639,627430,486,08802,289,664
3May 3, 2024 12:1451,898521,230,609430,750,38502,289,664
4May 3, 2024 12:1451,907490,035,350430,827,20902,293,760
5May 3, 2024 12:1451,924495,697,007430,969,30702,289,664
6May 3, 2024 12:1451,948498,256,461431,171,88902,293,760