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 2, 2024 15:55GraceGraceScore: 6,146Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 2, 2024 15:556,10176,735,83049,630,0001,012,0002,404,352
2Jun 2, 2024 15:556,12178,819,50848,814,0001,992,0002,273,280
3Jun 2, 2024 15:556,12479,673,30648,835,0001,993,0002,273,280
4Jun 2, 2024 15:556,13377,220,51348,909,0001,996,0002,400,256
5Jun 2, 2024 15:556,13775,594,31648,936,0001,997,0002,273,280
6Jun 2, 2024 15:556,14674,543,95449,009,0002,000,0002,273,280
7Jun 2, 2024 15:556,14673,645,58149,009,0002,000,0002,273,280
8Jun 2, 2024 15:556,14678,357,51949,012,0002,000,0002,273,280
9Jun 2, 2024 15:556,15778,220,04150,104,0001,002,0002,396,160
10Jun 2, 2024 15:556,16076,086,09350,129,0001,002,0002,273,280
11Jun 2, 2024 15:556,17170,566,38049,215,0002,008,0002,273,280
12Jun 2, 2024 15:556,28175,572,74951,132,0001,002,0002,404,352
13Jun 2, 2024 15:557,471132,590,93562,007,58302,273,280
14Jun 2, 2024 15:557,562120,924,92462,767,20802,281,472
15Jun 2, 2024 15:557,582131,030,22262,934,35402,293,760