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,706,56124,590,00002,113,536expected "976435 ", got "s123 7297,7136,6596,6392,6095,5858,5516,5305,5331,5341,6505,5094,4964,4947,4924,4932,4914,4898,4950,4942,4950,4959,4988,4914 4957 11948w11755 4950 "
2Oct 2, 2026 00:08033,591,72924,610,00002,113,536expected "977187 ", got "s121 7119,6375,5941,5913,5788,5680,5471,7657,5506,5254,5165,5215,5111,5101,5008,5039,5062,5062,5044,5061,4997,4947,4968,4982 4941 11910w11722 4919 "
3Oct 2, 2026 00:08033,586,01224,638,00002,113,536expected "976637 ", got "s121 7835,7116,6592,6380,6165,5839,5533,5446,5332,5285,5210,5137,5080,4995,4964,4917,4888,4882,5023,5123,4935,4958,4926,4916 4952 11934w11773 4952 "