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 13:20MaratMaratScore: 313,264Success
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 13:57311,7322,641,696,2552,587,377,69102,273,280
2Aug 9, 2021 13:57312,1192,657,211,4802,590,584,10602,207,744
3Aug 9, 2021 13:20312,9842,667,467,8232,597,771,05002,203,648
4Aug 9, 2021 13:57313,2642,651,105,0092,600,094,07602,199,552
5Aug 9, 2021 13:20313,5372,661,175,2642,602,358,82002,191,360
6Aug 9, 2021 13:20316,7572,681,091,0722,629,086,79802,211,840