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 30, 2026 20:34Adam FolwarcznyAdam FolwarcznyError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 05:03Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 05:03020,965,00412,959,00002,113,536expected "25000000 ", got "538112 "
2Jul 4, 2026 05:03020,900,25612,970,00002,113,536expected "25000000 ", got "538112 "
3Jul 4, 2026 05:03020,695,18612,931,00002,113,536expected "25000000 ", got "538112 "
4Jun 30, 2026 20:354,04521,034,75912,945,00002,113,536
5Jun 30, 2026 20:354,04621,234,67912,950,00002,113,536
6Jun 30, 2026 20:354,04820,989,00012,954,00002,113,536
7Jun 30, 2026 20:354,05021,188,94412,963,00002,113,536
8Jun 30, 2026 20:354,05521,026,53312,978,00002,113,536
9Jun 30, 2026 20:354,05821,160,33712,987,00002,113,536
10Jun 30, 2026 20:354,05821,255,41712,987,00002,113,536
11Jun 30, 2026 20:354,06221,332,18912,999,00002,113,536
12Jun 30, 2026 20:354,08021,994,59313,056,00002,113,536