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:43033,644,77324,663,00002,113,536expected "977419 ", got "s134W36 7261,7171,6630,6383,6146,5799,5573,5397,5325,5346,5201,5131 4948 11958w11780 4945 "
2Oct 1, 2026 23:43033,677,85524,664,00002,113,536expected "976471 ", got "s123W36 7296,7132,6618,6365,6166,5853,5552,5387,7581,5202,5145,5056 4953 11985w11768 4963 "
3Oct 1, 2026 23:43033,725,67024,615,00002,113,536expected "976112 ", got "s121W37 7259,7182,6588,6435,6125,5821,7986,5331,5252,5206,5111,5060 4943 11966w11750 4941 "