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 listDec 8, 2023 13:12matsuoka-601matsuoka-601Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 8, 2023 13:1200000Error: expected "53691954050863078 ", got "53691928450863078 "stderr
2Dec 8, 2023 13:1200000Error: expected "53690040795904278 ", got "53690040795648278 "stderr
3Dec 8, 2023 13:147,650135,609,68863,493,79402,244,608
4Dec 8, 2023 13:147,660134,445,74163,577,92702,240,512
5Dec 8, 2023 13:147,675125,997,40063,701,00502,236,416
6Dec 8, 2023 13:127,690118,552,49863,824,79502,244,608
7Dec 8, 2023 13:147,695135,971,29763,866,90202,240,512
8Dec 8, 2023 13:147,739123,668,02564,232,77702,240,512
9Dec 8, 2023 13:147,764135,062,16964,441,38002,232,320
10Dec 8, 2023 13:127,867128,553,01965,295,83002,232,320
11Dec 8, 2023 13:127,905116,891,70465,609,46802,236,416