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 listFeb 22, 2025 20:40alfaixalfaixScore: 106,866Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 22, 2025 20:4175,536648,098,323624,951,0001,999,0002,289,664
2Feb 22, 2025 20:4175,710657,668,730627,395,0001,000,0002,289,664
3Feb 22, 2025 20:4175,758657,241,311627,789,000999,0002,289,664
4Feb 22, 2025 20:4175,811651,936,968628,233,0001,000,0002,289,664
5Feb 22, 2025 20:4175,834663,763,644627,425,0001,998,0002,289,664
6Feb 22, 2025 20:4175,861655,612,314627,645,0001,998,0002,281,472
7Feb 22, 2025 20:4175,941657,849,115630,312,00002,281,472
8Feb 22, 2025 20:4176,059658,724,799630,288,0001,000,0002,289,664
9Feb 22, 2025 20:4176,265660,677,099630,997,0001,999,0002,527,232
10Feb 22, 2025 20:40106,866914,592,584885,991,000999,0002,289,664
11Feb 22, 2025 20:40106,905918,382,616885,311,0001,998,0002,289,664
12Feb 22, 2025 20:40106,909918,364,816885,350,0001,998,0002,277,376
13Feb 22, 2025 20:40106,919911,081,421885,428,0001,998,0002,289,664
14Feb 22, 2025 20:40106,926914,918,344885,488,0001,998,0002,273,280
15Feb 22, 2025 20:40106,934913,460,319885,554,0001,998,0002,371,584
16Feb 22, 2025 20:40106,938910,215,612885,588,0001,999,0002,289,664
17Feb 22, 2025 20:40106,941913,703,406886,615,000999,0002,281,472
18Feb 22, 2025 20:40106,944911,668,277885,638,0001,999,0002,281,472