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:16Matt StuchlikMatt StuchlikScore: 5,485Success
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:165,45345,717,23617,451,00002,523,136
2Jul 18, 2024 12:165,45538,587,65917,456,00002,289,664
3Jul 18, 2024 12:165,45739,822,53016,435,0001,027,0002,269,184
4Jul 18, 2024 12:165,46745,181,58616,466,0001,029,0002,289,664
5Jul 18, 2024 12:165,46934,390,53916,472,0001,029,0002,289,664
6Jul 18, 2024 12:165,47940,525,01016,501,0001,031,0002,371,584
7Jul 18, 2024 12:165,48543,250,96016,520,0001,032,0002,289,664
8Jul 18, 2024 12:165,48948,087,46916,533,0001,033,0002,289,664
9Jul 18, 2024 12:165,49538,811,55616,551,0001,034,0002,289,664
10Jul 18, 2024 12:165,68378,344,80318,186,72502,306,048
11Jul 18, 2024 12:165,69778,712,08618,229,55902,293,760
12Jul 18, 2024 12:165,71991,221,85318,300,15602,174,976