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 listJun 7, 2024 11:36GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 7, 2024 11:3400000Error: No answer to stdout. Died or killed?
2Jun 7, 2024 11:3400000Error: expected "53682285426939755 ", got "53682242477266795 "stderr
3Jun 7, 2024 11:3400000Error: expected "53688573598991535 ", got "53688573598925999 "stderr
4Jun 7, 2024 11:3600000Error: expected "53683906881678187 ", got "53683906875124587 "stderr
5Jun 7, 2024 11:3600000Error: expected "53692919831410969 ", got "53692919765874969 "stderr
6Jun 7, 2024 11:3443,991429,503,314365,123,51302,236,416
7Jun 7, 2024 11:3644,003434,656,794365,222,93502,236,416
8Jun 7, 2024 11:3644,113434,106,836366,137,16002,248,704
9Jun 7, 2024 11:3444,143428,325,491366,390,52002,232,320
10Jun 7, 2024 11:3644,205429,705,370366,897,67202,228,224
11Jun 7, 2024 11:3644,395431,853,423368,478,08102,240,512
12Jun 7, 2024 11:3644,414431,443,586368,632,77002,248,704
13Jun 7, 2024 11:3644,421421,800,861368,694,14902,240,512
14Jun 7, 2024 11:3445,172448,565,350374,929,95302,236,416