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 listJul 20, 2022 16:23Robert BurkeRobert BurkeScore: 8,448Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 20, 2022 16:238,42391,485,23768,913,000998,0002,277,376
2Jul 20, 2022 16:238,42991,537,90768,958,000999,0002,416,640
3Jul 20, 2022 16:238,43694,681,97169,022,0001,000,0002,519,040
4Jul 20, 2022 16:238,44590,609,86669,095,0001,001,0002,539,520
5Jul 20, 2022 16:238,44597,211,85169,091,0001,001,0002,437,120
6Jul 20, 2022 16:238,44595,774,82368,092,0002,002,0002,277,376
7Jul 20, 2022 16:238,44791,302,86368,107,0002,003,0002,433,024
8Jul 20, 2022 16:238,44892,342,54468,113,0002,003,0002,428,928
9Jul 20, 2022 16:238,45297,735,17769,148,0001,002,0002,277,376
10Jul 20, 2022 16:238,45497,410,29469,170,0001,002,0002,273,280
11Jul 20, 2022 16:238,45991,261,66969,208,0001,003,0002,277,376
12Jul 20, 2022 16:238,48496,081,25469,412,0001,005,0002,424,832
13Jul 20, 2022 16:239,794133,463,73081,292,74102,170,880
14Jul 20, 2022 16:239,813133,030,83481,443,95302,179,072
15Jul 20, 2022 16:239,851134,312,58481,765,10802,297,856