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 listJun 8, 2024 18:51AndreyTSAndreyTSScore: 5,523Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 8, 2024 18:515,47438,499,66816,486,0001,030,0002,527,232
2Jun 8, 2024 18:515,48034,619,28517,536,00002,285,568
3Jun 8, 2024 18:515,48336,902,48317,546,00002,289,664
4Jun 8, 2024 18:515,48846,060,35017,561,00002,269,184
5Jun 8, 2024 18:515,50745,891,45516,585,0001,036,0002,269,184
6Jun 8, 2024 18:515,51343,758,00417,641,00002,273,280
7Jun 8, 2024 18:515,52348,226,05116,636,0001,039,0002,289,664
8Jun 8, 2024 18:515,53344,115,15016,664,0001,041,0002,519,040
9Jun 8, 2024 18:515,53844,313,26816,679,0001,042,0002,289,664
10Jun 8, 2024 18:515,76278,238,91418,439,67202,301,952
11Jun 8, 2024 18:515,77693,170,91618,483,59002,179,072
12Jun 8, 2024 18:515,78368,723,41618,506,97402,297,856