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 27, 2024 22:36HuynhHuynhScore: 5,424Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 27, 2024 22:365,36339,446,05315,144,0002,019,0002,445,312
2Jul 27, 2024 22:365,39938,229,81217,277,00002,269,184
3Jul 27, 2024 22:365,40137,654,85616,266,0001,016,0002,531,328
4Jul 27, 2024 22:365,41836,204,32917,338,00002,531,328
5Jul 27, 2024 22:365,41936,159,92516,320,0001,020,0002,531,328
6Jul 27, 2024 22:365,42038,747,05617,345,00002,441,216
7Jul 27, 2024 22:365,42445,424,33017,358,00002,445,312
8Jul 27, 2024 22:365,43132,045,61616,357,0001,022,0002,265,088
9Jul 27, 2024 22:365,44042,639,56716,384,0001,024,0002,441,216
10Jul 27, 2024 22:365,68186,901,05718,178,85902,191,360
11Jul 27, 2024 22:365,71192,580,62018,276,24802,195,456
12Jul 27, 2024 22:365,71574,678,09418,288,35102,199,552