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 listJul 30, 2022 17:21Robert BurkeRobert BurkeScore: 8,180Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 30, 2022 17:218,14793,691,37466,610,0001,009,0002,420,736
2Jul 30, 2022 17:218,16791,706,75167,786,00002,420,736
3Jul 30, 2022 17:218,16893,637,39666,799,000997,0002,437,120
4Jul 30, 2022 17:218,17692,517,91266,861,000997,0002,539,520
5Jul 30, 2022 17:218,17791,832,69465,872,0001,996,0002,277,376
6Jul 30, 2022 17:218,17994,269,63465,893,0001,996,0002,277,376
7Jul 30, 2022 17:218,17994,468,93166,887,000998,0002,428,928
8Jul 30, 2022 17:218,18091,844,23865,894,0001,996,0002,277,376
9Jul 30, 2022 17:218,18495,600,11166,926,000998,0002,428,928
10Jul 30, 2022 17:218,18791,812,46666,952,000999,0002,437,120
11Jul 30, 2022 17:218,18989,526,98865,972,0001,999,0002,433,024
12Jul 30, 2022 17:218,24592,036,14268,433,00002,539,520
13Jul 30, 2022 17:218,793132,928,20672,981,02102,301,952
14Jul 30, 2022 17:218,794137,956,05872,988,28102,293,760
15Jul 30, 2022 17:218,795135,647,68072,999,66102,170,880