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 listJun 2, 2026 23:13Maya RebholzMaya RebholzError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 2, 2026 23:14024,752,15714,734,0001,056,0002,113,536expected "976451 ", got "976450 "
2Jun 2, 2026 23:14025,020,16214,843,0001,080,0002,113,536expected "976451 ", got "976450 "
3Jun 2, 2026 23:14024,785,30714,750,0001,047,0002,113,536expected "976593 ", got "976592 "
4Jun 2, 2026 23:144,91024,769,35414,680,0001,034,0002,113,536
5Jun 2, 2026 23:144,91024,772,40314,699,0001,016,0002,113,536
6Jun 2, 2026 23:144,92524,742,31914,714,0001,048,0002,113,536
7Jun 2, 2026 23:144,95024,869,99314,810,0001,031,0002,113,536
8Jun 2, 2026 23:144,95124,868,41914,801,0001,043,0002,113,536
9Jun 2, 2026 23:144,96824,974,62314,850,0001,050,0002,113,536