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 16, 2024 22:58zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 16, 2024 22:5700000Error: expected "53688317337175600 ", got "56336985896987043 56336985896987043 "stderr
2Nov 16, 2024 22:583,54855,940,01428,436,0001,015,0002,281,472
3Nov 16, 2024 22:583,55455,537,47228,482,0001,017,0002,326,528
4Nov 16, 2024 22:583,55850,719,98728,511,0001,018,0002,535,424
5Nov 16, 2024 22:583,76256,071,04030,220,0001,007,0002,531,328
6Nov 16, 2024 22:583,76953,866,80030,272,0001,009,0002,338,816
7Nov 16, 2024 22:583,77851,652,66031,356,00002,531,328