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 listJul 18, 2024 12:00Matt StuchlikMatt StuchlikScore: 5,514Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 18, 2024 12:005,47840,100,55817,530,00002,527,232
2Jul 18, 2024 12:005,48139,034,85516,508,0001,031,0002,531,328
3Jul 18, 2024 12:005,48134,788,00516,508,0001,031,0002,289,664
4Jul 18, 2024 12:005,48942,652,07516,531,0001,033,0002,273,280
5Jul 18, 2024 12:005,49039,694,10117,568,00002,273,280
6Jul 18, 2024 12:005,49141,979,22316,538,0001,033,0002,269,184
7Jul 18, 2024 12:005,51447,127,83317,645,00002,289,664
8Jul 18, 2024 12:005,52341,806,21216,636,0001,039,0002,289,664
9Jul 18, 2024 12:005,53835,615,25616,680,0001,042,0002,269,184
10Jul 18, 2024 12:005,71678,425,58318,292,18002,174,976
11Jul 18, 2024 12:005,71977,216,90918,301,22502,306,048
12Jul 18, 2024 12:005,73175,646,60018,339,75802,297,856