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 16:07GraceGraceScore: 6,224Success
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 16:076,04076,850,75148,090,0002,046,0002,424,832
2May 29, 2024 16:076,12076,477,11846,812,0003,984,0002,506,752
3May 29, 2024 16:076,14479,258,66247,993,0002,999,0002,437,120
4May 29, 2024 16:076,16377,445,70247,142,0004,012,0002,449,408
5May 29, 2024 16:076,17677,030,33348,242,0003,015,0002,289,664
6May 29, 2024 16:076,18177,477,55851,306,00002,437,120
7May 29, 2024 16:076,19173,377,94947,355,0004,030,0002,433,024
8May 29, 2024 16:076,19876,604,93547,406,0004,034,0002,301,952
9May 29, 2024 16:076,21980,010,34748,579,0003,036,0002,383,872
10May 29, 2024 16:076,22478,044,39449,635,0002,025,0002,326,528
11May 29, 2024 16:076,28078,138,64249,118,0003,007,0002,289,664
12May 29, 2024 16:076,37382,263,41949,903,0002,994,0002,514,944
13May 29, 2024 16:076,501122,166,32753,957,88902,306,048
14May 29, 2024 16:036,508114,505,98354,016,26002,183,168
15May 29, 2024 16:076,509116,219,46754,021,22402,179,072
16May 29, 2024 16:036,526119,251,08354,163,94102,187,264
17May 29, 2024 16:076,552111,087,87554,378,89102,183,168
18May 29, 2024 16:036,573111,308,87654,554,38502,183,168