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 listJul 19, 2022 20:58Franek KortaFranek KortaScore: 5,410Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 19, 2022 20:585,36943,087,29415,159,0002,021,0002,260,992
2Jul 19, 2022 20:585,37333,505,82615,171,0002,022,0002,387,968
3Jul 19, 2022 20:585,38244,681,28316,210,0001,013,0002,519,040
4Jul 19, 2022 20:585,39933,914,07717,276,00002,387,968
5Jul 19, 2022 20:585,40247,769,00016,270,0001,016,0002,519,040
6Jul 19, 2022 20:585,40343,430,24015,256,0002,034,0002,392,064
7Jul 19, 2022 20:585,41040,695,35115,275,0002,036,0002,519,040
8Jul 19, 2022 20:585,41539,872,48616,310,0001,019,0002,519,040
9Jul 19, 2022 20:585,42049,672,58517,345,00002,519,040
10Jul 19, 2022 20:585,64161,305,07418,050,43402,285,568
11Jul 19, 2022 20:585,65489,981,38418,093,62002,277,376
12Jul 19, 2022 20:585,66888,878,91818,136,13402,285,568