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:20Robert BurkeRobert BurkeScore: 8,189Success
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:208,15496,119,92067,681,00002,428,928
2Jul 30, 2022 17:208,16992,840,29167,806,00002,433,024
3Jul 30, 2022 17:208,17092,283,96466,813,000997,0002,277,376
4Jul 30, 2022 17:208,17499,133,68165,852,0001,995,0002,433,024
5Jul 30, 2022 17:208,17691,114,27765,862,0001,995,0002,277,376
6Jul 30, 2022 17:208,17695,243,36366,866,000998,0002,277,376
7Jul 30, 2022 17:208,18390,783,31066,922,000998,0002,277,376
8Jul 30, 2022 17:208,18990,898,46466,969,000999,0002,433,024
9Jul 30, 2022 17:208,189100,190,56666,970,000999,0002,539,520
10Jul 30, 2022 17:208,19089,187,87166,976,000999,0002,433,024
11Jul 30, 2022 17:208,19286,630,71666,993,000999,0002,424,832
12Jul 30, 2022 17:208,19988,986,62167,050,0001,000,0002,424,832
13Jul 30, 2022 17:208,790123,937,91872,958,58502,170,880
14Jul 30, 2022 17:208,793132,242,75972,983,46502,174,976
15Jul 30, 2022 17:208,796123,279,27573,005,54802,297,856