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 01:10vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 05:46Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 05:47020,443,66412,678,00002,113,536expected "25000000 ", got "24991808 "
2Jul 4, 2026 05:47020,472,07712,690,00002,113,536expected "25000000 ", got "24991808 "
3Jul 4, 2026 05:47020,511,61612,710,00002,113,536expected "25000000 ", got "24991808 "
4Apr 26, 2025 01:114,09936,734,29112,108,0001,009,0002,490,368
5Apr 26, 2025 01:114,11129,130,09312,143,0001,011,0002,273,280
6Apr 26, 2025 01:114,13034,937,63712,200,0001,016,0002,498,560
7Apr 26, 2025 01:104,13037,826,01512,201,0001,016,0002,273,280
8Apr 26, 2025 01:114,13131,189,05112,202,0001,016,0002,494,464
9Apr 26, 2025 01:114,14530,350,28812,244,0001,020,0002,502,656
10Apr 26, 2025 01:114,14537,625,65113,264,00002,273,280
11Apr 26, 2025 01:114,14828,903,82013,273,00002,498,560
12Apr 26, 2025 01:114,14929,433,86113,277,00002,273,280
13Apr 26, 2025 01:114,15034,658,41113,279,00002,502,656
14Apr 26, 2025 01:104,15029,273,97912,258,0001,021,0002,531,328
15Apr 26, 2025 01:104,15328,527,56713,291,00002,273,280
16Apr 26, 2025 01:114,16025,980,81313,313,00002,273,280
17Apr 26, 2025 01:114,16327,407,03713,322,00002,490,368
18Apr 26, 2025 01:114,17030,235,71213,343,00002,273,280