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 3, 2022 21:02Franek KortaFranek KortaScore: 4,871Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 3, 2022 21:024,85336,065,39815,528,00002,531,328
2Sep 3, 2022 21:024,85340,133,52215,530,00002,433,024
3Sep 3, 2022 21:024,85837,698,56412,436,0003,109,0002,428,928
4Sep 3, 2022 21:024,85828,871,88215,547,00002,433,024
5Sep 3, 2022 21:024,86033,808,21714,516,0001,036,0002,531,328
6Sep 3, 2022 21:024,86633,847,50515,572,00002,433,024
7Sep 3, 2022 21:024,87132,691,69614,547,0001,039,0002,269,184
8Sep 3, 2022 21:024,87843,601,67114,568,0001,040,0002,269,184
9Sep 3, 2022 21:024,89044,634,53312,519,0003,129,0002,433,024
10Sep 3, 2022 21:025,00377,801,54516,010,99402,207,744
11Sep 3, 2022 21:025,00976,134,03316,028,27902,265,088
12Sep 3, 2022 21:025,01384,156,83216,042,53402,203,648