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 01:49vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 07:49Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 07:49020,914,71512,805,00002,113,536expected "25000000 ", got "24967232 "
2Jul 4, 2026 07:49020,742,45312,873,00002,113,536expected "25000000 ", got "24967232 "
3Jul 4, 2026 07:49020,602,19012,843,00002,113,536expected "25000000 ", got "24967232 "
4Apr 24, 2025 01:484,12335,935,35112,178,0001,014,0002,502,656
5Apr 24, 2025 01:494,12330,205,24912,178,0001,014,0002,498,560
6Apr 24, 2025 01:484,12628,606,15213,203,00002,494,464
7Apr 24, 2025 01:484,12625,781,72312,189,0001,015,0002,498,560
8Apr 24, 2025 01:484,13133,104,77912,203,0001,016,0002,498,560
9Apr 24, 2025 01:484,13629,583,74012,216,0001,018,0002,498,560
10Apr 24, 2025 01:484,14431,599,11913,260,00002,273,280
11Apr 24, 2025 01:494,14527,697,32213,265,00002,273,280
12Apr 24, 2025 01:494,14927,816,20013,278,00002,273,280
13Apr 24, 2025 01:494,16129,908,03213,316,00002,494,464
14Apr 24, 2025 01:494,16226,760,61413,319,00002,273,280
15Apr 24, 2025 01:494,16329,519,61213,321,00002,273,280
16Apr 24, 2025 01:494,16725,702,82013,333,00002,486,272
17Apr 24, 2025 01:484,17624,837,42313,362,00002,494,464
18Apr 24, 2025 01:494,17825,936,67813,368,00002,498,560
19Apr 24, 2025 01:484,19328,946,06413,417,00002,502,656
20Apr 24, 2025 01:494,20025,363,02213,439,00002,486,272
21Apr 24, 2025 01:484,21030,786,65813,471,00002,498,560