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 listNov 2, 2024 21:42zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 2, 2024 21:4100000Error: expected "53681322173182295 ", got "40972358716488405 40972358716488405 "stderr
2Nov 2, 2024 21:4217,253161,521,783142,202,0001,001,0002,433,024
3Nov 2, 2024 21:4217,253166,266,098142,200,0001,001,0002,535,424
4Nov 2, 2024 21:4217,258163,116,539142,243,0001,001,0002,273,280
5Nov 2, 2024 21:4217,266166,553,645142,304,0001,002,0002,424,832
6Nov 2, 2024 21:4217,267170,984,715142,315,0001,002,0002,535,424
7Nov 2, 2024 21:4217,271161,570,194142,347,0001,002,0002,514,944
8Nov 2, 2024 21:4217,275166,343,997142,379,0001,002,0002,433,024
9Nov 2, 2024 21:4217,283167,566,317143,446,00002,428,928
10Nov 2, 2024 21:4217,288168,299,674141,497,0001,992,0002,535,424