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 listAug 22, 2023 11:57matsuoka-601matsuoka-601Score: 10,577Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 22, 2023 11:579,686104,138,31479,390,0001,004,0002,277,376
2Aug 22, 2023 11:579,695108,768,12579,466,0001,005,0002,285,568
3Aug 22, 2023 11:5710,297106,563,42484,459,0001,005,0002,285,568
4Aug 22, 2023 11:5710,373145,325,81686,095,28802,285,568
5Aug 22, 2023 11:5710,421108,528,35485,489,0001,005,0002,519,040
6Aug 22, 2023 11:5710,455121,254,60684,780,0001,994,0002,519,040
7Aug 22, 2023 11:5710,542147,799,91987,500,66702,277,376
8Aug 22, 2023 11:5710,577119,402,07685,791,0001,995,0002,510,848
9Aug 22, 2023 11:5710,579157,401,72287,804,74802,285,568
10Aug 22, 2023 11:5710,618107,917,95586,127,0002,002,0002,285,568
11Aug 22, 2023 11:5710,624110,305,66386,178,0002,004,0002,375,680
12Aug 22, 2023 11:5710,664110,902,77487,509,0001,005,0002,260,992
13Aug 22, 2023 11:5710,730114,402,17388,056,0001,000,0002,285,568
14Aug 22, 2023 11:5710,823120,520,53387,838,0001,996,0002,285,568
15Aug 22, 2023 11:5710,862112,857,25888,153,0002,003,0002,347,008