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 30, 2024 13:15AnSaAnSaScore: 4,909Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 30, 2024 13:154,86837,889,54414,538,0001,038,0002,269,184
2Jun 30, 2024 13:154,88540,611,49215,633,00002,269,184
3Jun 30, 2024 13:154,89631,005,36015,667,00002,494,464
4Jun 30, 2024 13:154,89640,982,40215,668,00002,531,328
5Jun 30, 2024 13:154,89636,931,71613,579,0002,089,0002,498,560
6Jun 30, 2024 13:154,90846,420,99715,704,00002,506,752
7Jun 30, 2024 13:154,90936,916,46014,661,0001,047,0002,506,752
8Jun 30, 2024 13:154,91333,674,81014,673,0001,048,0002,531,328
9Jun 30, 2024 13:154,96145,236,08914,884,000992,0002,531,328
10Jun 30, 2024 13:155,20588,375,71216,656,50402,252,800
11Jun 30, 2024 13:155,21299,488,42516,678,50202,252,800
12Jun 30, 2024 13:155,23873,084,42216,760,88402,244,608