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 28, 2021 14:38gchebanovgchebanovScore: 28,160Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 28, 2021 14:3827,587255,773,784226,969,0001,999,0002,273,280
2Jun 28, 2021 14:3827,633252,298,671228,351,0001,001,0002,273,280
3Jun 28, 2021 14:3827,669256,918,635227,655,0001,996,0002,273,280
4Jun 28, 2021 14:3827,680253,979,819228,746,000998,0002,273,280
5Jun 28, 2021 14:3827,873259,976,474230,348,0001,001,0002,273,280
6Jun 28, 2021 14:3827,879257,614,802230,396,0001,001,0002,273,280
7Jun 28, 2021 14:3828,136260,703,374232,531,000997,0002,273,280
8Jun 28, 2021 14:3828,160265,504,490231,731,0001,997,0002,408,448
9Jun 28, 2021 14:3828,211257,090,913233,152,0001,000,0002,408,448
10Jun 28, 2021 14:3829,916313,193,074248,299,59102,273,280
11Jun 28, 2021 14:3830,107302,116,304249,884,89902,273,280
12Jun 28, 2021 14:3830,116307,221,382249,958,86102,281,472
13Jun 28, 2021 14:3830,201313,137,757250,670,73702,289,664
14Jun 28, 2021 14:3830,208316,656,087250,730,07902,289,664
15Jun 28, 2021 14:3830,217314,549,241250,805,20302,277,376