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:43Karthik 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:46033,807,93424,766,00002,113,536expected "977127 ", got "s135W0 7167,7094,6611,6501,6180,5840,5570,5363,5355,5242,5236,5102 4949 11927w11781 4951 "
2Oct 1, 2026 23:46034,744,81524,559,00002,113,536expected "977039 ", got "s120W0 7291,6823,6405,6300,6082,5759,5482,5388,5252,5262,5181,5156 4935 11884w11745 4942 "
3Oct 1, 2026 23:46033,591,63424,572,00002,113,536expected "976745 ", got "s121W0 7667,7147,6646,6435,6230,5827,5600,5333,5322,5300,5205,5093 4935 11896w11745 4967 "