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 21:03GraceGraceScore: 5,239Success
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 21:035,19869,290,08041,139,0002,006,0002,273,280
2Jun 4, 2024 21:035,21769,391,72442,293,0001,006,0002,494,464
3Jun 4, 2024 21:035,22664,586,29942,365,0001,008,0002,404,352
4Jun 4, 2024 21:035,22666,670,55542,370,0001,008,0002,400,256
5Jun 4, 2024 21:035,22768,290,83442,375,0001,008,0002,400,256
6Jun 4, 2024 21:035,22764,349,39042,375,0001,008,0002,408,448
7Jun 4, 2024 21:035,22864,506,26442,382,0001,009,0002,273,280
8Jun 4, 2024 21:035,23064,234,83442,396,0001,009,0002,400,256
9Jun 4, 2024 21:035,23069,406,97342,400,0001,009,0002,404,352
10Jun 4, 2024 21:035,23169,656,71143,419,00002,273,280
11Jun 4, 2024 21:035,23265,382,38643,425,00002,404,352
12Jun 4, 2024 21:035,23563,100,24442,439,0001,010,0002,273,280
13Jun 4, 2024 21:035,23573,560,82542,437,0001,010,0002,273,280
14Jun 4, 2024 21:035,23666,339,61842,449,0001,010,0002,260,992
15Jun 4, 2024 21:035,23669,472,05242,469,000987,0002,273,280
16Jun 4, 2024 21:035,23964,799,51943,481,00002,408,448
17Jun 4, 2024 21:035,24270,304,32543,505,00002,408,448
18Jun 4, 2024 21:035,24370,989,60142,504,0001,012,0002,396,160
19Jun 4, 2024 21:035,386102,217,95444,703,21102,289,664
20Jun 4, 2024 21:035,389108,946,41144,726,02502,293,760
21Jun 4, 2024 21:035,391104,760,25744,744,76602,289,664
22Jun 4, 2024 21:035,391111,466,75244,742,72802,285,568
23Jun 4, 2024 21:035,392120,463,69444,750,58702,285,568
24Jun 4, 2024 21:035,416103,344,97044,954,75502,293,760
25Jun 4, 2024 21:036,27875,406,86051,109,0001,002,0002,396,160
26Jun 4, 2024 21:036,28474,230,93751,152,0001,002,0002,273,280
27Jun 4, 2024 21:036,29273,459,63450,213,0002,008,0002,400,256
28Jun 4, 2024 21:036,29374,888,79350,226,0002,009,0002,404,352
29Jun 4, 2024 21:036,30074,349,21151,285,0001,005,0002,404,352
30Jun 4, 2024 21:036,30977,623,79351,355,0001,006,0002,273,280