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 14, 2024 09:40Matt StuchlikMatt StuchlikScore: 20,263Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 14, 2024 09:4018,457206,996,786153,190,43402,289,664
2Apr 14, 2024 09:4018,526213,882,278153,769,72702,293,760
3Apr 14, 2024 09:4018,844216,735,205156,405,72402,301,952
4Apr 14, 2024 09:4018,915214,389,381156,991,56702,289,664
5Apr 14, 2024 09:4019,513214,368,453161,957,06402,289,664
6Apr 14, 2024 09:4019,544222,305,982162,213,64102,293,760
7Apr 14, 2024 09:4020,130196,297,623165,078,0002,000,0002,265,088
8Apr 14, 2024 09:4020,150191,699,739165,241,0002,002,0002,285,568
9Apr 14, 2024 09:4020,171192,301,582166,416,0001,002,0002,273,280
10Apr 14, 2024 09:4020,188198,589,536166,559,0001,003,0002,277,376
11Apr 14, 2024 09:4020,243190,797,090166,017,0002,000,0002,273,280
12Apr 14, 2024 09:4020,245191,793,955166,037,0002,000,0002,273,280
13Apr 14, 2024 09:4020,263192,536,345166,184,0002,002,0002,273,280
14Apr 14, 2024 09:4020,274197,591,906166,268,0002,003,0002,277,376
15Apr 14, 2024 09:4020,330194,843,692167,732,0001,004,0002,273,280
16Apr 14, 2024 09:4020,332194,059,445167,761,000998,0002,285,568
17Apr 14, 2024 09:4020,335195,545,293168,782,00002,277,376
18Apr 14, 2024 09:4020,343195,951,283166,849,0001,998,0002,277,376
19Apr 14, 2024 09:4020,349200,603,437166,901,0001,998,0002,285,568
20Apr 14, 2024 09:4020,391193,927,112167,244,0002,002,0002,269,184
21Apr 14, 2024 09:4020,425196,815,062168,524,0001,003,0002,273,280
22Apr 14, 2024 09:4020,433198,068,791168,588,0001,003,0002,277,376
23Apr 14, 2024 09:4020,459194,620,661167,812,0001,997,0002,285,568
24Apr 14, 2024 09:4020,534198,905,491169,427,0001,002,0002,273,280