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 17, 2024 00:22Joad NacerJoad NacerScore: 5,471Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 17, 2024 00:225,43447,314,35015,343,0002,045,0002,289,664
2Apr 17, 2024 00:225,44940,877,82016,412,0001,025,0002,531,328
3Apr 17, 2024 00:225,45247,220,54616,421,0001,026,0002,289,664
4Apr 17, 2024 00:225,45438,885,88916,428,0001,026,0002,289,664
5Apr 17, 2024 00:225,46239,023,43316,449,0001,028,0002,269,184
6Apr 17, 2024 00:225,46342,565,35516,454,0001,028,0002,531,328
7Apr 17, 2024 00:225,47137,269,02316,479,0001,029,0002,269,184
8Apr 17, 2024 00:225,47438,258,88216,487,0001,030,0002,281,472
9Apr 17, 2024 00:225,51942,725,84616,623,0001,038,0002,289,664
10Apr 17, 2024 00:225,68082,796,09118,175,39102,301,952
11Apr 17, 2024 00:225,71583,340,18418,286,90502,306,048
12Apr 17, 2024 00:225,73286,087,27018,343,17102,297,856