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 12:50Hal FHal FScore: 8,333Success
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 12:508,16796,963,13665,796,0001,993,0002,502,656
2Dec 30, 2022 12:508,17590,866,03265,825,0002,025,0002,277,376
3Dec 30, 2022 12:508,21395,221,02964,159,0004,009,0002,285,568
4Dec 30, 2022 12:508,21390,293,52364,156,0004,009,0002,273,280
5Dec 30, 2022 12:508,22292,252,45464,225,0004,014,0002,273,280
6Dec 30, 2022 12:508,25493,288,88264,480,0004,030,0002,277,376
7Dec 30, 2022 12:508,29398,534,03964,841,0003,990,0002,265,088
8Dec 30, 2022 12:508,33399,557,66365,154,0004,009,0002,408,448
9Dec 30, 2022 12:508,34292,827,10664,222,0005,017,0002,478,080
10Dec 30, 2022 12:508,36290,431,47067,392,0002,011,0002,326,528
11Dec 30, 2022 12:508,510137,035,11570,632,52002,220,032
12Dec 30, 2022 12:508,616134,446,23371,509,91602,277,376
13Dec 30, 2022 12:508,727128,821,99572,437,80802,228,224
14Dec 30, 2022 12:509,658107,634,03377,155,0003,006,0002,498,560
15Dec 30, 2022 12:5013,197139,410,728105,516,0004,019,0002,273,280