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 listOct 11, 2024 00:56Joad NacerJoad NacerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2024 00:5100000Error: expected "53689074028335197 ", got "53689073217051996"stderr
2Oct 11, 2024 00:515,58472,298,87644,334,0002,015,0002,334,720
3Oct 11, 2024 00:565,58972,157,68944,372,0002,016,0002,334,720
4Oct 11, 2024 00:565,59270,284,12743,385,0003,026,0002,510,848
5Oct 11, 2024 00:515,59968,122,55543,442,0003,030,0002,334,720
6Oct 11, 2024 00:565,60766,041,35843,504,0003,035,0002,338,816
7Oct 11, 2024 00:515,64467,392,67143,856,0002,990,0002,510,848
8Oct 11, 2024 00:565,64668,395,36444,871,0001,994,0002,506,752
9Oct 11, 2024 00:515,64770,861,02944,877,0001,994,0002,510,848
10Oct 11, 2024 00:565,64967,702,35844,890,0001,995,0002,330,624
11Oct 11, 2024 00:515,65066,306,13543,898,0002,993,0002,330,624
12Oct 11, 2024 00:565,65268,362,52844,918,0001,996,0002,330,624
13Oct 11, 2024 00:515,79377,565,68346,082,0002,003,0002,510,848