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 listJun 3, 2024 05:15GraceGraceScore: 5,316Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 3, 2024 05:155,30667,100,36642,035,0002,001,0002,400,256
2Jun 3, 2024 05:155,30965,273,88542,065,0002,003,0002,273,280
3Jun 3, 2024 05:155,31067,953,89542,066,0002,003,0002,396,160
4Jun 3, 2024 05:155,31163,240,83042,076,0002,003,0002,273,280
5Jun 3, 2024 05:155,31169,617,16043,083,0001,001,0002,273,280
6Jun 3, 2024 05:155,31267,174,34142,089,0002,004,0002,273,280
7Jun 3, 2024 05:155,31368,017,09343,095,0001,002,0002,510,848
8Jun 3, 2024 05:155,31670,746,84342,119,0002,005,0002,396,160
9Jun 3, 2024 05:155,32071,285,37543,149,0001,003,0002,392,064
10Jun 3, 2024 05:155,35770,455,28843,453,0001,010,0002,273,280
11Jun 3, 2024 05:155,35966,901,70544,482,00002,273,280
12Jun 3, 2024 05:155,42069,321,13742,985,0001,999,0002,396,160
13Jun 3, 2024 05:155,525116,336,60745,859,97702,289,664
14Jun 3, 2024 05:155,52998,765,52845,886,88602,289,664
15Jun 3, 2024 05:155,530104,794,84145,898,35602,289,664