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 listJan 2, 2023 16:32Jack FrigaardJack FrigaardScore: 5,357Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2023 16:325,33944,599,91215,076,0002,010,0002,285,568
2Jan 2, 2023 16:325,34632,068,17716,101,0001,006,0002,387,968
3Jan 2, 2023 16:325,35036,942,68616,113,0001,007,0002,285,568
4Jan 2, 2023 16:325,35340,006,29315,115,0002,015,0002,269,184
5Jan 2, 2023 16:325,35432,901,59515,117,0002,015,0002,285,568
6Jan 2, 2023 16:325,35436,070,35116,127,0001,007,0002,285,568
7Jan 2, 2023 16:325,35734,884,74415,127,0002,016,0002,273,280
8Jan 2, 2023 16:325,36043,965,25016,144,0001,009,0002,273,280
9Jan 2, 2023 16:325,38335,311,72915,201,0002,026,0002,285,568
10Jan 2, 2023 16:325,57482,219,54117,837,50202,293,760
11Jan 2, 2023 16:325,57581,036,20117,840,67802,301,952
12Jan 2, 2023 16:325,62672,727,06618,002,08202,297,856