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 18:49Matt 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 19:5200000Error: expected "53682562954704043 ", got "53682562986023351 "
2Mar 5, 2024 18:5155,719529,621,209462,465,52502,293,760
3Mar 5, 2024 18:5155,835520,113,800463,430,74002,179,072
4Mar 5, 2024 18:4955,854539,031,148463,587,38402,191,360
5Mar 5, 2024 18:5155,885528,732,383463,841,53202,179,072
6Mar 5, 2024 18:4955,980529,618,987464,635,08402,187,264
7Mar 5, 2024 18:4956,361531,551,408467,798,13502,297,856