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 18, 2024 21:52Franek KortaFranek KortaScore: 4,736Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 18, 2024 21:524,69540,553,41714,022,0001,001,0002,441,216
2Jan 18, 2024 21:524,70529,325,71814,053,0001,003,0002,531,328
3Jan 18, 2024 21:524,70635,368,99112,047,0003,011,0002,531,328
4Jan 18, 2024 21:524,70737,021,91514,059,0001,004,0002,531,328
5Jan 18, 2024 21:524,71633,971,75412,072,0003,018,0002,531,328
6Jan 18, 2024 21:524,71835,791,25913,085,0002,013,0002,441,216
7Jan 18, 2024 21:524,73637,956,77114,145,0001,010,0002,531,328
8Jan 18, 2024 21:524,74130,384,67913,149,0002,023,0002,531,328
9Jan 18, 2024 21:524,74134,976,93614,161,0001,011,0002,433,024
10Jan 18, 2024 21:524,94364,826,06415,818,59102,203,648
11Jan 18, 2024 21:524,97073,986,26315,903,04602,195,456
12Jan 18, 2024 21:524,97580,121,96715,919,38902,203,648