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 29, 2024 18:49GraceGraceError
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 18:5100000Error: expected "53689877546772148 ", got "53689877540218548 "
2May 29, 2024 18:5000000Error: expected "53684137840706475 ", got "53684137834152875 "
3May 29, 2024 18:5000000Error: expected "53683666442945886 ", got "53683665787585886 "
4May 29, 2024 18:5000000Error: expected "53682920186029852 ", got "53682920179476252 "
5May 29, 2024 18:496,130122,726,76550,875,05402,277,376
6May 29, 2024 18:506,130122,012,43350,877,17502,281,472
7May 29, 2024 18:506,134117,952,62150,912,10402,281,472
8May 29, 2024 18:496,137115,214,10050,934,71602,285,568
9May 29, 2024 18:506,137128,042,24850,933,44002,285,568
10May 29, 2024 18:496,137121,083,63950,937,13602,281,472
11May 29, 2024 18:516,146129,928,40551,009,75802,277,376
12May 29, 2024 18:516,147126,860,52251,017,36302,273,280
13May 29, 2024 18:496,148126,291,10451,027,00102,293,760
14May 29, 2024 18:506,149122,473,53651,034,49102,293,760
15May 29, 2024 18:506,149122,815,55351,036,97802,281,472
16May 29, 2024 18:516,157120,005,03251,100,88602,289,664
17May 29, 2024 18:506,160115,467,57151,127,06402,285,568
18May 29, 2024 18:496,165120,469,54051,168,15702,281,472
19May 29, 2024 18:506,187132,882,77251,349,26702,285,568
20May 29, 2024 18:506,192124,041,76451,396,41502,285,568
21May 29, 2024 18:506,307112,153,41452,345,43602,281,472
22May 29, 2024 18:496,351106,970,33152,711,13402,289,664