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 29, 2024 15:47GraceGraceScore: 7,500Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 29, 2024 15:477,36384,122,96657,102,0004,007,0002,297,856
2May 29, 2024 15:477,38782,557,87357,288,0004,020,0002,424,832
3May 29, 2024 15:477,41483,842,57558,510,0003,026,0002,289,664
4May 29, 2024 15:477,42890,605,02658,621,0003,032,0002,428,928
5May 29, 2024 15:477,45087,953,93959,840,0001,994,0002,437,120
6May 29, 2024 15:477,45583,019,11457,884,0003,992,0002,301,952
7May 29, 2024 15:477,45688,284,81457,891,0003,992,0002,297,856
8May 29, 2024 15:477,50091,714,96960,244,0002,008,0002,428,928
9May 29, 2024 15:477,53588,950,23960,520,0002,017,0002,428,928
10May 29, 2024 15:477,53788,945,07760,540,0002,018,0002,424,832
11May 29, 2024 15:477,56493,005,79559,790,0002,989,0002,400,256
12May 29, 2024 15:477,61686,031,96760,205,0003,010,0002,314,240
13May 29, 2024 15:477,830133,932,28164,988,32002,187,264
14May 29, 2024 15:477,856122,414,89265,206,74902,195,456
15May 29, 2024 15:477,924128,480,65865,768,06902,187,264