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 listSep 7, 2021 20:53Andrey TsvetkovAndrey TsvetkovScore: 33,681Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 7, 2021 20:5633,669358,730,126279,454,90202,240,512
2Sep 7, 2021 20:5333,678352,189,173279,525,99102,236,416
3Sep 7, 2021 20:5633,680352,799,809279,541,08802,224,128
4Sep 7, 2021 20:5333,681340,741,925279,552,28302,236,416
5Sep 7, 2021 20:5333,693356,139,674279,650,84002,244,608
6Sep 7, 2021 20:5633,704345,383,416279,744,52902,236,416