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 listApr 22, 2024 17:32Steve HanSteve HanScore: 427,581Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 22, 2024 17:32426,2493,610,108,2653,537,863,33202,260,992
2Apr 22, 2024 17:32427,5813,605,420,5803,548,918,54202,273,280
3Apr 22, 2024 17:32437,8893,699,749,7003,634,476,56002,265,088