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 listSep 2, 2022 19:10Franek KortaFranek KortaScore: 4,838Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 2, 2022 19:104,81130,632,65014,368,0001,026,0002,375,680
2Sep 2, 2022 19:104,81339,470,42914,374,0001,026,0002,260,992
3Sep 2, 2022 19:104,81531,303,34514,381,0001,027,0002,519,040
4Sep 2, 2022 19:104,82435,102,76814,408,0001,029,0002,519,040
5Sep 2, 2022 19:104,83336,767,01414,434,0001,031,0002,519,040
6Sep 2, 2022 19:104,83737,133,00814,446,0001,031,0002,502,656
7Sep 2, 2022 19:104,83838,236,54314,450,0001,032,0002,469,888
8Sep 2, 2022 19:104,84037,633,27715,489,00002,260,992
9Sep 2, 2022 19:104,85242,291,63414,491,0001,035,0002,519,040
10Sep 2, 2022 19:105,05684,561,97716,178,84702,277,376
11Sep 2, 2022 19:105,07671,685,73116,241,91902,277,376
12Sep 2, 2022 19:105,07695,212,61216,242,73602,281,472