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 listOct 6, 2023 08:40Pavel ZagrebinPavel ZagrebinScore: 5,341Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 6, 2023 08:405,29245,176,18314,942,0001,992,0002,265,088
2Oct 6, 2023 08:405,30941,692,36214,990,0001,998,0002,392,064
3Oct 6, 2023 08:405,31344,451,03515,003,0002,000,0002,392,064
4Oct 6, 2023 08:405,32147,169,16816,025,0001,001,0002,387,968
5Oct 6, 2023 08:405,32441,279,91715,032,0002,004,0002,265,088
6Oct 6, 2023 08:405,33945,665,74417,084,00002,392,064
7Oct 6, 2023 08:405,34140,188,36015,080,0002,010,0002,392,064
8Oct 6, 2023 08:405,34445,538,79715,089,0002,011,0002,396,160
9Oct 6, 2023 08:405,34632,579,66815,095,0002,012,0002,265,088
10Oct 6, 2023 08:405,52874,576,37217,689,12402,281,472
11Oct 6, 2023 08:405,52980,886,84517,692,28602,285,568
12Oct 6, 2023 08:405,55676,957,98417,777,74102,281,472