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 26, 2024 19:52Ryan Chung Yi ShengRyan Chung Yi ShengScore: 53,924Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 26, 2024 19:5353,448482,338,006443,621,82202,281,472
2Feb 26, 2024 19:5353,537485,941,743444,356,93402,277,376
3Feb 26, 2024 19:5353,562500,067,390444,561,12302,285,568
4Feb 26, 2024 19:5253,924510,840,565447,565,49502,293,760
5Feb 26, 2024 19:5254,041516,313,264448,541,78002,289,664
6Feb 26, 2024 19:5254,070512,125,920448,781,72402,297,856