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 18, 2024 12:39Matt StuchlikMatt StuchlikError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2024 12:3900000Error: expected "53679996807385546 ", got "67176450 285220872 33620481 537396256 67240450 134287368 2181054496 2099264 138414081 553656324 2155888768 2148534336 33620034 272637956 67240066 68159490 69207041 135267332 269488136 134352900 545263624 13428...