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 7, 2024 12:10GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 7, 2024 12:1000000Error: expected "53685493993881221 ", got "53685493987327621 "
2Jun 7, 2024 12:104,14756,682,38233,405,0001,012,0002,273,280
3Jun 7, 2024 12:104,14854,439,40632,402,0002,025,000192,512
4Jun 7, 2024 12:104,16661,626,15232,543,0002,033,0002,371,584
5Jun 7, 2024 12:104,17058,320,45932,575,0002,035,0002,478,080
6Jun 7, 2024 12:104,17264,272,66133,611,0001,018,0002,342,912
7Jun 7, 2024 12:104,17364,830,63734,633,00002,273,280
8Jun 7, 2024 12:104,17560,061,51932,617,0002,038,0002,486,272
9Jun 7, 2024 12:104,19160,591,92232,799,0001,987,0002,273,280
10Jun 7, 2024 12:104,19564,941,91032,833,0001,989,000389,120
11Jun 7, 2024 12:104,19962,044,45633,854,000995,0002,482,176
12Jun 7, 2024 12:104,20667,674,66432,917,0001,994,000356,352
13Jun 7, 2024 12:104,21158,885,34133,952,000998,0002,273,280
14Jun 7, 2024 12:104,305114,312,82635,728,15802,240,512
15Jun 7, 2024 12:104,317111,557,75435,827,05802,252,800
16Jun 7, 2024 12:104,31892,504,62035,843,27102,236,416
17Jun 7, 2024 12:104,32791,672,89035,914,88502,244,608
18Jun 7, 2024 12:104,343107,491,50036,048,18902,244,608
19Jun 7, 2024 12:104,353100,922,40536,126,47802,236,416
20Jun 7, 2024 12:104,35996,570,56436,182,87702,244,608
21Jun 7, 2024 12:104,36399,071,11236,216,74702,244,608
22Jun 7, 2024 12:104,412103,375,05036,621,50702,240,512