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 listJan 2, 2023 16:48Jack FrigaardJack FrigaardScore: 4,866Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2023 16:484,80329,201,47114,344,0001,024,0002,273,280
2Jan 2, 2023 16:484,83233,222,95314,431,0001,030,0002,273,280
3Jan 2, 2023 16:484,84938,736,43814,482,0001,034,0002,523,136
4Jan 2, 2023 16:484,84934,996,61814,482,0001,034,0002,285,568
5Jan 2, 2023 16:484,85335,162,48515,530,00002,519,040
6Jan 2, 2023 16:484,85539,397,82914,500,0001,035,0002,527,232
7Jan 2, 2023 16:484,86634,652,34214,533,0001,038,0002,375,680
8Jan 2, 2023 16:484,86834,070,80414,538,0001,038,0002,285,568
9Jan 2, 2023 16:484,87240,598,49614,551,0001,039,0002,285,568
10Jan 2, 2023 16:485,056101,999,98316,177,68002,301,952
11Jan 2, 2023 16:485,10982,913,51016,349,14002,293,760
12Jan 2, 2023 16:485,11762,728,58716,374,38202,301,952