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 10, 2024 18:31Matt StuchlikMatt StuchlikError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 10, 2024 18:3100000Error: expected "53689116658161006 ", got "53689116632561006 "
2Apr 10, 2024 18:2718,862237,460,870156,555,32302,289,664
3Apr 10, 2024 18:3118,865224,107,003156,579,70702,297,856
4Apr 10, 2024 18:2718,867223,665,178156,597,11702,297,856
5Apr 10, 2024 18:3118,867217,950,321156,592,17902,293,760
6Apr 10, 2024 18:2718,869214,624,126156,611,81102,289,664
7Apr 10, 2024 18:3120,072229,836,892166,596,63202,285,568
8Apr 10, 2024 18:3120,547197,200,540169,535,0001,003,0002,285,568
9Apr 10, 2024 18:3120,551198,820,731167,585,0002,992,0002,301,952
10Apr 10, 2024 18:3120,560197,359,482169,641,0001,003,0002,269,184
11Apr 10, 2024 18:3120,578199,478,966168,800,0001,997,0002,277,376
12Apr 10, 2024 18:3120,581198,034,872168,822,0001,997,0002,285,568
13Apr 10, 2024 18:3120,581194,692,595168,827,0001,997,0002,277,376
14Apr 10, 2024 18:3120,586194,306,898168,864,0001,998,0002,277,376
15Apr 10, 2024 18:3120,596193,857,635169,944,000999,0002,285,568
16Apr 10, 2024 18:3120,613194,912,455169,089,0002,001,0002,277,376