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 22, 2021 01:32Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 22, 2021 01:3200000Error: expected "53689139053431768 ", got "53689138797531768 "
2Dec 22, 2021 01:3235,571357,752,509295,235,81302,220,032
3Dec 22, 2021 01:3135,579360,524,564295,303,96602,215,936
4Dec 22, 2021 01:3135,588365,295,573295,379,13602,220,032
5Dec 22, 2021 01:3235,588356,790,256295,382,42502,224,128
6Dec 22, 2021 01:3235,606377,657,253295,533,51802,211,840
7Dec 22, 2021 01:3135,615353,306,537295,607,84802,220,032