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 listJul 27, 2024 16:33Liam BuchananLiam BuchananScore: 1,653,556Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 27, 2024 16:331,646,26113,742,921,91713,663,967,58002,256,896
2Jul 27, 2024 16:331,653,55613,880,914,05913,724,512,81102,260,992
3Jul 27, 2024 16:331,670,41213,925,506,26513,864,419,75702,256,896