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:38Jack FrigaardJack FrigaardScore: 5,340Success
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:385,30540,898,93115,978,000998,0002,285,568
2Jan 2, 2023 17:385,30944,500,09314,992,0001,998,0002,285,568
3Jan 2, 2023 17:385,31138,837,51015,995,000999,0002,269,184
4Jan 2, 2023 17:385,32540,432,06016,037,0001,002,0002,277,376
5Jan 2, 2023 17:385,32642,135,91016,042,0001,002,0002,285,568
6Jan 2, 2023 17:385,33136,052,24515,053,0002,007,0002,523,136
7Jan 2, 2023 17:385,34033,412,18515,077,0002,010,0002,285,568
8Jan 2, 2023 17:385,35238,759,03815,111,0002,014,0002,273,280
9Jan 2, 2023 17:385,38143,079,87315,194,0002,025,0002,285,568
10Jan 2, 2023 17:385,53367,468,23517,704,64002,293,760
11Jan 2, 2023 17:385,56088,412,14317,793,07502,306,048
12Jan 2, 2023 17:385,56275,547,58417,797,52802,301,952