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 19, 2022 20:53Franek KortaFranek KortaScore: 5,415Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 19, 2022 20:535,34237,554,24416,089,0001,005,0002,379,776
2Jul 19, 2022 20:535,35832,090,34315,129,0002,017,0002,392,064
3Jul 19, 2022 20:535,36947,788,44616,170,0001,010,0002,519,040
4Jul 19, 2022 20:535,37842,792,60714,173,0003,037,0002,510,848
5Jul 19, 2022 20:535,38443,309,80716,215,0001,013,0002,392,064
6Jul 19, 2022 20:535,39842,685,77815,241,0002,032,0002,519,040
7Jul 19, 2022 20:535,41543,058,57014,271,0003,058,0002,519,040
8Jul 19, 2022 20:535,41744,534,95717,333,00002,519,040
9Jul 19, 2022 20:535,43039,824,49416,354,0001,022,0002,396,160
10Jul 19, 2022 20:535,61781,214,60517,973,48002,285,568
11Jul 19, 2022 20:535,63398,645,45918,025,80702,285,568
12Jul 19, 2022 20:535,65962,418,32718,110,33902,277,376