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 listJan 1, 2023 16:06Jack FrigaardJack FrigaardScore: 4,934Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 1, 2023 16:064,92070,856,84037,851,0002,988,0002,519,040
2Jan 1, 2023 16:064,92069,741,24238,848,0001,992,0002,260,992
3Jan 1, 2023 16:064,92168,035,36139,850,000996,0002,453,504
4Jan 1, 2023 16:064,92765,015,21637,906,0002,992,0002,297,856
5Jan 1, 2023 16:064,93166,218,81537,933,0002,994,0002,260,992
6Jan 1, 2023 16:064,93166,538,76637,936,0002,994,0002,453,504
7Jan 1, 2023 16:064,93266,569,03937,943,0002,995,0002,297,856
8Jan 1, 2023 16:064,93468,474,41837,957,0002,996,0002,457,600
9Jan 1, 2023 16:064,94264,724,08338,019,0003,001,0002,293,760
10Jan 1, 2023 16:064,98065,465,46938,308,0003,024,0002,519,040
11Jan 1, 2023 16:064,98568,194,17739,355,0002,018,0002,260,992
12Jan 1, 2023 16:065,003107,405,84841,524,10102,220,032
13Jan 1, 2023 16:065,01068,718,37539,555,0002,028,0002,260,992
14Jan 1, 2023 16:065,035105,783,49041,792,82202,211,840
15Jan 1, 2023 16:065,036108,676,81041,796,93202,203,648