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 listSep 3, 2022 21:11Franek KortaFranek KortaScore: 4,770Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 3, 2022 21:114,73641,426,45514,144,0001,010,0002,437,120
2Sep 3, 2022 21:114,74038,485,99713,147,0002,022,0002,433,024
3Sep 3, 2022 21:114,75131,511,90613,177,0002,027,0002,441,216
4Sep 3, 2022 21:114,76437,458,10114,228,0001,016,0002,269,184
5Sep 3, 2022 21:114,76632,613,83914,234,0001,016,0002,437,120
6Sep 3, 2022 21:114,76935,838,64913,226,0002,034,0002,428,928
7Sep 3, 2022 21:114,77043,848,17711,193,0004,070,0002,424,832
8Sep 3, 2022 21:114,77234,126,16313,234,0002,036,0002,433,024
9Sep 3, 2022 21:114,79933,355,28415,357,00002,428,928
10Sep 3, 2022 21:115,03586,035,51416,112,25602,207,744
11Sep 3, 2022 21:115,04498,966,17316,142,17502,199,552
12Sep 3, 2022 21:115,06973,641,47616,220,62102,203,648