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 listMay 29, 2024 16:48GraceGraceScore: 6,480Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 29, 2024 16:486,36975,818,42251,866,000997,0002,404,352
2May 29, 2024 16:486,37374,195,01450,903,0001,996,0002,289,664
3May 29, 2024 16:486,39079,168,25451,038,0002,001,0002,289,664
4May 29, 2024 16:486,42780,902,15551,334,0002,013,0002,396,160
5May 29, 2024 16:486,43777,173,62952,423,0001,008,0002,404,352
6May 29, 2024 16:486,44277,724,41052,459,0001,008,0002,289,664
7May 29, 2024 16:486,45984,021,44952,602,0001,011,0002,289,664
8May 29, 2024 16:486,48080,132,83551,796,0001,992,0002,289,664
9May 29, 2024 16:486,48380,702,05051,820,0001,993,0002,281,472
10May 29, 2024 16:486,48982,229,81451,862,0001,994,0002,289,664
11May 29, 2024 16:486,50582,608,55250,991,0002,999,0002,289,664
12May 29, 2024 16:486,81783,577,70054,562,0002,020,0002,289,664
13May 29, 2024 16:486,947136,092,88057,657,29902,293,760
14May 29, 2024 16:486,996120,205,21658,066,57702,285,568
15May 29, 2024 16:487,268121,673,32660,321,91302,285,568