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 21, 2022 06:25Robert BurkeRobert BurkeScore: 8,246Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 21, 2022 06:258,17495,019,01666,850,000997,0002,437,120
2Jul 21, 2022 06:258,17489,628,55466,844,000997,0002,277,376
3Jul 21, 2022 06:258,18589,420,22765,936,0001,998,0002,424,832
4Jul 21, 2022 06:258,23696,747,93468,359,00002,428,928
5Jul 21, 2022 06:258,24194,940,38568,400,00002,539,520
6Jul 21, 2022 06:258,24492,010,81168,427,00002,269,184
7Jul 21, 2022 06:258,24595,594,50268,436,00002,539,520
8Jul 21, 2022 06:258,24688,911,85668,439,00002,428,928
9Jul 21, 2022 06:258,24895,460,08268,455,00002,277,376
10Jul 21, 2022 06:258,25088,540,25167,465,0001,006,0002,535,424
11Jul 21, 2022 06:258,25291,589,86968,492,00002,277,376
12Jul 21, 2022 06:258,25592,117,85068,514,00002,277,376
13Jul 21, 2022 06:258,716137,303,37372,342,17702,293,760
14Jul 21, 2022 06:258,721129,886,52072,382,91002,297,856
15Jul 21, 2022 06:258,726130,138,60272,425,27102,174,976