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 listMay 28, 2024 15:28GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 28, 2024 15:2800000Error: expected "53680857375989745 ", got "53680857375924209 "
2May 28, 2024 15:2815,674151,382,210128,091,0002,001,0002,531,328
3May 28, 2024 15:2815,680155,363,178129,146,0001,001,0002,285,568
4May 28, 2024 15:2815,697156,175,850128,280,0002,004,0002,285,568
5May 28, 2024 15:2815,722153,790,528129,488,0001,003,0002,260,992
6May 28, 2024 15:2815,735163,967,078129,596,0001,004,0002,265,088
7May 28, 2024 15:2815,758161,450,717128,795,0001,996,0002,285,568
8May 28, 2024 15:2815,769158,210,904128,886,0001,998,0002,273,280
9May 28, 2024 15:2815,796156,164,614129,102,0002,001,0002,269,184
10May 28, 2024 15:2815,835154,461,037129,425,0002,006,0002,285,568
11May 28, 2024 15:2815,865193,604,387131,679,23602,289,664
12May 28, 2024 15:2815,908208,218,274132,033,98102,301,952
13May 28, 2024 15:2816,624191,700,036137,979,88802,289,664