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 listAug 20, 2023 03:21sliceteamsliceteamScore: 8,734Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 20, 2023 03:218,573148,437,31071,157,53102,244,608
2Aug 20, 2023 03:218,585141,157,17571,258,58302,273,280
3Aug 20, 2023 03:218,608135,988,80871,444,31002,265,088
4Aug 20, 2023 03:218,71796,182,15471,345,0001,004,0002,260,992
5Aug 20, 2023 03:218,72894,799,05971,436,0001,006,0002,506,752
6Aug 20, 2023 03:218,730103,193,46271,457,0001,006,0002,379,776
7Aug 20, 2023 03:218,731100,114,96472,466,00002,256,896
8Aug 20, 2023 03:218,734102,990,67171,487,0001,006,0002,256,896
9Aug 20, 2023 03:218,74498,840,57372,574,00002,260,992
10Aug 20, 2023 03:218,74699,621,85872,593,00002,260,992
11Aug 20, 2023 03:218,77899,084,02370,863,0001,996,0002,396,160
12Aug 20, 2023 03:218,783101,354,46070,903,0001,997,0002,260,992
13Aug 20, 2023 03:218,83796,099,47672,345,0001,004,0002,256,896
14Aug 20, 2023 03:218,84195,756,81972,375,0001,005,0002,519,040
15Aug 20, 2023 03:218,903100,944,96572,901,000998,0002,387,968