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 listApr 6, 2024 15:37Matt StuchlikMatt StuchlikScore: 29,899Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 7, 2024 16:0429,863271,962,614245,869,0001,998,0002,277,376
2Apr 6, 2024 15:3729,873270,768,333245,951,0001,999,0002,285,568
3Apr 6, 2024 15:3729,873277,272,298246,951,000999,0002,285,568
4Apr 7, 2024 16:0429,873273,384,922245,947,0001,999,0002,379,776
5Apr 6, 2024 15:3729,880273,017,567246,006,0002,000,0002,285,568
6Apr 6, 2024 15:3729,887277,967,565247,066,0001,000,0002,285,568
7Apr 6, 2024 15:3729,887300,327,171248,064,71702,297,856
8Apr 7, 2024 16:0429,891276,435,951246,099,0002,000,0002,260,992
9Apr 7, 2024 16:0429,893273,030,949246,110,0002,000,0002,273,280
10Apr 7, 2024 16:0429,893275,776,913247,116,0001,000,0002,277,376
11Apr 6, 2024 15:3729,894304,218,139248,120,85602,297,856
12Apr 7, 2024 16:0429,899309,728,512248,158,27202,301,952
13Apr 6, 2024 15:3729,899300,263,375248,165,61502,289,664
14Apr 6, 2024 15:3729,899273,331,391246,164,0002,001,0002,379,776
15Apr 6, 2024 15:3729,900270,812,413246,169,0002,001,0002,269,184
16Apr 6, 2024 15:3729,901276,480,158246,175,0002,001,0002,273,280
17Apr 7, 2024 16:0429,904270,629,535246,205,0002,001,0002,285,568
18Apr 6, 2024 15:3729,906277,633,205247,223,0001,000,0002,367,488
19Apr 7, 2024 16:0429,917319,779,265248,314,82302,289,664
20Apr 7, 2024 16:0429,918276,535,062246,317,0002,002,0002,285,568
21Apr 7, 2024 16:0429,920279,862,766248,340,00002,285,568
22Apr 7, 2024 16:0429,920311,013,490248,336,70902,289,664
23Apr 7, 2024 16:0429,921279,748,123248,346,00002,285,568
24Apr 6, 2024 15:3729,926271,613,958247,387,0001,001,0002,277,376