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 29, 2024 19:55Joad NacerJoad NacerScore: 7,871Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2024 22:347,582132,349,10862,931,88402,265,088
2Apr 29, 2024 22:347,602122,970,77363,100,24102,269,184
3Apr 29, 2024 22:347,665146,214,75763,616,18402,404,352
4Apr 29, 2024 19:557,679126,449,88063,737,60702,285,568
5Apr 29, 2024 19:557,795127,368,45964,696,93602,240,512
6Apr 29, 2024 19:557,803122,498,57464,764,17502,256,896
7Apr 29, 2024 22:347,85589,342,74063,194,0002,006,0002,285,568
8Apr 29, 2024 19:557,86292,945,49463,248,0002,007,0002,285,568
9Apr 29, 2024 22:347,86596,649,34963,270,0002,008,0002,285,568
10Apr 29, 2024 22:347,86591,219,23063,274,0002,008,0002,285,568
11Apr 29, 2024 22:347,86993,065,86163,306,0002,009,0002,285,568
12Apr 29, 2024 19:557,87089,130,20063,308,0002,009,0002,285,568
13Apr 29, 2024 22:347,87190,362,17963,318,0002,010,0002,285,568
14Apr 29, 2024 19:557,87187,628,42563,318,0002,010,0002,285,568
15Apr 29, 2024 22:347,87192,796,31663,323,0002,010,0002,519,040
16Apr 29, 2024 22:347,87292,634,78863,325,0002,010,0002,285,568
17Apr 29, 2024 19:557,87787,529,45764,373,0001,005,0002,527,232
18Apr 29, 2024 19:557,88091,279,39665,402,00002,285,568
19Apr 29, 2024 19:557,88588,422,25964,443,0001,006,0002,285,568
20Apr 29, 2024 19:557,89896,615,83765,550,00002,285,568
21Apr 29, 2024 22:347,90188,352,49365,579,00002,531,328
22Apr 29, 2024 22:347,95988,785,82265,061,0001,000,0002,285,568
23Apr 29, 2024 19:558,33396,734,90067,164,0002,004,0002,285,568
24Apr 29, 2024 19:558,43694,588,22869,015,0001,000,0002,277,376
25Apr 29, 2024 19:558,805101,016,83671,078,0002,002,0002,285,568
26Apr 29, 2024 19:558,831100,989,58771,291,0002,008,0002,285,568
27Apr 29, 2024 19:558,938102,191,81273,183,0001,002,0002,285,568