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 4, 2024 03:24GraceGraceScore: 5,341Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 4, 2024 03:245,11069,301,79941,407,0001,009,0002,404,352
2Jun 4, 2024 03:245,11965,231,76041,478,0001,011,0002,273,280
3Jun 4, 2024 03:245,11963,575,86241,475,0001,011,0002,273,280
4Jun 4, 2024 03:245,12066,474,37741,483,0001,011,0002,273,280
5Jun 4, 2024 03:245,12169,181,41241,491,0001,011,0002,273,280
6Jun 4, 2024 03:245,12469,862,74241,521,0001,012,0002,273,280
7Jun 4, 2024 03:245,12571,127,19442,536,00002,273,280
8Jun 4, 2024 03:245,12770,104,57141,538,0001,013,0002,273,280
9Jun 4, 2024 03:245,13173,388,09041,575,0001,014,0002,400,256
10Jun 4, 2024 03:255,336126,698,81244,286,17002,285,568
11Jun 4, 2024 03:245,341123,785,42144,326,67202,281,472
12Jun 4, 2024 03:245,342115,666,54144,338,40302,256,896
13Jun 4, 2024 03:255,342116,667,88444,339,31802,281,472
14Jun 4, 2024 03:275,346109,917,76544,370,11002,285,568
15Jun 4, 2024 03:245,346107,185,78244,372,93602,285,568
16Jun 4, 2024 03:255,348121,952,78544,389,64702,281,472
17Jun 4, 2024 03:275,356109,686,47244,451,81202,289,664
18Jun 4, 2024 03:275,360117,034,43844,486,11102,289,664
19Jun 4, 2024 03:246,04175,115,36348,133,0002,005,0002,273,280
20Jun 4, 2024 03:246,06775,385,82950,352,00002,273,280
21Jun 4, 2024 03:246,11288,545,01949,716,0001,014,0002,387,968