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 03:08sliceteamsliceteamScore: 7,850Success
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 03:087,82091,908,82862,911,0001,997,0002,400,256
2Nov 6, 2023 03:087,83492,772,56664,022,0001,000,0002,273,280
3Nov 6, 2023 03:087,83495,512,75763,022,0002,000,0002,273,280
4Nov 6, 2023 03:087,83888,119,43263,051,0002,001,0002,404,352
5Nov 6, 2023 03:087,84387,769,38163,091,0002,002,0002,392,064
6Nov 6, 2023 03:087,84490,657,88464,106,0001,001,0002,273,280
7Nov 6, 2023 03:087,84485,965,47063,106,0002,003,0002,273,280
8Nov 6, 2023 03:087,85090,232,62563,149,0002,004,0002,273,280
9Nov 6, 2023 03:087,85287,201,00263,169,0002,005,0002,273,280
10Nov 6, 2023 03:087,86287,657,96363,250,0002,007,0002,273,280
11Nov 6, 2023 03:087,86695,714,12763,280,0002,008,0002,273,280
12Nov 6, 2023 03:087,87687,972,04365,374,00002,273,280
13Nov 6, 2023 03:088,479124,147,56770,374,34802,265,088
14Nov 6, 2023 03:088,567152,708,31771,102,55302,281,472
15Nov 6, 2023 03:088,569138,316,89271,123,39302,285,568