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 listJul 2, 2026 15:41IlyaIlyaError
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 2, 2026 15:41023,328,52512,864,0001,071,0002,113,536expected "977186 ", got "169 "
2Jul 2, 2026 15:41023,230,78512,801,0001,068,0002,113,536expected "976207 ", got "153 "
3Jul 2, 2026 15:41023,156,61312,825,0001,061,0002,113,536expected "976223 ", got "155 "