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 20, 2024 03:19zielajzielajScore: 3,531Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 20, 2024 03:193,50051,263,01327,051,0002,003,0002,523,136
2Nov 20, 2024 03:193,50549,021,12027,086,0002,006,0002,383,872
3Nov 20, 2024 03:193,50661,760,05427,093,0002,006,0002,379,776
4Nov 20, 2024 03:193,51358,063,29427,148,0002,010,0002,527,232
5Nov 20, 2024 03:193,51749,894,37327,181,0002,013,0002,523,136
6Nov 20, 2024 03:193,52147,776,08227,206,0002,015,0002,383,872
7Nov 20, 2024 03:383,52655,398,71127,249,0002,018,0002,527,232
8Nov 20, 2024 03:383,53152,472,48227,286,0002,021,0002,375,680
9Nov 20, 2024 03:193,53453,818,61728,320,0001,011,0002,383,872
10Nov 20, 2024 03:193,54052,110,71728,373,0001,013,0002,527,232
11Nov 20, 2024 03:383,54053,064,18127,358,0002,026,0002,383,872
12Nov 20, 2024 03:193,55755,636,15228,505,0001,018,0002,383,872
13Nov 20, 2024 03:193,67354,787,40129,473,0001,016,0002,387,968
14Nov 20, 2024 03:193,69760,765,09629,661,0001,022,0002,392,064
15Nov 20, 2024 03:193,70051,212,76428,731,0001,981,0002,531,328