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 listDec 16, 2022 23:15Vytautas GruslysVytautas GruslysError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 16, 2022 23:1500000Error: expected "53683406982741384 ", got "HW_MMX 1 HW_x64 1 HW_ABM 1 HW_RDRAND 1 HW_BMI1 1 HW_BMI2 1 HW_ADX 0 HW_PREFETCHWT1 0 HW_SSE 1 HW_SSE2 1 HW_SSE3 1 HW_SSSE3 1 HW_SSE41 1 HW_SSE42 1 HW_SSE4a 0 HW_AES 1 HW_SHA 0 AVX 1 XOP 0 FMA3 1 FMA4 0 AVX2 1 ...