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,962Success
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,812194,734,294141,998,00026,999,0002,293,760
2Oct 29, 2024 07:1552,838200,073,844140,068,00029,014,0002,371,584
3Oct 29, 2024 07:1552,921193,435,451140,287,00029,059,0002,375,680
4Oct 29, 2024 07:1552,951192,407,505141,369,00028,073,0002,465,792
5Oct 29, 2024 07:1552,962191,572,009141,399,00028,079,0002,379,776
6Oct 29, 2024 07:1552,978201,268,111141,442,00028,087,0002,293,760
7Oct 29, 2024 07:1553,022196,102,877141,560,00028,111,0002,375,680
8Oct 29, 2024 07:1553,066201,213,686140,843,00028,967,0002,375,680
9Oct 29, 2024 07:1553,069198,042,852140,851,00028,969,0002,289,664