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 29, 2024 17:37GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 29, 2024 17:3800000Error: expected "53685035015267108 ", got "53685035015201572 "
2May 29, 2024 17:3700000Error: expected "53684686162821746 ", got "53684686156268146 "
3May 29, 2024 17:3700000Error: expected "53683642624710883 ", got "53683642624645347 "
4May 29, 2024 17:376,01474,443,87348,922,000998,0002,289,664
5May 29, 2024 17:376,02076,114,60248,970,000999,0002,289,664
6May 29, 2024 17:376,02473,694,49047,997,0001,999,0002,289,664
7May 29, 2024 17:376,03074,762,42648,051,0002,002,0002,289,664
8May 29, 2024 17:376,03775,549,48448,103,0002,004,0002,281,472
9May 29, 2024 17:376,05772,599,97448,264,0002,011,0002,527,232
10May 29, 2024 17:376,06276,859,34549,309,0001,006,0002,289,664
11May 29, 2024 17:376,06675,263,32048,333,0002,013,0002,277,376
12May 29, 2024 17:376,08278,586,62449,475,0001,009,0002,289,664
13May 29, 2024 17:376,09472,462,35549,573,0001,011,0002,392,064
14May 29, 2024 17:376,14972,783,28049,033,0002,001,0002,269,184
15May 29, 2024 17:376,19373,796,21150,395,0001,007,0002,265,088
16May 29, 2024 17:376,222126,226,69851,639,31502,301,952
17May 29, 2024 17:376,233109,512,10751,736,36702,301,952
18May 29, 2024 17:376,329112,138,99352,531,36302,297,856