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 1, 2023 21:32Jack FrigaardJack FrigaardScore: 5,623Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 1, 2023 21:325,57943,719,80416,861,000991,0002,265,088
2Jan 1, 2023 21:325,58444,096,07415,883,0001,985,0002,289,664
3Jan 1, 2023 21:325,58734,517,63415,892,0001,986,0002,523,136
4Jan 1, 2023 21:325,58847,879,10816,889,000993,0002,289,664
5Jan 1, 2023 21:325,59647,668,94115,918,0001,989,0002,289,664
6Jan 1, 2023 21:325,60338,293,02315,939,0001,992,0002,289,664
7Jan 1, 2023 21:325,62335,477,02215,994,0001,999,0002,269,184
8Jan 1, 2023 21:325,65243,011,19516,076,0002,009,0002,289,664
9Jan 1, 2023 21:325,66238,987,71617,112,0001,006,0002,289,664
10Jan 1, 2023 21:325,94478,711,23519,022,07302,179,072
11Jan 1, 2023 21:325,97957,704,06419,131,39602,174,976
12Jan 1, 2023 21:326,18191,434,57919,780,52902,293,760