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 listApr 24, 2025 00:49vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 06:51Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 06:52021,128,37512,843,00002,113,536expected "25000000 ", got "24967232 "
2Jul 4, 2026 06:52021,050,60412,807,00002,113,536expected "25000000 ", got "24967232 "
3Jul 4, 2026 06:52021,162,05112,855,00002,113,536expected "25000000 ", got "24967232 "
4Apr 24, 2025 00:434,12126,416,46313,187,00002,502,656
5Apr 24, 2025 00:434,12925,361,60212,197,0001,016,0002,490,368
6Apr 24, 2025 00:594,13137,925,00413,219,00002,498,560
7Apr 24, 2025 00:494,13431,922,63013,228,00002,498,560
8Apr 24, 2025 00:434,13526,445,83013,231,00002,498,560
9Apr 24, 2025 00:434,13530,353,53113,232,00002,265,088
10Apr 24, 2025 00:434,14829,993,98513,275,00002,273,280
11Apr 24, 2025 00:434,14824,512,12413,275,00002,498,560
12Apr 24, 2025 00:434,15032,439,39513,280,00002,494,464
13Apr 24, 2025 00:594,15929,541,15813,308,00002,273,280
14Apr 24, 2025 00:494,16026,210,68413,313,00002,494,464
15Apr 24, 2025 00:434,16231,437,15213,319,00002,273,280
16Apr 24, 2025 00:434,16824,889,69213,336,00002,273,280
17Apr 24, 2025 00:494,17126,491,42913,348,00002,502,656
18Apr 24, 2025 00:594,17429,199,89813,356,00002,494,464
19Apr 24, 2025 00:434,18523,450,04713,393,00002,498,560
20Apr 24, 2025 00:434,18729,042,82113,399,00002,486,272
21Apr 24, 2025 00:434,19927,406,14013,437,00002,273,280