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:40Karthik 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:42034,624,38224,413,0001,245,0002,113,536expected "977894 ", got "s130W742 7686,7968,7434,7536,7488,7532,7409,7237,5962,5724,5101,5070 4946 12763w11768 4955 "
2Oct 1, 2026 23:42034,718,40324,471,0001,258,0002,113,536expected "974729 ", got "s135W741 7784,7814,8308,7778,7597,7624,7612,7112,5654,5203,5087,5061 4940 12761w11749 4976 "
3Oct 1, 2026 23:42034,597,99424,428,0001,250,0002,113,536expected "976154 ", got "s122W740 7790,7786,7438,7438,7477,7480,7409,7226,5724,5190,5135,5060 4946 12759w11771 4955 "