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 16, 2024 12:18Huy Duc LeHuy Duc LeScore: 12,276Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 16, 2024 12:1812,261126,110,145100,767,000997,0002,269,184
2Feb 16, 2024 12:1812,264130,957,633100,795,000997,0002,265,088
3Feb 16, 2024 12:1812,266126,667,30599,810,0001,996,0002,285,568
4Feb 16, 2024 12:1812,267127,882,87499,824,0001,996,0002,523,136
5Feb 16, 2024 12:1812,273127,701,12199,865,0001,997,0002,285,568
6Feb 16, 2024 12:1812,276124,823,76799,891,0001,997,0002,285,568
7Feb 16, 2024 12:1812,276128,018,47899,895,0001,997,0002,285,568
8Feb 16, 2024 12:1812,277126,621,93599,899,0001,997,0002,277,376
9Feb 16, 2024 12:1812,282128,944,15799,942,0001,998,0002,285,568
10Feb 16, 2024 12:1812,300174,362,795102,092,72602,281,472
11Feb 16, 2024 12:1812,313173,963,364102,195,22302,281,472
12Feb 16, 2024 12:1812,319160,198,352102,251,59502,281,472