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 27, 2024 13:54GraceGraceScore: 6,637Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 27, 2024 13:546,49685,045,58052,920,000998,0002,494,464
2May 27, 2024 13:546,49978,502,05652,942,000998,0002,387,968
3May 27, 2024 13:546,50379,066,88552,978,000999,0002,387,968
4May 27, 2024 13:546,50485,390,65751,984,0001,999,0002,400,256
5May 27, 2024 13:546,50885,928,94052,015,0002,000,0002,260,992
6May 27, 2024 13:546,50981,725,08353,026,0001,000,0002,252,800
7May 27, 2024 13:546,51179,918,61653,039,0001,000,0002,260,992
8May 27, 2024 13:546,63082,669,50753,025,0002,000,0002,260,992
9May 27, 2024 13:546,63779,236,28153,081,0002,003,0002,519,040
10May 27, 2024 13:546,63780,440,17553,087,0002,003,0002,387,968
11May 27, 2024 13:546,64079,778,19354,114,0001,002,0002,260,992
12May 27, 2024 13:546,65079,621,35253,192,0002,007,0002,379,776
13May 27, 2024 13:546,822146,900,68856,623,68302,277,376
14May 27, 2024 13:546,828117,332,95556,670,00802,273,280
15May 27, 2024 13:546,833113,534,21956,712,05802,269,184
16May 27, 2024 13:546,834115,890,99356,724,27102,265,088
17May 27, 2024 13:546,844107,836,49956,803,57202,273,280
18May 27, 2024 13:546,849127,165,72556,844,14502,269,184