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 15, 2023 14:08matsuoka-601matsuoka-601Score: 7,054Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 15, 2023 14:096,77979,969,33454,254,0002,009,0002,400,256
2Dec 15, 2023 14:096,79385,706,86355,380,0001,006,0002,523,136
3Dec 15, 2023 14:096,79381,563,88655,373,0001,006,0002,396,160
4Dec 15, 2023 14:096,82388,548,81755,619,0001,011,0002,404,352
5Dec 15, 2023 14:096,86380,356,14754,961,0001,998,0002,260,992
6Dec 15, 2023 14:096,93480,978,42357,552,00002,260,992
7Dec 15, 2023 14:097,00479,636,65856,131,0002,004,0002,400,256
8Dec 15, 2023 14:087,047113,352,71658,489,53402,281,472
9Dec 15, 2023 14:087,054119,909,27858,550,69302,285,568
10Dec 15, 2023 14:097,054110,155,58858,549,40602,269,184
11Dec 15, 2023 14:097,06690,500,91257,637,0001,011,0002,260,992
12Dec 15, 2023 14:087,077134,047,33358,742,12902,289,664
13Dec 15, 2023 14:097,183125,104,34959,616,41302,277,376
14Dec 15, 2023 14:097,190116,787,71259,677,92902,289,664
15Dec 15, 2023 14:097,20885,370,96458,828,000997,0002,404,352
16Dec 15, 2023 14:097,215119,232,76259,881,94602,281,472
17Dec 15, 2023 14:097,309126,442,68460,660,81502,289,664
18Dec 15, 2023 14:097,544137,908,84062,619,03502,281,472