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 11, 2025 18:29vahookvahookError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 11, 2025 18:2200000Error: expected "53690841694032535 ", got "53691279358493529 "stderr
2May 11, 2025 18:2500000Error: expected "53691449988989918 ", got "53691876035231491 "stderr
3May 11, 2025 18:294,91868,742,08038,825,0001,991,0002,416,640
4May 11, 2025 18:294,92166,410,86738,851,0001,992,0002,273,280
5May 11, 2025 18:294,94465,289,14338,037,0003,002,0002,273,280
6May 11, 2025 18:294,95365,189,69538,104,0003,008,0002,424,832
7May 11, 2025 18:294,96566,148,95438,191,0003,015,0002,428,928
8May 11, 2025 18:294,97062,815,22337,223,0004,024,0002,420,736
9May 11, 2025 18:294,97465,529,20238,262,0003,020,0002,273,280
10May 11, 2025 18:294,98065,368,48137,305,0004,032,0002,424,832
11May 11, 2025 18:294,99362,868,84639,423,0002,021,0002,424,832
12May 11, 2025 18:294,99862,706,50838,451,0003,035,0002,424,832
13May 11, 2025 18:295,04064,388,71238,848,0002,988,0002,428,928
14May 11, 2025 18:295,10869,559,46837,351,0005,047,0002,273,280