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 30, 2022 15:22Jack FrigaardJack FrigaardScore: 5,383Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 30, 2022 15:225,30972,975,82641,061,0003,004,0002,297,856
2Dec 30, 2022 15:225,31268,132,02540,083,0004,008,0002,277,376
3Dec 30, 2022 15:225,31667,011,81843,122,0001,002,0002,281,472
4Dec 30, 2022 15:225,32770,609,11141,199,0003,014,0002,523,136
5Dec 30, 2022 15:225,32867,630,44141,209,0003,015,0002,281,472
6Dec 30, 2022 15:225,33367,007,37142,251,0002,011,0002,281,472
7Dec 30, 2022 15:225,36366,716,85042,492,0002,023,0002,281,472
8Dec 30, 2022 15:225,38378,185,33742,652,0002,031,0002,289,664
9Dec 30, 2022 15:225,40273,171,98140,848,0003,985,0002,281,472
10Dec 30, 2022 15:225,45372,384,93743,250,0002,011,0002,289,664
11Dec 30, 2022 15:225,45872,477,45343,291,0002,013,0002,510,848
12Dec 30, 2022 15:225,478115,760,09445,463,89402,306,048
13Dec 30, 2022 15:225,48073,225,02944,476,0001,010,0002,273,280
14Dec 30, 2022 15:225,487116,268,89245,540,75202,183,168
15Dec 30, 2022 15:225,494108,958,68545,602,22602,306,048