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 28, 2024 00:13Joad NacerJoad NacerScore: 8,939Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2024 00:138,544134,580,17670,918,85502,277,376
2Apr 28, 2024 00:138,605125,862,11071,419,99202,260,992
3Apr 28, 2024 00:138,654141,481,70671,825,99802,252,800
4Apr 28, 2024 00:138,90198,644,42071,884,0001,996,0002,285,568
5Apr 28, 2024 00:138,90497,905,47371,904,0001,997,0002,265,088
6Apr 28, 2024 00:138,90798,997,07472,933,000999,0002,285,568
7Apr 28, 2024 00:138,910101,739,21371,951,0001,998,0002,285,568
8Apr 28, 2024 00:138,93997,511,90772,192,0002,005,0002,269,184
9Apr 28, 2024 00:139,06798,500,34173,254,0002,006,0002,285,568
10Apr 28, 2024 00:139,082100,299,43273,373,0002,010,0002,273,280
11Apr 28, 2024 00:139,527101,780,89277,072,0002,001,0002,363,392
12Apr 28, 2024 00:139,990104,356,98280,922,0001,998,0002,265,088
13Apr 28, 2024 00:139,991106,259,08881,928,000999,0002,285,568
14Apr 28, 2024 00:1310,035106,725,98581,286,0002,007,0002,260,992
15Apr 28, 2024 00:1310,329111,028,72085,729,00002,269,184