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 listNov 25, 2023 19:13Robert BurkeRobert BurkeScore: 7,979Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 25, 2023 19:137,718115,037,60264,057,40102,170,880
2Nov 25, 2023 19:137,729122,459,41064,154,40802,293,760
3Nov 25, 2023 19:137,780132,698,22364,575,74202,170,880
4Nov 25, 2023 19:137,93791,198,60764,876,000998,0002,277,376
5Nov 25, 2023 19:137,95695,266,82965,035,0001,000,0002,277,376
6Nov 25, 2023 19:137,96983,931,29065,142,0001,002,0002,519,040
7Nov 25, 2023 19:137,97489,362,27865,182,0001,002,0002,277,376
8Nov 25, 2023 19:137,97991,385,90064,218,0002,006,0002,433,024
9Nov 25, 2023 19:137,98989,868,18365,305,0001,004,0002,539,520
10Nov 25, 2023 19:137,99088,503,16565,312,0001,004,0002,277,376
11Nov 25, 2023 19:137,99788,525,25065,370,0001,005,0002,539,520
12Nov 25, 2023 19:138,00086,196,18865,398,0001,006,0002,277,376
13Nov 25, 2023 19:138,01092,016,04066,479,00002,428,928
14Nov 25, 2023 19:138,10088,400,35166,230,0001,003,0002,510,848
15Nov 25, 2023 19:138,13695,719,05067,528,00002,539,520