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, 2021 14:06MaratMaratScore: 315,567Success
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, 2021 14:23311,2822,649,366,4592,583,641,34502,269,184
2Aug 9, 2021 14:06311,5262,637,733,7892,585,664,43002,207,744
3Aug 9, 2021 14:23312,0302,649,545,0892,589,851,39702,195,456
4Aug 9, 2021 14:06315,5672,685,442,0482,619,206,44502,215,936
5Aug 9, 2021 14:06317,8652,706,046,0212,638,281,54402,273,280
6Aug 9, 2021 14:23324,1402,744,698,0422,690,364,54402,191,360