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 listDec 31, 2022 15:44Jack FrigaardJack FrigaardScore: 5,156Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 31, 2022 15:445,12265,069,37941,503,0001,012,0002,449,408
2Dec 31, 2022 15:445,12564,570,01541,523,0001,012,0002,445,312
3Dec 31, 2022 15:445,12669,625,90540,523,0002,026,0002,523,136
4Dec 31, 2022 15:445,12769,766,68841,545,0001,013,0002,523,136
5Dec 31, 2022 15:445,13768,046,18640,607,0002,030,0002,523,136
6Dec 31, 2022 15:445,13874,506,57240,617,0002,030,0002,461,696
7Dec 31, 2022 15:445,14275,708,67940,646,0002,032,0002,457,600
8Dec 31, 2022 15:445,15670,363,73141,803,000995,0002,457,600
9Dec 31, 2022 15:445,160107,807,25342,826,85902,211,840
10Dec 31, 2022 15:445,16274,576,26540,855,0001,992,0002,523,136
11Dec 31, 2022 15:445,190115,079,82143,076,48602,236,416
12Dec 31, 2022 15:445,20765,451,05841,209,0002,010,0002,523,136
13Dec 31, 2022 15:445,21665,619,85642,284,0001,006,0002,449,408
14Dec 31, 2022 15:445,218116,730,68643,313,27502,211,840
15Dec 31, 2022 15:445,22271,415,40341,327,0002,015,0002,449,408