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 4, 2023 12:58AliAliScore: 309,225Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 4, 2023 12:58303,6362,591,654,9972,520,178,09702,228,224
2Aug 4, 2023 12:58303,6752,594,027,7252,520,504,58602,260,992
3Aug 4, 2023 12:58303,7162,590,053,3712,520,844,72502,248,704
4Aug 4, 2023 12:58309,2252,622,956,0442,566,565,56502,244,608
5Aug 4, 2023 12:58310,2292,634,291,2392,574,899,69302,252,800
6Aug 4, 2023 12:58310,6752,645,970,1902,578,605,80002,228,224