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 2, 2022 09:46Eugene ZhydzetskiEugene ZhydzetskiScore: 167,263Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 2, 2022 09:46167,2381,449,989,4261,388,076,33802,195,456
2Aug 2, 2022 09:46167,2631,448,227,6391,388,285,64002,195,456
3Aug 2, 2022 09:46167,2991,445,177,8361,388,580,18202,199,552