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 28, 2024 02:26Matt 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
1May 28, 2024 02:2800000Error: Exit with code 1: Segmentation fault at address: 335609984stderr
2May 28, 2024 02:4100000Error: expected "53685712983442665 ", got "53685779206877344 "
3May 28, 2024 02:4000000Error: expected "53691229322333523 ", got "53691261770681492 "
4May 28, 2024 02:3900000Error: expected "53691857155060741 ", got "53691871018606500 "
5May 28, 2024 02:3800000Error: expected "53689645017223968 ", got "53689680339294635 "
6May 28, 2024 02:3600000Error: expected "53689237771712994 ", got "53689243382834332 "
7May 28, 2024 02:3500000Error: expected "53684778388605181 ", got "53684817795832616 "
8May 28, 2024 02:3400000Error: expected "53684180929213601 ", got "53684243475650531 "
9May 28, 2024 02:3300000Error: expected "53679506784099187 ", got "53679524782793411 "
10May 28, 2024 02:3200000Error: Exit with code 1: Segmentation fault at address: 302022672stderr
11May 28, 2024 02:3100000Error: expected "53691873172873353 ", got "53691899013164883 "
12May 28, 2024 02:3000000Error: Exit with code 1: Segmentation fault at address: 570490944stderr
13May 28, 2024 02:2700000Error: expected "53689583948046926 ", got "53689589559168264 "
14May 28, 2024 02:2600000Error: expected "53685714728499735 ", got "53685784704357149 "
15May 28, 2024 02:296,149116,169,22451,038,86102,183,168
16May 28, 2024 02:436,159122,134,80151,116,14502,191,360
17May 28, 2024 02:436,168122,007,25651,194,68302,211,840
18May 28, 2024 02:426,194125,561,31351,409,74902,187,264
19May 28, 2024 02:296,237132,458,63051,767,31302,211,840
20May 28, 2024 02:296,256130,274,90351,921,33202,211,840
21May 28, 2024 02:436,275115,882,28852,085,05502,199,552
22May 28, 2024 02:426,332108,874,90752,554,96502,199,552
23May 28, 2024 02:426,388109,210,22953,019,95102,195,456