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 22:08Franek KortaFranek KortaScore: 5,021Success
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 22:084,99835,544,66514,996,000999,0002,269,184
2Sep 3, 2022 22:085,00939,115,98615,027,0001,001,0002,433,024
3Sep 3, 2022 22:085,00932,581,81915,027,0001,001,0002,531,328
4Sep 3, 2022 22:085,01335,589,08515,039,0001,002,0002,424,832
5Sep 3, 2022 22:085,01739,069,75514,047,0002,006,0002,531,328
6Sep 3, 2022 22:085,02140,429,69114,058,0002,008,0002,433,024
7Sep 3, 2022 22:085,02143,544,83714,060,0002,008,0002,428,928
8Sep 3, 2022 22:085,02661,935,89016,082,00102,195,456
9Sep 3, 2022 22:085,02632,822,31215,079,0001,005,0002,269,184
10Sep 3, 2022 22:085,03735,801,24313,097,0003,022,0002,437,120
11Sep 3, 2022 22:085,05278,104,36616,166,69602,203,648
12Sep 3, 2022 22:085,07359,049,45316,232,36602,199,552