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 listJan 17, 2023 17:45Kevin HeaveyKevin HeaveyScore: 48,164Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 17, 2023 18:1848,144452,195,683399,597,68202,236,416
2Jan 17, 2023 17:4548,149462,061,310399,637,00602,228,224
3Jan 17, 2023 18:1848,159462,455,331399,717,64802,260,992
4Jan 17, 2023 18:1848,164462,890,020399,757,15102,228,224
5Jan 17, 2023 17:4548,170468,977,411399,807,49402,224,128
6Jan 17, 2023 17:4548,183456,363,235399,917,53402,224,128