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 05:44GraceGraceScore: 5,257Success
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 05:445,23568,520,02442,443,0001,010,0002,273,280
2Jun 4, 2024 05:445,24368,639,28742,509,0001,012,0002,400,256
3Jun 4, 2024 05:445,24668,241,22941,563,0001,979,0002,387,968
4Jun 4, 2024 05:445,24964,132,44242,553,0001,013,0002,273,280
5Jun 4, 2024 05:445,24970,834,23643,570,00002,273,280
6Jun 4, 2024 05:445,25371,487,04943,601,00002,400,256
7Jun 4, 2024 05:445,25474,212,65242,594,0001,014,0002,396,160
8Jun 4, 2024 05:445,25770,242,40843,637,00002,273,280
9Jun 4, 2024 05:445,26367,035,82742,664,0001,015,0002,400,256
10Jun 4, 2024 05:445,383116,530,35844,682,10302,281,472
11Jun 4, 2024 05:445,405101,103,48844,862,68802,285,568
12Jun 4, 2024 05:445,412124,792,26544,919,73402,281,472
13Jun 4, 2024 05:446,24784,528,19050,849,000997,0002,400,256
14Jun 4, 2024 05:446,26680,831,69651,011,0001,000,0002,273,280
15Jun 4, 2024 05:446,28475,592,67650,150,0002,006,0002,396,160