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 listMay 27, 2024 13:58GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 29, 2024 17:3300000Error: expected "53683431766789176 ", got "53683431766723640 "
2May 29, 2024 17:3300000Error: expected "53682826899839183 ", got "53682826893285583 "
3May 29, 2024 17:3300000Error: expected "53686363080700781 ", got "53686362425340781 "
4May 27, 2024 13:5900000Error: expected "53684377168465291 ", got "53684377161911691 "
5May 27, 2024 13:5800000Error: expected "53687740036367356 ", got "53687740036301820 "
6May 27, 2024 13:5800000Error: expected "53687488497882970 ", got "53687487835969370 "
7May 29, 2024 17:336,159134,155,21551,122,72502,281,472
8May 29, 2024 17:336,159120,611,60351,120,60802,277,376
9May 27, 2024 13:596,162121,727,53951,141,16802,277,376
10May 27, 2024 13:596,164113,513,15951,161,29502,281,472
11May 29, 2024 17:276,164126,659,39151,165,23302,269,184
12May 29, 2024 17:336,166108,950,78951,181,13202,281,472
13May 29, 2024 17:346,166114,876,45951,181,93802,281,472
14May 29, 2024 17:276,166125,069,83851,176,29902,269,184
15May 29, 2024 17:346,168134,322,84551,193,75502,269,184
16May 29, 2024 17:336,172123,575,18351,229,47902,240,512
17May 29, 2024 17:276,173133,534,21051,236,23402,277,376
18May 29, 2024 17:346,184121,278,78751,326,07202,281,472
19May 27, 2024 13:596,187117,273,58451,349,28202,277,376
20May 29, 2024 17:336,353117,209,09452,729,16102,269,184
21May 29, 2024 17:336,360115,329,77252,787,47402,265,088