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 9, 2023 11:51Mikhail SolovevMikhail SolovevScore: 245,181Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 9, 2023 11:47244,7542,101,958,8902,031,459,76402,211,840
2Aug 9, 2023 11:47244,8682,104,680,4432,032,408,54802,215,936
3Aug 9, 2023 11:47245,0322,089,855,5512,033,765,90502,220,032
4Aug 9, 2023 11:51245,1812,090,437,6612,035,002,89502,228,224
5Aug 9, 2023 11:51245,1992,115,177,1542,035,154,88302,220,032
6Aug 9, 2023 11:51246,3972,112,761,1322,045,096,47802,215,936