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 listApr 15, 2024 07:32Matt StuchlikMatt StuchlikScore: 17,944Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 15, 2024 07:3017,533172,573,431145,521,00002,506,752
2Apr 15, 2024 07:3117,657175,026,981145,547,0001,003,0002,342,912
3Apr 15, 2024 07:3017,750172,967,193145,319,0002,004,0002,330,624
4Apr 15, 2024 07:3117,802179,257,789146,762,000998,0002,506,752
5Apr 15, 2024 07:3017,808177,058,814146,812,000998,0002,330,624
6Apr 15, 2024 07:3017,816175,335,596145,877,0001,998,0002,338,816
7Apr 15, 2024 07:3217,820173,924,302145,909,0001,998,0002,506,752
8Apr 15, 2024 07:3217,849177,506,292146,145,0002,001,0002,506,752
9Apr 15, 2024 07:3017,854171,469,946146,189,0002,002,0002,330,624
10Apr 15, 2024 07:3117,869175,429,666147,308,0001,002,0002,342,912
11Apr 15, 2024 07:3117,875181,246,580147,361,0001,002,0002,342,912
12Apr 15, 2024 07:3017,879173,117,223147,392,0001,002,0002,330,624
13Apr 15, 2024 07:3217,895175,605,946147,528,0001,003,0002,506,752
14Apr 15, 2024 07:3117,897169,201,475148,541,00002,342,912
15Apr 15, 2024 07:3017,902172,667,151147,580,0001,003,0002,330,624
16Apr 15, 2024 07:3017,924173,669,702147,771,000998,0002,506,752
17Apr 15, 2024 07:3217,927174,505,312146,800,0001,997,0002,330,624
18Apr 15, 2024 07:3217,933175,288,355147,847,000998,0002,502,656
19Apr 15, 2024 07:3117,944177,433,962146,938,0001,999,0002,506,752
20Apr 15, 2024 07:3117,951173,723,085148,002,000993,0002,498,560
21Apr 15, 2024 07:3217,954175,421,487147,020,0002,000,0002,514,944
22Apr 15, 2024 07:3117,996173,996,981148,365,0001,002,0002,330,624
23Apr 15, 2024 07:3218,009180,299,540148,468,0001,003,0002,514,944
24Apr 15, 2024 07:3118,011174,550,873148,487,0001,003,0002,342,912
25Apr 15, 2024 07:3018,019183,262,348148,553,0001,003,0002,330,624
26Apr 15, 2024 07:3218,042174,367,713147,750,0001,996,0002,338,816
27Apr 15, 2024 07:3218,091174,748,835148,150,0002,002,0002,330,624
28Apr 15, 2024 07:3119,088215,084,880158,428,84502,211,840
29Apr 15, 2024 07:3119,133213,061,212158,801,17602,211,840
30Apr 15, 2024 07:3219,177215,687,212159,168,95702,220,032
31Apr 15, 2024 07:3019,385228,806,346160,894,46702,211,840
32Apr 15, 2024 07:3019,402242,912,106161,038,68802,220,032
33Apr 15, 2024 07:3119,424244,185,498161,220,17602,211,840
34Apr 15, 2024 07:3219,432218,088,844161,287,86402,215,936
35Apr 15, 2024 07:3219,434237,946,825161,305,23802,224,128
36Apr 15, 2024 07:3019,491218,223,090161,775,50402,215,936