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 14:51Jack FrigaardJack FrigaardScore: 5,583Success
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 14:515,51638,352,64516,613,0001,038,0002,523,136
2Jan 2, 2023 14:515,52143,617,13816,627,0001,039,0002,285,568
3Jan 2, 2023 14:515,53146,362,22816,657,0001,041,0002,285,568
4Jan 2, 2023 14:515,53645,902,01016,674,0001,042,0002,285,568
5Jan 2, 2023 14:515,53852,876,82816,679,0001,042,0002,285,568
6Jan 2, 2023 14:515,58146,456,47615,876,0001,984,0002,269,184
7Jan 2, 2023 14:515,58344,166,26316,874,000992,0002,285,568
8Jan 2, 2023 14:515,58344,310,86416,875,000992,0002,527,232
9Jan 2, 2023 14:515,58442,957,25716,878,000992,0002,285,568
10Jan 2, 2023 14:515,79279,565,61418,534,71202,306,048
11Jan 2, 2023 14:515,80281,874,24618,565,02902,293,760
12Jan 2, 2023 14:515,85488,768,29718,733,94602,301,952