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 30, 2024 13:48Steve HanSteve HanScore: 24,024Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2024 13:4823,824251,558,779197,741,18502,293,760
2Apr 30, 2024 13:4823,844263,880,983197,906,80202,293,760
3Apr 30, 2024 13:4823,861256,474,533198,045,53702,293,760
4Apr 30, 2024 13:4923,862256,315,309198,058,08602,252,800
5Apr 30, 2024 13:4923,878257,102,000198,190,06402,293,760
6Apr 30, 2024 13:5223,878256,034,531198,183,29102,277,376
7Apr 30, 2024 13:5223,885258,256,886198,248,49402,281,472
8Apr 30, 2024 13:5223,893259,686,976198,315,69802,293,760
9Apr 30, 2024 13:4923,930257,095,625198,619,30202,293,760
10Apr 30, 2024 13:5523,986262,577,650199,084,12202,179,072
11Apr 30, 2024 13:5423,991271,055,772199,121,24902,301,952
12Apr 30, 2024 13:5424,006261,270,228199,248,42902,293,760
13Apr 30, 2024 13:5524,024256,871,853199,398,42702,306,048
14Apr 30, 2024 13:5424,031262,812,937199,460,18902,301,952
15Apr 30, 2024 13:5524,037259,551,797199,511,01202,301,952
16Apr 30, 2024 13:5324,063259,663,083199,724,19102,285,568
17Apr 30, 2024 13:5324,100252,863,552200,032,19402,289,664
18Apr 30, 2024 13:5424,133255,542,125200,299,89902,297,856
19Apr 30, 2024 13:5324,217268,128,427200,998,65202,289,664
20Apr 30, 2024 13:5424,225277,486,595201,066,92702,174,976
21Apr 30, 2024 13:5424,281260,659,016201,534,94002,293,760
22Apr 30, 2024 13:5324,434273,501,144202,802,96302,289,664
23Apr 30, 2024 13:5324,444260,786,075202,885,67502,293,760
24Apr 30, 2024 13:5325,030275,657,743207,745,13502,281,472