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 listApr 28, 2024 13:14Steve HanSteve HanScore: 19,685Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2024 13:1718,762213,960,958155,722,96202,297,856
2Apr 28, 2024 13:1418,801223,626,683156,049,94402,289,664
3Apr 28, 2024 13:1518,825212,127,229156,249,53902,301,952
4Apr 28, 2024 13:1518,843214,256,776156,397,54002,301,952
5Apr 28, 2024 13:1519,052239,768,802158,130,58602,297,856
6Apr 28, 2024 13:1719,654231,520,467163,129,44302,174,976
7Apr 28, 2024 13:1519,685219,220,417163,386,60002,306,048
8Apr 28, 2024 13:1419,686224,802,152163,394,93302,293,760
9Apr 28, 2024 13:1419,888228,267,903165,069,14402,306,048
10Apr 28, 2024 13:1519,952221,844,965165,601,23802,174,976
11Apr 28, 2024 13:1519,969225,238,594165,741,78302,179,072
12Apr 28, 2024 13:1719,979235,238,305165,829,68402,297,856