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 listJun 3, 2024 04:51GraceGraceScore: 6,017Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 3, 2024 04:516,00779,661,37548,863,000997,0002,273,280
2Jun 3, 2024 04:516,01077,136,45547,890,0001,995,0002,273,280
3Jun 3, 2024 04:516,01176,648,32847,893,0001,995,0002,273,280
4Jun 3, 2024 04:516,01372,510,44548,909,000998,0002,510,848
5Jun 3, 2024 04:516,01479,335,55347,923,0001,996,0002,392,064
6Jun 3, 2024 04:516,01677,662,81447,932,0001,997,0002,273,280
7Jun 3, 2024 04:516,01672,844,83447,935,0001,997,0002,273,280
8Jun 3, 2024 04:516,01771,243,66347,944,0001,997,0002,400,256
9Jun 3, 2024 04:516,01971,645,54047,960,0001,998,0002,273,280
10Jun 3, 2024 04:516,02273,707,83747,980,0001,999,0002,273,280
11Jun 3, 2024 04:516,02573,170,54449,005,0001,000,0002,273,280
12Jun 3, 2024 04:516,02775,126,85149,027,0001,000,0002,273,280
13Jun 3, 2024 04:516,218113,539,70751,607,02602,285,568
14Jun 3, 2024 04:516,219122,085,53951,621,78002,285,568
15Jun 3, 2024 04:516,223114,494,15351,653,70302,281,472