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 listMay 27, 2024 13:56GraceGraceScore: 6,330Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 27, 2024 13:566,22583,192,90051,666,00002,387,968
2May 27, 2024 13:566,23077,783,20350,715,000994,0002,260,992
3May 27, 2024 13:566,24380,277,32149,822,0001,992,0002,523,136
4May 27, 2024 13:566,24577,544,56150,835,000996,0002,260,992
5May 27, 2024 13:566,32176,983,10051,458,0001,008,0002,396,160
6May 27, 2024 13:566,32275,715,35951,464,0001,009,0002,383,872
7May 27, 2024 13:566,32974,248,51952,528,00002,260,992
8May 27, 2024 13:566,33074,674,46352,541,00002,387,968
9May 27, 2024 13:566,33378,654,04451,551,0001,010,0002,260,992
10May 27, 2024 13:566,449113,617,08153,528,92302,269,184
11May 27, 2024 13:566,458111,342,07953,599,17102,273,280
12May 27, 2024 13:566,459124,359,64453,605,87902,277,376
13May 27, 2024 13:566,463115,872,23153,645,44202,269,184
14May 27, 2024 13:566,466110,019,92253,664,54802,265,088
15May 27, 2024 13:566,478129,924,56153,769,91802,260,992