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 10, 2024 08:48Matt StuchlikMatt StuchlikScore: 21,014Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 10, 2024 08:4819,903235,435,436165,194,50102,293,760
2Apr 10, 2024 08:4820,090249,519,934166,750,31402,297,856
3Apr 10, 2024 08:4820,112226,118,679166,932,45902,289,664
4Apr 10, 2024 08:4820,983195,850,362173,155,0001,000,0002,265,088
5Apr 10, 2024 08:4820,990200,316,226172,218,0002,002,0002,285,568
6Apr 10, 2024 08:4821,010198,297,333173,383,0001,002,0002,273,280
7Apr 10, 2024 08:4821,014195,890,548173,413,0001,002,0002,277,376
8Apr 10, 2024 08:4821,157201,318,519174,601,0001,003,0002,285,568
9Apr 10, 2024 08:4821,181199,508,426173,805,0001,997,0002,277,376
10Apr 10, 2024 08:4821,193201,231,127173,903,0001,998,0002,277,376
11Apr 10, 2024 08:4821,201197,755,755173,968,0001,999,0002,277,376
12Apr 10, 2024 08:4821,215197,427,239174,082,0002,000,0002,269,184