Count uint8 Sergey Svistunov

Count the number of bytes equal to 127 in a binary stream as fast as possible.

Input: 250 000 000 uint8 values in binary on STDIN.

Output: The count of elements equal to 127, printed as a decimal string.

Back to listMay 23, 2021 05:44alex3dalex3dError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 23, 2021 05:4400000Wrong answer: expected "980410 ", got "28259 28260 28261 28262 28263 28264 28265 28266 28267 32769 psum.size=2324 pages.size=32769 pages0=61036 249069073 "
2Jun 26, 2021 19:0600000Error: expected "975196 ", got "61027 61028 61029 61030 61031 61032 61033 61034 61035 61036 psum.size=2525 pages.size=61036 pages0=61036 248998814 "stderr