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 15, 2024 07:24Matt StuchlikMatt StuchlikScore: 17,337Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 15, 2024 07:2616,296213,824,480135,253,10202,211,840
2Apr 15, 2024 07:2716,304202,495,786135,325,57402,220,032
3Apr 15, 2024 07:2716,313194,833,727135,401,36402,207,744
4Apr 15, 2024 07:2416,320207,395,026135,457,88602,215,936
5Apr 15, 2024 07:2416,328194,834,433135,521,73402,211,840
6Apr 15, 2024 07:2416,329209,638,397135,532,06402,211,840
7Apr 15, 2024 07:2716,330199,749,489135,535,54502,220,032
8Apr 15, 2024 07:2616,333199,174,991135,565,96202,215,936
9Apr 15, 2024 07:2616,358200,775,719135,772,82102,215,936
10Apr 15, 2024 07:2417,337172,567,864142,902,000999,0002,342,912
11Apr 15, 2024 07:2417,343176,418,667141,949,0001,999,0002,330,624
12Apr 15, 2024 07:2417,345169,123,049141,968,0001,999,0002,330,624
13Apr 15, 2024 07:2417,345171,258,722141,968,0001,999,0002,330,624
14Apr 15, 2024 07:2417,346170,445,546141,975,0001,999,0002,342,912
15Apr 15, 2024 07:2417,350174,549,622142,006,0002,000,0002,330,624
16Apr 15, 2024 07:2417,350171,137,383142,005,0002,000,0002,502,656
17Apr 15, 2024 07:2417,355177,974,215142,050,0002,000,0002,342,912
18Apr 15, 2024 07:2417,365169,045,563142,128,0002,001,0002,334,720