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:59Franek KortaFranek KortaScore: 4,868Success
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:594,84030,480,84015,487,00002,531,328
2Sep 3, 2022 21:594,84633,279,19515,507,00002,531,328
3Sep 3, 2022 21:594,86132,372,17415,555,00002,531,328
4Sep 3, 2022 21:594,86432,347,36715,566,00002,437,120
5Sep 3, 2022 21:594,86530,985,01015,568,00002,531,328
6Sep 3, 2022 21:594,86731,960,62415,574,00002,433,024
7Sep 3, 2022 21:594,86833,511,86313,351,0002,225,0002,531,328
8Sep 3, 2022 21:594,87837,315,55515,611,00002,269,184
9Sep 3, 2022 21:594,88640,606,87113,551,0002,084,0002,531,328
10Sep 3, 2022 21:595,03086,510,63616,095,42502,199,552
11Sep 3, 2022 21:595,03455,669,29016,109,65202,207,744
12Sep 3, 2022 21:595,05673,115,71116,180,00102,195,456