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 26, 2025 03:59vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 06:15Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 06:15021,031,22012,787,00002,113,536expected "25000000 ", got "24991808 "
2Jul 4, 2026 06:15021,031,89912,757,00002,113,536expected "25000000 ", got "24991808 "
3Jul 4, 2026 06:15021,091,69412,782,00002,113,536expected "25000000 ", got "24991808 "
4Apr 26, 2025 04:004,09728,175,00212,101,0001,008,0002,498,560
5Apr 26, 2025 04:004,11827,057,01212,166,0001,013,0002,531,328
6Apr 26, 2025 03:594,13730,149,22413,238,00002,494,464
7Apr 26, 2025 04:004,14430,296,47713,262,00002,502,656
8Apr 26, 2025 03:594,14731,865,22713,271,00002,494,464
9Apr 26, 2025 03:594,15027,962,08613,279,00002,273,280
10Apr 26, 2025 04:004,15533,325,41513,296,00002,273,280
11Apr 26, 2025 04:004,15626,997,06513,300,00002,273,280
12Apr 26, 2025 03:594,16630,505,89013,330,00002,273,280
13Apr 26, 2025 04:004,17328,313,10613,352,00002,273,280
14Apr 26, 2025 03:594,18434,687,96913,388,00002,498,560
15Apr 26, 2025 03:594,18627,186,31613,394,00002,531,328