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 listOct 26, 2024 01:00haiwwkeshaiwwkesScore: 76,952Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 26, 2024 01:0076,935666,843,314559,616,00078,945,0002,277,376
2Oct 26, 2024 01:0076,952659,152,565562,736,00075,964,0002,404,352
3Oct 26, 2024 01:0077,058668,537,089566,628,00072,952,0002,277,376