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 23, 2022 09:56Robert BurkeRobert BurkeScore: 8,172Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 23, 2022 09:568,14393,734,35466,577,0001,008,0002,277,376
2Jul 23, 2022 09:568,16393,857,55366,759,000996,0002,445,312
3Jul 23, 2022 09:568,16891,607,40166,797,000996,0002,449,408
4Jul 23, 2022 09:568,17092,379,57266,818,000997,0002,453,504
5Jul 23, 2022 09:568,17198,231,40565,822,0001,994,0002,277,376
6Jul 23, 2022 09:568,17196,496,47265,826,0001,994,0002,449,408
7Jul 23, 2022 09:568,17194,419,80765,827,0001,994,0002,449,408
8Jul 23, 2022 09:568,17292,574,55765,834,0001,994,0002,453,504
9Jul 23, 2022 09:568,17290,772,40965,834,0001,994,0002,277,376
10Jul 23, 2022 09:568,17292,852,23465,830,0001,994,0002,445,312
11Jul 23, 2022 09:568,17392,994,91165,839,0001,995,0002,277,376
12Jul 23, 2022 09:568,17489,639,58065,847,0001,995,0002,453,504
13Jul 23, 2022 09:569,647134,616,81880,073,34002,199,552
14Jul 23, 2022 09:569,659133,532,56780,170,14602,195,456
15Jul 23, 2022 09:569,665147,872,21280,221,77402,191,360