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 listMar 16, 2024 17:38Matt StuchlikMatt StuchlikScore: 29,227Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 16, 2024 17:3829,177270,523,655240,164,0002,001,0002,273,280
2Mar 16, 2024 17:3829,187266,967,455240,251,0002,002,0002,519,040
3Mar 16, 2024 17:3829,190264,706,036240,275,0002,002,0002,273,280
4Mar 16, 2024 17:3829,217278,682,780241,498,0001,002,0002,273,280
5Mar 16, 2024 17:3829,224270,692,129241,557,0001,002,0002,273,280
6Mar 16, 2024 17:3829,224268,650,426241,561,0001,002,0002,273,280
7Mar 16, 2024 17:3829,227268,617,507241,578,0001,002,0002,519,040
8Mar 16, 2024 17:3829,242272,414,937241,713,000998,0002,523,136
9Mar 16, 2024 17:3829,299264,817,216241,179,0002,001,0002,273,280
10Mar 16, 2024 17:3829,811314,444,623247,428,73002,277,376
11Mar 16, 2024 17:3829,866299,929,382247,891,20402,285,568
12Mar 16, 2024 17:3832,135328,837,750266,721,42102,277,376