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 14, 2024 16:22Joad 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 14, 2024 16:2300000Error: expected "53690436908361124 ", got "53690443353296944 "stderr
2Oct 14, 2024 16:224,22863,800,79733,087,0002,005,0002,306,048
3Oct 14, 2024 16:224,24057,708,81932,173,0003,016,0002,293,760
4Oct 14, 2024 16:224,24660,514,41835,238,00002,273,280
5Oct 14, 2024 16:224,29665,754,50434,642,0001,018,0002,306,048
6Oct 14, 2024 16:224,32061,255,70832,866,0002,987,0002,301,952
7Oct 14, 2024 16:224,32260,438,99834,874,000996,0002,531,328
8Oct 14, 2024 16:224,32855,947,06734,922,000997,0002,301,952
9Oct 14, 2024 16:224,51455,693,63336,454,0001,012,0002,297,856
10Oct 14, 2024 16:224,60764,220,87936,226,0002,012,0002,535,424
11Oct 14, 2024 16:224,65965,597,73237,651,0001,017,0002,531,328
12Oct 14, 2024 16:224,70257,651,14037,023,0002,001,0002,301,952
13Oct 14, 2024 16:225,07560,583,42241,123,0001,003,0002,392,064