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 listAug 25, 2023 09:14matsuoka-601matsuoka-601Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 25, 2023 10:1900000Error: expected "53681373365439643 ", got "53681347765439643 "stderr
2Aug 25, 2023 09:148,110128,414,76967,316,88702,285,568
3Aug 25, 2023 09:158,124142,746,32167,432,93502,277,376
4Aug 25, 2023 09:158,187129,776,43867,951,82202,277,376
5Aug 25, 2023 10:218,193126,610,79768,002,62002,281,472
6Aug 25, 2023 09:158,194133,602,97568,013,35402,281,472
7Aug 25, 2023 10:218,257129,809,76168,531,46502,269,184
8Aug 25, 2023 09:148,289130,663,10168,800,50202,269,184
9Aug 25, 2023 10:198,337128,973,40569,193,37102,269,184
10Aug 25, 2023 10:198,354128,058,76469,338,51902,273,280
11Aug 25, 2023 10:198,380146,319,26969,552,69202,269,184
12Aug 25, 2023 10:218,388137,206,32169,618,71702,273,280
13Aug 25, 2023 09:148,389136,959,27869,626,03002,285,568