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 21, 2023 16:24Kevin HeaveyKevin HeaveyScore: 49,416Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 21, 2023 16:2449,394468,774,138409,970,85202,224,128
2Jan 21, 2023 16:2549,403484,771,596410,042,47402,224,128
3Jan 21, 2023 16:2549,408476,865,668410,089,72402,236,416
4Jan 21, 2023 16:2449,416464,937,809410,152,89902,240,512
5Jan 21, 2023 16:2549,432468,238,140410,288,76102,228,224
6Jan 21, 2023 16:2449,437467,884,654410,325,26602,232,320