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, 2023 10:59igorfardocigorfardocError
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, 2023 10:5900000Error: expected "53685284195411496 ", got "1234 "
2Aug 9, 2023 11:0100000Error: expected "53682703742768723 ", got "1234 "
3Aug 9, 2023 11:0500000Error: expected "53682411332793936 ", got "1234 "
4Aug 9, 2023 11:0500000Error: expected "53691562488845366 ", got "1234 "
5Aug 9, 2023 16:0400000Error: expected "53690438132513400 ", got "1234 "