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 4, 2021 20:30Yurkov AlekseyYurkov AlekseyError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 4, 2021 20:3000000no run stats recorded
2May 4, 2021 20:2100000no run stats recorded
3May 4, 2021 20:2100000no run stats recorded
4May 20, 2021 00:3631,919325,395,905264,929,52502,285,568
5May 20, 2021 00:3731,920324,001,974264,939,82302,289,664
6May 20, 2021 00:3631,929318,530,128265,013,12602,277,376
7May 20, 2021 00:3631,939331,636,677265,089,58402,281,472
8May 20, 2021 00:3631,941324,857,063265,112,07502,281,472
9May 20, 2021 00:3631,943333,297,716265,126,74102,285,568
10May 20, 2021 00:3731,944321,882,406265,133,78602,260,992
11May 20, 2021 00:3631,949337,873,511265,179,10202,289,664
12May 20, 2021 00:3731,961329,390,508265,280,43502,285,568
13May 19, 2021 18:4632,307331,811,810268,149,51602,293,760
14May 19, 2021 18:4632,312331,494,075268,191,98702,293,760
15May 19, 2021 18:4932,368338,460,643268,657,52502,265,088
16May 19, 2021 18:4632,370332,357,821268,674,29402,281,472
17May 19, 2021 18:4932,391337,315,369268,843,38302,285,568
18May 19, 2021 18:4932,392330,716,179268,852,86502,355,200