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:53Jack FrigaardJack FrigaardScore: 5,013Success
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:534,97233,249,62514,917,000994,0002,269,184
2Jan 2, 2023 16:534,97438,862,49713,927,0001,989,0002,527,232
3Jan 2, 2023 16:534,98333,124,65113,951,0001,993,0002,285,568
4Jan 2, 2023 16:534,98338,919,14713,953,0001,993,0002,269,184
5Jan 2, 2023 16:534,99631,784,53513,990,0001,998,0002,285,568
6Jan 2, 2023 16:535,00642,056,02915,017,0001,001,0002,285,568
7Jan 2, 2023 16:535,01339,429,12114,035,0002,005,0002,285,568
8Jan 2, 2023 16:535,01337,589,39414,037,0002,005,0002,269,184
9Jan 2, 2023 16:535,05643,220,95614,158,0002,022,0002,523,136
10Jan 2, 2023 16:535,20970,907,91216,667,78402,301,952
11Jan 2, 2023 16:535,22471,699,04916,716,45602,285,568
12Jan 2, 2023 16:535,23197,934,27116,740,46902,301,952