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:20Matt StuchlikMatt StuchlikScore: 23,537Success
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:2022,800249,164,456189,236,79302,293,760
2Apr 10, 2024 07:2023,100222,189,946189,733,0001,997,0002,273,280
3Apr 10, 2024 07:2023,102257,455,974191,747,34002,289,664
4Apr 10, 2024 07:2023,165257,284,147192,269,18602,289,664
5Apr 10, 2024 07:2023,515219,921,801193,175,0002,001,0002,285,568
6Apr 10, 2024 07:2023,515218,494,093193,170,0002,001,0002,285,568
7Apr 10, 2024 07:2023,537217,399,046193,350,0002,003,0002,265,088
8Apr 10, 2024 07:2023,539217,759,115194,376,0001,001,0002,277,376
9Apr 10, 2024 07:2023,558226,482,287194,527,0001,002,0002,277,376
10Apr 10, 2024 07:2023,582221,552,491193,730,0001,997,0002,285,568
11Apr 10, 2024 07:2023,594220,121,233193,836,0001,998,0002,277,376
12Apr 10, 2024 07:2023,686221,072,739195,589,0001,003,0002,269,184