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 12:54Steve HanSteve HanScore: 20,612Success
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 12:5719,723233,666,168163,698,47902,301,952
2Apr 28, 2024 12:5719,730226,836,152163,755,30302,297,856
3Apr 28, 2024 12:5419,733221,915,573163,783,87902,293,760
4Apr 28, 2024 12:5419,743225,195,752163,863,52802,301,952
5Apr 28, 2024 12:5419,758228,917,480163,989,63202,301,952
6Apr 28, 2024 12:5419,788225,502,136164,237,58902,179,072
7Apr 28, 2024 12:5519,805222,551,931164,379,69202,179,072
8Apr 28, 2024 12:5519,858238,551,639164,823,27002,301,952
9Apr 28, 2024 12:5520,601226,884,914170,985,28202,301,952
10Apr 28, 2024 12:5520,603242,537,198171,006,02102,179,072
11Apr 28, 2024 12:5420,612239,617,990171,079,18802,301,952
12Apr 28, 2024 12:5520,644231,095,817171,341,31802,297,856
13Apr 28, 2024 12:5520,668232,148,533171,543,77402,301,952
14Apr 28, 2024 12:5520,688241,070,309171,712,45602,179,072
15Apr 28, 2024 12:5420,721226,945,136171,986,46702,301,952
16Apr 28, 2024 12:5420,744235,466,199172,172,69502,293,760
17Apr 28, 2024 12:5420,744239,175,877172,177,35202,297,856
18Apr 28, 2024 12:5420,787234,138,906172,532,03902,301,952
19Apr 28, 2024 12:5520,821230,125,819172,816,58702,293,760
20Apr 28, 2024 12:5520,837241,909,676172,948,73602,252,800
21Apr 28, 2024 12:5720,900232,928,778173,473,00602,297,856