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 22:10Franek KortaFranek KortaScore: 5,086Success
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 22:105,04532,284,68115,135,0001,009,0002,433,024
2Sep 3, 2022 22:105,05141,109,45915,154,0001,010,0002,437,120
3Sep 3, 2022 22:105,05831,552,26514,162,0002,023,0002,428,928
4Sep 3, 2022 22:105,07134,066,58814,198,0002,028,0002,269,184
5Sep 3, 2022 22:105,07333,021,75914,204,0002,029,0002,531,328
6Sep 3, 2022 22:105,08132,916,85614,228,0002,032,0002,437,120
7Sep 3, 2022 22:105,08639,790,73915,257,0001,017,0002,265,088
8Sep 3, 2022 22:105,09135,176,29015,272,0001,018,0002,437,120
9Sep 3, 2022 22:105,11489,651,54916,364,24402,179,072
10Sep 3, 2022 22:105,13131,337,21516,418,00002,531,328
11Sep 3, 2022 22:105,17061,710,19816,543,90502,195,456
12Sep 3, 2022 22:105,20280,496,46916,646,59702,195,456