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 listOct 1, 2026 23:39Karthik ReddyKarthik ReddyError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 1, 2026 23:39033,661,53624,679,00002,113,536expected "976860 ", got "s131 7076,7072,6560,6468,6196,5840,5544,5468,5315,5285,5181,5148,7310,4987,4912,4901,4927,4915,4892,4936,4929,4926,4958,4956 4971 11986w11788 4942 "
2Oct 1, 2026 23:39033,611,71424,589,00002,113,536expected "976075 ", got "s131 7158,7113,6564,6402,6132,5795,5491,5341,5255,5263,5217,5159,5081,5005,4999,4975,4921,5322,5213,4897,4935,4942,4886,4913 4940 11904w11755 4945 "
3Oct 1, 2026 23:39033,683,19524,639,00002,113,536expected "976082 ", got "s121 7121,7086,6651,6372,6144,5779,5570,5402,5333,8821,5136,5077,4980,4940,4949,4950,4939,4937,4941,5009,4975,4996,4942,4975 4951 11957w11784 4950 "