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:00Franek 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:004,73337,928,74114,138,0001,009,0002,531,328
2Sep 3, 2022 21:004,74135,575,71114,159,0001,011,0002,433,024
3Sep 3, 2022 21:004,75329,458,43814,196,0001,014,0002,437,120
4Sep 3, 2022 21:004,75628,963,57413,189,0002,029,0002,433,024
5Sep 3, 2022 21:004,76639,705,62514,234,0001,016,0002,269,184
6Sep 3, 2022 21:004,76931,782,29113,227,0002,034,0002,531,328
7Sep 3, 2022 21:004,77031,398,02414,246,0001,017,0002,437,120
8Sep 3, 2022 21:004,77340,448,08414,257,0001,018,0002,433,024
9Sep 3, 2022 21:004,78726,688,95813,276,0002,042,0002,269,184
10Sep 3, 2022 21:005,02982,501,28116,092,64302,195,456
11Sep 3, 2022 21:005,05290,491,04716,165,43102,195,456
12Sep 3, 2022 21:005,08280,113,03216,263,20902,203,648