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:43035,059,12924,702,00002,113,536expected "976058 ", got "s121W100 6830,6730,6291,6295,6115,5802,5542,5386,5310,5295,5397,5409 4947 12004w11769 4923 "
2Oct 1, 2026 23:43033,903,32123,889,0001,003,0002,113,536expected "976449 ", got "s123W100 7142,7708,6561,6444,6137,5821,5509,5361,5270,5221,5160,5064 4947 12022w11778 4964 "
3Oct 1, 2026 23:43033,809,72824,746,00002,113,536expected "976467 ", got "s121W100 6724,6360,5967,5922,5763,5737,5555,5397,5329,5253,5260,5270 4939 11995w11744 4939 "