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 2, 2026 00:04Karthik 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 2, 2026 00:04021,734,63612,781,00002,113,536expected "976354 ", got "p115 7092,7051,6538,6344,6116,5841,5580,5336,5307,5251,5192,5118 908q0r10978 0 "
2Oct 2, 2026 00:04021,715,04912,829,00002,113,536expected "975054 ", got "p114 7323,7028,6572,6371,6105,5781,5607,5426,5316,5265,5207,5096 913q0r11013 0 "
3Oct 2, 2026 00:04021,813,39912,803,00002,113,536expected "976180 ", got "p113 7078,7107,6574,6386,6093,5862,5587,5369,5295,5300,5180,5662 913q0r10990 0 "