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 29, 2024 18:37Steve HanSteve HanScore: 17,745Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2024 18:3717,712217,262,067147,011,29402,248,704
2Apr 29, 2024 18:3717,714216,363,090147,024,72502,248,704
3Apr 29, 2024 18:3717,721221,251,061147,080,76802,244,608
4Apr 29, 2024 18:3717,745219,712,222147,281,65102,244,608
5Apr 29, 2024 18:3717,773209,188,377147,513,19302,240,512
6Apr 29, 2024 18:3717,798208,611,609147,723,54802,240,512