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 17:18Jack FrigaardJack FrigaardScore: 4,867Success
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 17:184,83236,424,43914,433,0001,030,0002,285,568
2Jan 2, 2023 17:184,84431,775,41914,468,0001,033,0002,281,472
3Jan 2, 2023 17:184,84932,254,76115,518,00002,285,568
4Jan 2, 2023 17:184,85538,282,39014,500,0001,035,0002,269,184
5Jan 2, 2023 17:184,85839,368,80914,508,0001,036,0002,285,568
6Jan 2, 2023 17:184,85942,851,78514,513,0001,036,0002,269,184
7Jan 2, 2023 17:184,86737,503,36715,574,00002,527,232
8Jan 2, 2023 17:184,87133,052,79114,549,0001,039,0002,285,568
9Jan 2, 2023 17:184,87634,191,33714,562,0001,040,0002,527,232
10Jan 2, 2023 17:185,059111,806,89616,189,80202,301,952
11Jan 2, 2023 17:185,07864,053,84716,248,96002,297,856
12Jan 2, 2023 17:185,156111,223,42016,500,14002,289,664