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 listMay 29, 2024 15:23GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 29, 2024 15:2300000Error: expected "53687046223133373 ", got "53687067450226031 "
2May 29, 2024 15:2400000Error: expected "53691359313963598 ", got "53691366148595141 "
3May 29, 2024 15:247,090125,437,63258,849,35102,203,648
4May 29, 2024 15:247,170140,730,58659,507,09902,207,744
5May 29, 2024 15:247,203126,128,01359,783,28302,187,264