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 8, 2023 10:58Robert BurkeRobert BurkeScore: 7,577Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 8, 2023 10:587,50383,920,72561,270,0001,004,0002,277,376
2Nov 8, 2023 10:587,53286,794,18561,506,0001,008,0002,420,736
3Nov 8, 2023 10:587,56891,474,73761,816,000997,0002,433,024
4Nov 8, 2023 10:587,56887,737,19061,817,000997,0002,519,040
5Nov 8, 2023 10:587,57383,033,75461,855,000997,0002,539,520
6Nov 8, 2023 10:587,57389,325,18062,858,00002,277,376
7Nov 8, 2023 10:587,57589,775,66861,873,000997,0002,277,376
8Nov 8, 2023 10:587,57785,852,13960,897,0001,996,0002,539,520
9Nov 8, 2023 10:587,57883,646,89061,900,000998,0002,433,024
10Nov 8, 2023 10:587,58185,408,98660,928,0001,997,0002,277,376
11Nov 8, 2023 10:587,58685,692,77261,962,000999,0002,424,832
12Nov 8, 2023 10:587,59683,868,66961,042,0002,001,0002,277,376
13Nov 8, 2023 10:587,849117,420,63665,148,60002,170,880
14Nov 8, 2023 10:587,862119,583,31565,257,37102,301,952
15Nov 8, 2023 10:587,888118,673,61165,468,61502,301,952