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 6, 2023 05:12sliceteamsliceteamScore: 8,807Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 6, 2023 05:128,344128,690,73869,253,96002,265,088
2Nov 6, 2023 05:128,353123,081,55969,331,75302,256,896
3Nov 6, 2023 05:128,376127,832,58069,517,61302,256,896
4Nov 6, 2023 05:128,79092,534,11971,959,000999,0002,379,776
5Nov 6, 2023 05:128,797100,158,81072,013,0001,000,0002,281,472
6Nov 6, 2023 05:128,80495,506,16872,076,0001,001,0002,375,680
7Nov 6, 2023 05:128,806103,998,87872,090,0001,001,0002,281,472
8Nov 6, 2023 05:128,80795,141,42072,097,0001,001,0002,281,472
9Nov 6, 2023 05:128,81295,614,01971,135,0002,003,0002,281,472
10Nov 6, 2023 05:128,82797,397,17173,260,00002,281,472
11Nov 6, 2023 05:128,83096,141,07271,281,0002,007,0002,281,472
12Nov 6, 2023 05:128,83597,468,52972,328,0001,004,0002,379,776
13Nov 6, 2023 05:128,86199,905,76773,543,00002,281,472
14Nov 6, 2023 05:128,89197,645,01472,796,000997,0002,387,968
15Nov 6, 2023 05:128,94497,342,57173,233,0001,003,0002,383,872