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 6, 2024 12:33Joad NacerJoad NacerScore: 8,471Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 6, 2024 12:337,969148,298,42866,143,44702,273,280
2Jun 6, 2024 12:338,004130,209,10266,432,54402,281,472
3Jun 6, 2024 12:338,081137,733,48067,072,22502,277,376
4Jun 6, 2024 12:338,43393,951,79667,993,0001,999,0002,269,184
5Jun 6, 2024 12:338,43992,127,53968,039,0002,001,0002,269,184
6Jun 6, 2024 12:338,44593,181,33468,095,0002,002,0002,281,472
7Jun 6, 2024 12:338,44595,972,14568,088,0002,002,0002,281,472
8Jun 6, 2024 12:338,47195,596,60068,303,0002,008,0002,281,472
9Jun 6, 2024 12:338,53793,598,78568,863,0001,996,0002,523,136
10Jun 6, 2024 12:338,60295,906,74470,391,0001,005,0002,265,088
11Jun 6, 2024 12:338,61593,967,23070,494,0001,007,0002,281,472
12Jun 6, 2024 12:338,860103,262,54072,527,0001,007,0002,281,472
13Jun 6, 2024 12:339,542102,250,78079,200,0000172,032
14Jun 6, 2024 12:339,546103,226,15278,231,0001,002,000184,320
15Jun 6, 2024 12:339,586108,899,64879,565,00002,519,040