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 08:37Matt StuchlikMatt StuchlikScore: 20,664Success
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 08:3719,144187,613,614156,900,0001,998,0002,285,568
2Apr 10, 2024 08:3720,449195,826,368168,731,000998,0002,285,568
3Apr 10, 2024 08:3720,453196,287,698167,762,0001,997,0002,285,568
4Apr 10, 2024 08:3720,468195,808,466167,886,0001,998,0002,277,376
5Apr 10, 2024 08:3720,620194,215,589169,146,0002,001,0002,285,568
6Apr 10, 2024 08:3720,623194,492,766169,168,0002,001,0002,285,568
7Apr 10, 2024 08:3720,664199,323,749170,507,0001,002,0002,285,568
8Apr 10, 2024 08:3720,666203,019,725171,528,00002,277,376
9Apr 10, 2024 08:3720,693203,468,126170,751,000998,0002,273,280
10Apr 10, 2024 08:3721,191230,647,912175,886,15402,289,664
11Apr 10, 2024 08:3721,213240,925,225176,068,27102,293,760
12Apr 10, 2024 08:3721,807238,291,907181,002,08302,285,568