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 02:28GraceGraceScore: 5,767Success
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 02:285,76372,539,08546,835,000996,0002,273,280
2Jun 4, 2024 02:285,76472,438,37646,843,000996,0002,273,280
3Jun 4, 2024 02:285,76475,855,63946,845,000996,0002,273,280
4Jun 4, 2024 02:285,76578,159,34745,855,0001,993,0002,400,256
5Jun 4, 2024 02:285,76571,912,73645,856,0001,993,0002,400,256
6Jun 4, 2024 02:285,76575,682,46246,853,000996,0002,404,352
7Jun 4, 2024 02:285,76674,591,93746,863,000997,0002,273,280
8Jun 4, 2024 02:285,76777,761,93446,871,000997,0002,408,448
9Jun 4, 2024 02:285,76873,153,56945,881,0001,994,0002,273,280
10Jun 4, 2024 02:285,76969,162,66045,888,0001,995,0002,273,280
11Jun 4, 2024 02:285,77375,149,63645,918,0001,996,0002,502,656
12Jun 4, 2024 02:285,90276,578,83246,986,0001,999,0002,273,280
13Jun 4, 2024 02:285,996120,037,50749,763,72402,289,664
14Jun 4, 2024 02:285,997100,162,30549,777,53402,281,472
15Jun 4, 2024 02:286,113129,027,32750,737,58602,281,472