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 listMar 16, 2026 12:02limanjun99limanjun99Error
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 18, 2026 02:40Andrew Epstein18.74CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 18, 2026 02:40025,139,31213,728,0001,026,0002,113,536expected "158790260 ", got "151532660"
2Sep 18, 2026 02:404,61125,079,14413,720,0001,036,0002,113,536
3Sep 18, 2026 02:404,62125,139,50413,764,0001,025,0002,113,536
4Mar 16, 2026 12:024,79232,725,89114,312,0001,022,0002,289,664
5Mar 16, 2026 12:024,79232,935,41513,291,0002,044,0002,289,664
6Mar 16, 2026 12:024,79430,394,04814,320,0001,022,0002,289,664
7Mar 16, 2026 12:024,79730,231,22014,327,0001,023,0002,289,664
8Mar 16, 2026 12:024,80344,778,73113,321,0002,049,0002,289,664
9Mar 16, 2026 12:024,80532,902,03014,350,0001,025,0002,289,664
10Mar 16, 2026 12:024,81337,259,69415,401,00002,289,664
11Mar 16, 2026 12:024,81735,633,55314,388,0001,027,0002,519,040
12Mar 16, 2026 12:024,96246,300,37714,885,000992,0002,260,992