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 6, 2021 11:17Andrey VydrinAndrey VydrinScore: 458,593Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 6, 2021 11:17455,7893,848,729,9853,783,049,96102,195,456
2Aug 6, 2021 11:17458,5933,866,765,9883,806,325,89702,195,456
3Aug 6, 2021 11:17460,1193,890,750,5033,818,984,70902,301,952