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 4, 2024 16:42Christopher TarryChristopher TarryScore: 5,587Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 4, 2024 16:425,52740,677,53316,646,0001,040,0002,265,088
2Apr 4, 2024 16:425,52737,219,46816,647,0001,040,0002,387,968
3Apr 4, 2024 16:425,52847,186,13617,690,00002,396,160
4Apr 4, 2024 16:425,52848,163,80916,651,0001,040,0002,265,088
5Apr 4, 2024 16:425,53650,158,22416,672,0001,042,0002,265,088
6Apr 4, 2024 16:425,54044,836,84016,686,0001,042,0002,256,896
7Apr 4, 2024 16:425,58744,718,66816,884,000993,0002,383,872
8Apr 4, 2024 16:425,59147,251,60315,903,0001,987,0002,265,088
9Apr 4, 2024 16:425,59436,205,33416,907,000994,0002,510,848
10Apr 4, 2024 16:425,73694,741,50318,356,75502,293,760
11Apr 4, 2024 16:425,746105,583,80618,388,16502,285,568
12Apr 4, 2024 16:425,77787,104,24818,487,12002,273,280