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 listApr 27, 2024 21:22Joad NacerJoad NacerScore: 10,851Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 27, 2024 21:2210,396112,565,95884,277,0002,006,0002,506,752
2Apr 27, 2024 21:2210,401113,094,60184,318,0002,007,0002,498,560
3Apr 27, 2024 21:2210,410110,939,26983,386,0003,013,0002,273,280
4Apr 27, 2024 21:2210,556113,865,90686,610,0001,007,0002,273,280
5Apr 27, 2024 21:2210,580115,664,83785,818,0001,995,0002,347,008
6Apr 27, 2024 21:2210,655117,062,38785,420,0003,014,0002,510,848
7Apr 27, 2024 21:2210,727114,259,62586,033,0003,001,0002,502,656
8Apr 27, 2024 21:2210,851119,448,92989,067,0001,000,0002,273,280
9Apr 27, 2024 21:2210,945116,217,62986,852,0003,993,0002,506,752
10Apr 27, 2024 21:2210,978153,710,22291,119,43502,281,472
11Apr 27, 2024 21:2210,985150,180,87191,178,84402,265,088
12Apr 27, 2024 21:2210,991161,759,88391,226,36802,273,280
13Apr 27, 2024 21:2211,896124,501,97597,741,000997,0002,260,992
14Apr 27, 2024 21:2212,057127,078,68298,076,0002,001,0002,273,280
15Apr 27, 2024 21:2212,223124,268,257100,447,0001,004,0002,265,088