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 7, 2024 10:18Joad NacerJoad NacerScore: 7,910Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 7, 2024 10:187,686139,761,23863,792,85602,277,376
2May 7, 2024 10:187,86886,051,00764,301,0001,004,0002,527,232
3May 7, 2024 10:187,87595,625,11265,363,00002,285,568
4May 7, 2024 10:187,87691,323,56763,363,0002,011,0002,285,568
5May 7, 2024 10:187,892132,067,22365,506,34902,273,280
6May 7, 2024 10:187,89691,333,07164,531,0001,008,0002,285,568
7May 7, 2024 10:187,90695,231,51864,614,0001,009,0002,260,992
8May 7, 2024 10:187,910128,836,43565,649,76302,273,280
9May 7, 2024 10:187,93092,607,22764,820,000997,0002,285,568
10May 7, 2024 10:188,10391,018,61665,250,0002,007,0002,265,088
11May 7, 2024 10:188,45395,730,95169,157,0001,002,0002,269,184
12May 7, 2024 10:188,77697,733,76771,840,000997,0002,260,992
13May 7, 2024 10:188,79396,604,25770,986,0001,999,0002,269,184
14May 7, 2024 10:188,79798,525,90272,017,0001,000,0002,273,280
15May 7, 2024 10:188,813101,824,65571,147,0002,004,0002,285,568