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 29, 2024 07:15David RubinDavid RubinScore: 52,968Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 29, 2024 07:1552,828194,548,342141,042,00028,008,0002,367,488
2Oct 29, 2024 07:1552,880190,492,888141,181,00028,036,0002,293,760
3Oct 29, 2024 07:1552,892191,661,037141,212,00028,042,0002,375,680
4Oct 29, 2024 07:1552,899197,441,068140,229,00029,047,0002,367,488
5Oct 29, 2024 07:1552,968199,563,622144,424,00025,073,0002,461,696
6Oct 29, 2024 07:1552,979194,201,200142,449,00027,085,0002,293,760
7Oct 29, 2024 07:1552,987198,536,582141,467,00028,092,0002,293,760
8Oct 29, 2024 07:1553,017195,793,431141,545,00028,108,0002,379,776
9Oct 29, 2024 07:1553,069196,901,907140,852,00028,969,0002,375,680