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 16, 2021 18:37Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2021 18:3700000Died or killed
2May 16, 2021 18:3718,1202,116,804,689149,390,0001,002,0002,265,088
3May 16, 2021 18:3718,121188,670,939148,409,0001,992,0002,527,232
4May 16, 2021 18:3718,124296,701,379149,429,0001,002,0002,260,992
5May 16, 2021 18:3718,1253,077,994,330149,439,000996,0002,260,992
6May 16, 2021 18:3718,126278,481,243148,439,0002,005,0002,392,064
7May 16, 2021 18:3718,1271,214,729,202149,462,000996,0002,510,848
8May 16, 2021 18:3718,1271,021,783,220148,462,0001,992,0002,527,232
9May 16, 2021 18:3718,128889,720,438149,461,0001,003,0002,260,992
10May 16, 2021 18:3718,129325,273,194148,481,0001,993,0002,383,872
11May 16, 2021 18:3718,130640,175,043150,475,00002,260,992
12May 16, 2021 18:3718,1311,125,947,145147,498,0002,989,0002,256,896
13May 16, 2021 18:3718,1311,905,752,724150,488,00002,396,160
14May 16, 2021 18:3718,137536,402,680149,540,000996,0002,392,064
15May 16, 2021 18:3718,1422,724,920,494147,590,0002,991,0002,523,136
16May 16, 2021 18:3718,1592,886,763,594148,721,0001,996,0002,519,040
17May 16, 2021 18:3718,170240,764,827149,815,000998,0002,265,088
18May 16, 2021 18:3718,2372,639,452,246151,368,00002,256,896
19May 16, 2021 18:3718,2581,117,701,723150,535,0001,003,0002,519,040