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 listOct 22, 2023 23:04sliceteamsliceteamScore: 8,034Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 22, 2023 23:048,00588,007,86465,438,0001,006,0002,273,280
2Oct 22, 2023 23:048,01588,821,89966,524,00002,404,352
3Oct 22, 2023 23:048,01597,909,60166,523,00002,400,256
4Oct 22, 2023 23:048,02093,043,90865,554,0001,008,0002,404,352
5Oct 22, 2023 23:048,02293,258,92566,579,00002,273,280
6Oct 22, 2023 23:048,02491,908,62465,588,0001,009,0002,273,280
7Oct 22, 2023 23:048,03095,260,04765,638,0001,009,0002,273,280
8Oct 22, 2023 23:048,03495,789,41365,669,0001,010,0002,404,352
9Oct 22, 2023 23:048,05095,609,70665,819,000997,0002,400,256
10Oct 22, 2023 23:048,05096,894,95664,820,0001,994,0002,400,256
11Oct 22, 2023 23:048,05688,451,84065,865,000997,0002,273,280
12Oct 22, 2023 23:048,25999,701,19268,550,00002,273,280
13Oct 22, 2023 23:048,267133,872,22168,612,68602,281,472
14Oct 22, 2023 23:048,274141,518,51168,673,53602,285,568
15Oct 22, 2023 23:048,293136,129,64068,832,14202,281,472