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 listJun 6, 2024 09:25matsuoka-601matsuoka-601Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 6, 2024 09:2500000Error: expected "53680420675393475 ", got "820814774 -1554019133 1042102629 -286373061 -1095871706 1577754454 -1357795472 1572786760 -521546290 2044697494 2038541383 -538108744 40443 "stderr
2Jun 6, 2024 09:2700000Error: expected "53687941008700311 ", got "-565596527 2064121807 1924045399 -1632203855 1001912729 -457106870 1511161522 -1949001172 596273134 -330215389 -1981377623 1457943070 39759 "stderr