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 listMar 5, 2024 11:50Matt StuchlikMatt StuchlikError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 5, 2024 11:4700000Error: Killed by timeout
2Mar 5, 2024 11:4800000Error: Killed by timeout
3Mar 5, 2024 11:4900000Error: expected "53684290830571264 ", got "53684290013693909 "
4Mar 5, 2024 11:5000000Error: expected "53687093844878336 ", got "53687094424940336 "
5Mar 5, 2024 11:4667,986636,737,111564,286,31902,191,360
6Mar 5, 2024 11:5067,998625,812,009564,386,27302,179,072
7Mar 5, 2024 11:4668,227623,292,916566,280,28302,301,952
8Mar 5, 2024 11:4668,298622,796,882566,872,73102,174,976
9Mar 5, 2024 11:5068,315629,167,046567,017,42202,179,072
10Mar 5, 2024 11:5068,726631,196,546570,422,84602,179,072