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 listDec 11, 2023 04:30sliceteamsliceteamScore: 8,529Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 11, 2023 04:308,10089,403,27566,225,0001,003,0002,457,600
2Dec 11, 2023 04:308,16996,721,17166,808,000997,0002,265,088
3Dec 11, 2023 04:308,48493,701,77668,405,0002,011,0002,510,848
4Dec 11, 2023 04:308,49497,804,69569,491,0001,007,0002,437,120
5Dec 11, 2023 04:308,49596,702,01170,508,00002,347,008
6Dec 11, 2023 04:308,50596,765,01167,563,0003,025,0002,265,088
7Dec 11, 2023 04:308,52198,519,74369,711,0001,010,0002,265,088
8Dec 11, 2023 04:308,52998,574,26468,798,0001,994,0002,265,088
9Dec 11, 2023 04:308,53297,931,07068,823,0001,994,0002,478,080
10Dec 11, 2023 04:308,53396,761,09369,827,000997,0002,506,752
11Dec 11, 2023 04:308,566133,409,70071,093,75402,248,704
12Dec 11, 2023 04:308,60598,277,27970,419,0001,005,0002,265,088
13Dec 11, 2023 04:308,622139,502,51571,566,12002,252,800
14Dec 11, 2023 04:308,668129,588,13471,946,13702,265,088
15Dec 11, 2023 04:308,891103,393,35272,795,000997,0002,490,368