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 listDec 28, 2022 14:06Robert BurkeRobert BurkeScore: 7,601Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 14:067,52284,875,47361,429,0001,007,0002,277,376
2Dec 28, 2022 14:067,52581,891,97362,455,00002,424,832
3Dec 28, 2022 14:067,54189,300,83061,585,0001,009,0002,424,832
4Dec 28, 2022 14:067,59186,261,40462,004,0001,000,0002,539,520
5Dec 28, 2022 14:067,59388,085,39562,018,0001,000,0002,433,024
6Dec 28, 2022 14:067,59388,968,62762,025,0001,000,0002,277,376
7Dec 28, 2022 14:067,59684,963,49162,050,0001,000,0002,510,848
8Dec 28, 2022 14:067,60190,756,48362,088,0001,001,0002,433,024
9Dec 28, 2022 14:067,60485,430,36962,115,0001,001,0002,424,832
10Dec 28, 2022 14:067,60783,123,45561,134,0002,004,0002,437,120
11Dec 28, 2022 14:067,61685,515,08262,213,0001,003,0002,539,520
12Dec 28, 2022 14:067,62885,761,59662,310,0001,005,0002,437,120
13Dec 28, 2022 14:068,155145,713,06867,683,63602,297,856
14Dec 28, 2022 14:068,156128,705,88167,693,03302,301,952
15Dec 28, 2022 14:068,161125,345,52067,733,13402,297,856