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 listDec 18, 2021 00:23Alexander KimAlexander KimScore: 131,487Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 18, 2021 00:23131,4571,164,967,9971,091,089,70702,179,072
2Dec 18, 2021 00:23131,4871,148,454,5441,091,342,14202,183,168
3Dec 18, 2021 00:23131,5771,152,022,8021,092,093,07502,306,048