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:27Matt StuchlikMatt StuchlikScore: 19,553Success
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:2718,375219,957,120152,511,21202,285,568
2Apr 14, 2024 09:2718,814211,861,806156,155,26202,285,568
3Apr 14, 2024 09:2718,859215,481,165156,527,97002,289,664
4Apr 14, 2024 09:2719,283186,798,072159,045,0001,000,0002,367,488
5Apr 14, 2024 09:2719,491188,353,576159,776,0001,997,0002,285,568
6Apr 14, 2024 09:2719,539186,266,698161,169,0001,001,0002,285,568
7Apr 14, 2024 09:2719,553184,916,805160,285,0002,003,0002,531,328
8Apr 14, 2024 09:2719,615185,278,790160,807,0001,997,0002,285,568
9Apr 14, 2024 09:2719,616186,336,898160,817,0001,997,0002,277,376
10Apr 14, 2024 09:2719,678187,515,049162,323,0001,001,0002,277,376
11Apr 14, 2024 09:2719,730189,045,082161,762,0001,997,0002,285,568
12Apr 14, 2024 09:2719,731190,587,642162,768,000998,0002,273,280