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 31, 2022 17:01Jack FrigaardJack FrigaardScore: 5,164Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 31, 2022 17:015,10864,476,42739,367,0003,028,0002,260,992
2Dec 31, 2022 17:015,11163,754,80141,415,0001,010,0002,519,040
3Dec 31, 2022 17:015,11164,471,64439,395,0003,030,0002,457,600
4Dec 31, 2022 17:015,12465,447,22640,505,0002,025,0002,461,696
5Dec 31, 2022 17:015,13269,242,30441,579,0001,014,0002,260,992
6Dec 31, 2022 17:015,13570,437,41040,592,0002,029,0002,260,992
7Dec 31, 2022 17:015,13969,680,23640,621,0002,031,0002,260,992
8Dec 31, 2022 17:015,16474,398,33340,872,0001,993,0002,260,992
9Dec 31, 2022 17:015,16765,713,65439,894,0002,992,0002,449,408
10Dec 31, 2022 17:015,20068,827,05641,157,0002,007,0002,260,992
11Dec 31, 2022 17:015,20367,951,37841,179,0002,008,0002,260,992
12Dec 31, 2022 17:015,21865,411,11041,293,0002,014,0002,260,992
13Dec 31, 2022 17:015,341107,498,15344,328,71602,215,936
14Dec 31, 2022 17:015,356104,144,64744,454,89702,199,552
15Dec 31, 2022 17:015,378113,615,34844,640,81002,211,840