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 23, 2025 07:07vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 07:35Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 07:35020,516,62012,822,00002,113,536expected "25000000 ", got "24983616 "
2Jul 4, 2026 07:35020,640,40812,855,00002,113,536expected "25000000 ", got "24983616 "
3Jul 4, 2026 07:35020,683,14112,856,00002,113,536expected "25000000 ", got "24983616 "
4Apr 23, 2025 07:074,12527,107,87913,199,00002,486,272
5Apr 23, 2025 07:094,13931,602,37613,245,00002,490,368
6Apr 23, 2025 07:074,14037,279,64813,247,00002,490,368
7Apr 23, 2025 07:074,14031,036,13613,248,00002,490,368
8Apr 23, 2025 07:074,14233,341,27413,254,00002,531,328
9Apr 23, 2025 07:074,14636,854,11213,266,00002,490,368
10Apr 23, 2025 07:074,15527,402,64213,297,00002,498,560
11Apr 23, 2025 07:094,16134,108,26213,314,00002,494,464
12Apr 23, 2025 07:074,16730,338,52613,335,00002,490,368
13Apr 23, 2025 07:074,17125,528,73013,348,00002,273,280
14Apr 23, 2025 07:074,17431,030,56513,357,00002,273,280
15Apr 23, 2025 07:074,18029,248,89413,377,00002,273,280
16Apr 23, 2025 07:074,18531,148,03013,392,00002,273,280
17Apr 23, 2025 07:094,18529,160,97013,392,00002,498,560
18Apr 23, 2025 07:074,20238,348,23313,446,00002,265,088