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 11, 2024 23:51richu shaji abrahamrichu shaji abrahamScore: 162,714Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 11, 2024 23:44162,5351,404,028,0551,349,042,89502,297,856
2May 11, 2024 23:44162,5361,421,545,2791,349,052,61602,179,072
3May 11, 2024 23:51162,5401,415,554,1091,349,083,47802,183,168
4May 11, 2024 23:51162,7141,412,338,2491,350,527,64502,183,168
5May 11, 2024 23:51162,9071,421,018,1041,352,130,12902,301,952
6May 11, 2024 23:44163,0411,417,636,4241,353,242,74302,297,856