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:12limanjun99limanjun99Error
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 18, 2026 02:43Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 18, 2026 02:43025,631,72013,889,0001,102,0002,113,536expected "158790744 ", got "34407512"
2Sep 18, 2026 02:43026,096,19213,882,0001,081,0002,113,536expected "158791200 ", got "32800800"
3Sep 18, 2026 02:43025,267,43713,834,0001,020,0002,113,536expected "158789160 ", got "32818472"
4Mar 16, 2026 12:074,64439,380,27312,880,0001,981,0002,273,280
5Mar 16, 2026 12:074,64531,373,03213,873,000990,0002,514,944
6Mar 16, 2026 12:074,64631,661,47012,886,0001,982,0002,273,280
7Mar 16, 2026 12:074,64634,694,64713,875,000991,0002,506,752
8Mar 16, 2026 12:074,64833,340,81212,892,0001,983,0002,273,280
9Mar 16, 2026 12:074,64846,008,23612,890,0001,983,0002,273,280
10Mar 16, 2026 12:074,64938,732,31312,895,0001,983,0002,396,160
11Mar 16, 2026 12:074,65130,806,23412,898,0001,984,0002,400,256
12Mar 16, 2026 12:074,66030,305,22612,923,0001,988,0002,273,280
13Mar 16, 2026 12:124,83138,607,76713,397,0002,061,0002,289,664
14Mar 16, 2026 12:124,83835,395,17214,448,0001,032,0002,289,664
15Mar 16, 2026 12:124,84234,379,25714,461,0001,032,0002,269,184
16Mar 16, 2026 12:124,84831,494,92414,480,0001,034,0002,281,472
17Mar 16, 2026 12:124,86038,374,69114,517,0001,036,0002,383,872
18Mar 16, 2026 12:124,86938,690,44314,542,0001,038,0002,277,376