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 29, 2024 22:04Joad NacerJoad NacerScore: 4,846Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2024 22:044,79431,852,51013,295,0002,045,0002,269,184
2Apr 29, 2024 22:044,79730,117,68214,327,0001,023,0002,273,280
3Apr 29, 2024 22:044,81735,952,46115,413,00002,289,664
4Apr 29, 2024 22:044,81832,493,73514,389,0001,027,0002,273,280
5Apr 29, 2024 22:044,82932,268,91614,422,0001,030,0002,269,184
6Apr 29, 2024 22:044,84238,573,54815,494,00002,523,136
7Apr 29, 2024 22:044,84640,462,35514,473,0001,033,0002,289,664
8Apr 29, 2024 22:044,86532,876,97214,531,0001,037,0002,273,280
9Apr 29, 2024 22:044,88133,679,30114,578,0001,041,0002,527,232
10Apr 29, 2024 22:045,036120,746,54816,114,27402,301,952
11Apr 29, 2024 22:045,037101,220,59316,118,83102,301,952
12Apr 29, 2024 22:045,04979,346,42516,156,40402,297,856