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 2, 2022 19:08Franek KortaFranek KortaScore: 4,833Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 2, 2022 19:084,77541,749,57213,243,0002,037,0002,523,136
2Sep 2, 2022 19:084,81237,669,86914,371,0001,026,0002,523,136
3Sep 2, 2022 19:084,82037,517,82313,368,0002,056,0002,383,872
4Sep 2, 2022 19:084,82043,121,52013,369,0002,056,0002,523,136
5Sep 2, 2022 19:084,82935,464,70314,422,0001,030,0002,523,136
6Sep 2, 2022 19:084,83335,585,13912,373,0003,093,0002,523,136
7Sep 2, 2022 19:084,83336,043,14513,404,0002,062,0002,375,680
8Sep 2, 2022 19:084,83531,420,45413,409,0002,062,0002,523,136
9Sep 2, 2022 19:084,85335,024,22914,495,0001,035,0002,523,136
10Sep 2, 2022 19:085,05970,850,42816,188,83002,273,280
11Sep 2, 2022 19:085,09375,399,42916,298,15102,281,472
12Sep 2, 2022 19:085,09797,743,37216,311,82402,269,184