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 2, 2026 00:08Karthik 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 2, 2026 00:08033,633,03324,601,00002,113,536expected "975627 ", got "s122 7123,7070,6598,6443,6160,5870,5592,5355,5298,5306,5173,5150,5269,4996,4970,4908,4961,4947,4923,4906,4939,4917,4899,4898 4950 11922w11776 4940 "
2Oct 2, 2026 00:08033,527,16224,589,00002,113,536expected "976369 ", got "s120 7079,7538,6540,6426,6172,5817,5540,5342,5308,5224,5187,5176,5140,4983,5000,4898,4958,4895,4904,4874,5269,4916,4887,4890 4942 11907w11759 4931 "
3Oct 2, 2026 00:08033,517,00624,583,00002,113,536expected "976162 ", got "s126 7149,7081,6560,6391,6096,5833,5558,5355,5321,5314,5237,5215,5048,5017,4960,4903,4913,5208,4920,4945,4919,4943,4926,4921 4940 11901w11759 4925 "