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 8, 2024 23:53Steve HanSteve HanScore: 9,839Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 9, 2024 00:069,617154,252,71879,823,85002,285,568
2May 9, 2024 00:079,629141,083,42279,919,71302,273,280
3May 8, 2024 23:549,629146,370,83279,920,24702,277,376
4May 9, 2024 00:069,646135,370,36980,063,20702,273,280
5May 9, 2024 00:079,690142,743,74580,423,83802,285,568
6May 8, 2024 23:549,706143,313,06280,562,27102,277,376
7May 9, 2024 00:079,836135,164,54081,642,48502,273,280
8May 9, 2024 00:079,837134,551,25481,644,41402,277,376
9May 8, 2024 23:539,838142,602,42181,654,11302,269,184
10May 8, 2024 23:539,839137,660,98681,659,77302,265,088
11May 9, 2024 00:069,862147,331,30581,854,12602,277,376
12May 8, 2024 23:539,865136,617,95681,880,89602,281,472
13May 9, 2024 00:069,869137,174,97281,911,57602,277,376
14May 9, 2024 00:079,872141,735,72681,936,42602,285,568
15May 9, 2024 00:079,874142,959,96081,956,76102,277,376
16May 9, 2024 00:069,911145,571,94982,260,60302,281,472
17May 8, 2024 23:549,920150,241,41282,335,74202,269,184
18May 9, 2024 00:069,925152,021,59882,374,25302,281,472