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 4, 2024 02:28GraceGraceScore: 5,763Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 4, 2024 02:285,74671,665,55846,681,0001,014,0002,400,256
2Jun 4, 2024 02:285,75272,599,22345,754,0001,989,0002,273,280
3Jun 4, 2024 02:285,76275,412,65845,832,0001,992,0002,400,256
4Jun 4, 2024 02:285,76272,952,30647,822,00002,273,280
5Jun 4, 2024 02:285,76281,618,82645,835,0001,992,0002,273,280
6Jun 4, 2024 02:285,76377,611,18646,833,000996,0002,273,280
7Jun 4, 2024 02:285,76372,714,54845,838,0001,992,0002,273,280
8Jun 4, 2024 02:285,76380,396,65046,839,000996,0002,273,280
9Jun 4, 2024 02:285,76374,299,11945,838,0001,992,0002,273,280
10Jun 4, 2024 02:285,76572,711,58745,856,0001,993,0002,273,280
11Jun 4, 2024 02:285,76769,928,96145,872,0001,994,0002,273,280
12Jun 4, 2024 02:285,88480,229,94346,847,0001,993,0002,273,280
13Jun 4, 2024 02:285,993113,611,54549,745,08002,285,568
14Jun 4, 2024 02:285,994126,097,27949,746,61602,285,568
15Jun 4, 2024 02:285,997104,175,50049,771,04702,285,568