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 19:58vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 07:28Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 07:28020,817,99712,813,00002,113,536expected "25000000 ", got "24967232 "
2Jul 4, 2026 07:28020,956,08612,875,00002,113,536expected "25000000 ", got "24967232 "
3Jul 4, 2026 07:28022,207,83412,849,00002,113,536expected "25000000 ", got "24967232 "
4Apr 23, 2025 19:584,13429,938,13612,212,0001,017,0002,494,464
5Apr 23, 2025 20:174,13428,111,12713,229,00002,490,368
6Apr 23, 2025 20:174,14826,371,37313,274,00002,494,464
7Apr 23, 2025 20:174,15134,278,84513,284,00002,498,560
8Apr 23, 2025 19:574,15332,715,80713,288,00002,490,368
9Apr 23, 2025 19:574,15437,313,86712,272,0001,022,0002,273,280
10Apr 23, 2025 20:174,15636,859,23113,300,00002,498,560
11Apr 23, 2025 20:174,16029,399,06613,311,00002,494,464
12Apr 23, 2025 19:574,17230,751,45513,349,00002,494,464
13Apr 23, 2025 20:174,18828,633,50213,403,00002,502,656
14Apr 23, 2025 20:174,18831,019,24413,403,00002,494,464
15Apr 23, 2025 20:174,19935,259,06613,438,00002,273,280
16Apr 23, 2025 19:584,20428,811,15013,452,00002,494,464
17Apr 23, 2025 19:584,21929,999,34913,500,00002,531,328
18Apr 23, 2025 20:174,22332,798,95113,512,00002,273,280