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 listJul 10, 2023 03:28sliceteamsliceteamScore: 8,421Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 10, 2023 03:288,37090,273,88768,467,0001,006,0002,260,992
2Jul 10, 2023 03:288,38097,238,73669,552,00002,519,040
3Jul 10, 2023 03:288,38193,979,09968,554,0001,008,0002,375,680
4Jul 10, 2023 03:288,40995,219,21368,795,000997,0002,523,136
5Jul 10, 2023 03:288,41999,555,89268,877,000998,0002,383,872
6Jul 10, 2023 03:288,42096,777,16967,889,0001,996,0002,392,064
7Jul 10, 2023 03:288,42098,759,47467,893,0001,996,0002,502,656
8Jul 10, 2023 03:288,421101,170,59969,894,00002,387,968
9Jul 10, 2023 03:288,42398,484,59467,913,0001,997,0002,260,992
10Jul 10, 2023 03:288,42497,543,04367,921,0001,997,0002,265,088
11Jul 10, 2023 03:288,43094,409,47667,966,0001,999,0002,260,992
12Jul 10, 2023 03:288,43696,536,37269,016,0001,000,0002,260,992
13Jul 10, 2023 03:289,323154,979,68277,380,14202,260,992
14Jul 10, 2023 03:289,341132,576,77877,532,03902,260,992
15Jul 10, 2023 03:289,440137,740,09678,353,70002,260,992