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 10:33Matt StuchlikMatt StuchlikScore: 15,555Success
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 10:3315,511154,582,791126,749,0001,996,0002,285,568
2Apr 14, 2024 10:3315,516154,866,207127,782,000998,0002,527,232
3Apr 14, 2024 10:3315,546155,119,921127,031,0002,000,0002,285,568
4Apr 14, 2024 10:3315,548156,771,324127,045,0002,000,0002,277,376
5Apr 14, 2024 10:3315,551157,417,940127,072,0002,001,0002,277,376
6Apr 14, 2024 10:3315,554154,423,293127,095,0002,001,0002,273,280
7Apr 14, 2024 10:3315,555154,126,303127,104,0002,001,0002,285,568
8Apr 14, 2024 10:3315,580153,548,677127,309,0002,004,0002,285,568
9Apr 14, 2024 10:3316,044154,591,483131,165,0002,002,0002,277,376
10Apr 14, 2024 10:3320,119240,146,199166,985,16802,285,568
11Apr 14, 2024 10:3320,142234,296,952167,180,60902,289,664
12Apr 14, 2024 10:3320,152245,489,922167,257,84202,289,664