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 27, 2023 07:30parsersmailparsersmailScore: 245,153Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 27, 2023 07:30244,9022,089,576,6182,032,686,12502,224,128
2Jul 27, 2023 07:30245,0812,098,518,6932,034,170,01302,211,840
3Jul 27, 2023 07:30245,1182,106,001,5202,034,479,35202,215,936
4Jul 27, 2023 07:30245,1532,106,180,4102,034,770,77802,220,032
5Jul 27, 2023 07:30245,1882,096,853,8922,035,057,30002,215,936
6Jul 27, 2023 07:30245,4452,088,314,6812,037,195,08702,220,032