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 listMay 13, 2024 22:17Joad NacerJoad NacerScore: 8,018Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 13, 2024 22:177,95794,685,40764,041,0002,001,0002,285,568
2May 13, 2024 22:177,958127,814,80366,048,00002,277,376
3May 13, 2024 22:177,96295,679,24265,082,0001,001,0002,285,568
4May 13, 2024 22:177,97187,955,76864,159,0002,004,0002,273,280
5May 13, 2024 22:177,98494,059,86065,263,0001,004,0002,285,568
6May 13, 2024 22:177,98792,326,03264,283,0002,008,0002,285,568
7May 13, 2024 22:177,99193,121,95365,324,0001,004,0002,265,088
8May 13, 2024 22:178,018137,282,67866,553,02102,277,376
9May 13, 2024 22:178,042143,053,41166,752,72902,277,376
10May 13, 2024 22:178,06992,455,30164,975,0001,999,0002,285,568
11May 13, 2024 22:178,08690,228,24465,110,0002,003,0002,392,064
12May 13, 2024 22:178,37092,314,94868,468,0001,006,0002,273,280
13May 13, 2024 22:178,92996,968,87473,112,0001,001,0002,269,184
14May 13, 2024 22:178,96993,629,18273,434,0001,005,0002,260,992
15May 13, 2024 22:179,03197,481,59073,961,000999,0002,260,992