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 21:47Karthik 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 21:4702,034,237,29924,053,0001,008,0002,113,536expected "975250 ", got "s132 870+11156w11872 "
2Oct 1, 2026 21:4702,034,056,56624,884,00002,113,536expected "975465 ", got "s122 911+11124w11860 "
3Oct 1, 2026 21:4702,034,323,72624,943,00002,113,536expected "975122 ", got "s122 893+11136w11901 "