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 28, 2025 02:03vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 05:39Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 05:39020,559,65112,666,00002,113,536expected "25000000 ", got "24991808 "
2Jul 4, 2026 05:39020,584,26612,622,00002,113,536expected "25000000 ", got "24991808 "
3Jul 4, 2026 05:39020,827,13612,820,00002,113,536expected "25000000 ", got "24991808 "
4Apr 28, 2025 02:034,09426,401,80012,093,0001,007,0002,531,328
5Apr 28, 2025 02:034,09835,228,72912,107,0001,008,0002,494,464
6Apr 28, 2025 02:034,11228,375,45112,146,0001,012,0002,265,088
7Apr 28, 2025 02:034,13926,466,23613,244,00002,494,464
8Apr 28, 2025 02:034,16825,317,13313,337,00002,490,368
9Apr 28, 2025 02:034,17526,651,32913,361,00002,494,464