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 07:01GraceGraceScore: 5,949Success
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 07:015,93768,406,79048,274,0001,005,0002,273,280
2Jun 3, 2024 07:015,93876,042,04147,274,0002,011,0002,273,280
3Jun 3, 2024 07:015,93974,349,07248,287,0001,005,0002,510,848
4Jun 3, 2024 07:015,94073,025,41647,293,0002,012,0002,273,280
5Jun 3, 2024 07:015,94074,573,94048,300,0001,006,0002,408,448
6Jun 3, 2024 07:015,94374,936,74949,326,00002,273,280
7Jun 3, 2024 07:015,94679,693,08048,341,0001,007,0002,273,280
8Jun 3, 2024 07:015,94972,787,00149,376,00002,273,280
9Jun 3, 2024 07:015,95172,961,18048,385,0001,008,0002,273,280
10Jun 3, 2024 07:016,332108,694,07352,552,71402,293,760
11Jun 3, 2024 07:016,352130,171,77852,723,78902,281,472
12Jun 3, 2024 07:016,360110,410,70052,788,09002,285,568
13Jun 3, 2024 07:017,21681,896,97057,896,0001,996,0002,273,280
14Jun 3, 2024 07:017,25984,363,52358,243,0002,008,0002,404,352
15Jun 3, 2024 07:017,28981,432,01959,490,0001,008,0002,273,280