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 07:29Matt StuchlikMatt StuchlikScore: 23,856Success
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 07:2919,828231,872,473164,574,76902,285,568
2Apr 10, 2024 07:2920,432230,484,445169,586,24502,281,472
3Apr 10, 2024 07:2920,452233,075,116169,748,34902,285,568
4Apr 10, 2024 07:2923,848221,002,405196,943,000999,0002,285,568
5Apr 10, 2024 07:2923,853220,228,529196,978,000999,0002,285,568
6Apr 10, 2024 07:2923,854224,787,604195,988,0001,999,0002,285,568
7Apr 10, 2024 07:2923,856221,449,321196,008,0002,000,0002,285,568
8Apr 10, 2024 07:2923,856223,716,348195,006,0003,000,0002,285,568
9Apr 10, 2024 07:2923,859218,779,384196,031,0002,000,0002,371,584
10Apr 10, 2024 07:2923,873221,038,691196,147,0002,001,0002,273,280
11Apr 10, 2024 07:2923,873225,271,828196,149,0002,001,0002,277,376
12Apr 10, 2024 07:2923,883220,380,207196,230,0002,002,0002,363,392