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 21:25GraceGraceScore: 5,019Success
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 21:254,79765,438,71338,824,000995,0002,273,280
2Jun 4, 2024 21:254,79969,784,22737,841,0001,991,0002,273,280
3Jun 4, 2024 21:254,79966,031,88738,834,000995,0002,273,280
4Jun 4, 2024 21:254,80167,608,00939,845,00002,273,280
5Jun 4, 2024 21:254,80263,662,57038,836,0001,022,0002,273,280
6Jun 4, 2024 21:254,81063,722,26137,930,0001,996,0002,273,280
7Jun 4, 2024 21:254,81369,668,02737,954,0001,997,0002,273,280
8Jun 4, 2024 21:254,81962,838,11737,996,0001,999,0002,273,280
9Jun 4, 2024 21:254,84960,571,10039,238,0001,006,0002,519,040
10Jun 4, 2024 21:255,019112,049,57541,656,80102,289,664
11Jun 4, 2024 21:255,021105,768,35441,676,47102,289,664
12Jun 4, 2024 21:255,024114,640,65541,702,69902,293,760
13Jun 4, 2024 21:255,025101,280,14141,705,66702,285,568
14Jun 4, 2024 21:255,029104,588,50141,742,87502,289,664
15Jun 4, 2024 21:255,036124,776,73141,801,42502,297,856
16Jun 4, 2024 21:255,036117,556,88441,794,66502,297,856
17Jun 4, 2024 21:255,036112,771,36841,797,24602,293,760
18Jun 4, 2024 21:255,039119,458,65841,825,48502,281,472