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 29, 2024 17:56Steve HanSteve HanScore: 16,729Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2024 17:5615,976196,008,247132,598,46302,301,952
2Apr 29, 2024 17:5716,014209,756,610132,914,64302,297,856
3Apr 29, 2024 17:5616,038190,567,217133,112,27402,297,856
4Apr 29, 2024 17:5716,039194,518,128133,125,44302,297,856
5Apr 29, 2024 17:5616,066198,965,052133,347,76802,306,048
6Apr 29, 2024 17:5716,079187,510,322133,452,51802,301,952
7Apr 29, 2024 17:5816,083188,901,353133,492,27802,301,952
8Apr 29, 2024 17:5716,083185,403,117133,491,78102,297,856
9Apr 29, 2024 17:5816,693203,686,620138,549,27202,179,072
10Apr 29, 2024 17:5716,717204,527,803138,751,08402,293,760
11Apr 29, 2024 17:5716,729201,174,648138,851,74402,301,952
12Apr 29, 2024 17:5716,743216,764,874138,968,21602,289,664
13Apr 29, 2024 17:5716,747198,982,727139,000,92202,306,048
14Apr 29, 2024 17:5716,751216,394,624139,033,53502,306,048
15Apr 29, 2024 17:5716,752202,893,440139,039,77702,174,976
16Apr 29, 2024 17:5716,755198,216,898139,062,54402,297,856
17Apr 29, 2024 17:5616,790212,070,120139,360,48702,301,952
18Apr 29, 2024 17:5616,807197,240,147139,494,58702,301,952
19Apr 29, 2024 17:5716,826203,666,109139,658,88402,174,976
20Apr 29, 2024 17:5616,844199,091,105139,804,86102,301,952
21Apr 29, 2024 17:5816,854195,764,771139,887,65602,179,072