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 21, 2023 16:35gchebanovgchebanovScore: 5,202Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 21, 2023 16:355,16338,640,27615,488,0001,032,0002,285,568
2Jul 21, 2023 16:355,17533,359,48016,559,00002,285,568
3Jul 21, 2023 16:355,17835,260,03715,536,0001,035,0002,285,568
4Jul 21, 2023 16:355,18742,564,80615,560,0001,037,0002,408,448
5Jul 21, 2023 16:355,19546,630,88115,586,0001,039,0002,285,568
6Jul 21, 2023 16:355,19840,960,77016,634,00002,285,568
7Jul 21, 2023 16:355,20246,423,72516,647,00002,285,568
8Jul 21, 2023 16:355,20643,814,14716,658,00002,285,568
9Jul 21, 2023 16:355,20835,523,01215,626,0001,041,0002,285,568
10Jul 21, 2023 16:355,356102,233,85917,139,33802,289,664
11Jul 21, 2023 16:355,35990,466,26117,148,90202,297,856
12Jul 21, 2023 16:355,40885,450,92617,305,27602,174,976