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 26, 2026 13:35limanjun99limanjun99Error
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 18, 2026 02:37Andrew Epstein18.65CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 18, 2026 02:37023,326,48812,086,0001,010,0002,113,536expected "158790616 ", got "158782424"
2Sep 18, 2026 02:37023,294,81613,020,00002,113,536expected "158790944 ", got "158782752"
3Sep 18, 2026 02:37023,267,23012,045,0001,026,0002,113,536expected "158791440 ", got "158783248"
4Mar 26, 2026 13:354,25830,411,82412,579,0001,048,0002,408,448
5Mar 26, 2026 13:354,26129,436,05812,586,0001,048,0002,400,256
6Mar 26, 2026 13:354,26830,947,58313,658,00002,396,160
7Mar 26, 2026 13:354,27029,882,51012,614,0001,051,0002,281,472
8Mar 26, 2026 13:354,27836,800,37713,689,00002,396,160
9Mar 26, 2026 13:354,27938,235,66212,641,0001,053,0002,281,472
10Mar 26, 2026 13:354,29029,833,37813,729,00002,281,472
11Mar 26, 2026 13:354,29229,413,08012,678,0001,056,0002,387,968
12Mar 26, 2026 13:354,33633,692,29613,876,00002,281,472