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 listJun 9, 2024 14:42AndreyTSAndreyTSScore: 5,269Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 9, 2024 14:425,22040,361,98416,705,00002,277,376
2Jun 9, 2024 14:425,22535,984,70515,676,0001,045,0002,289,664
3Jun 9, 2024 14:425,22637,162,09115,679,0001,045,0002,281,472
4Jun 9, 2024 14:425,22743,853,58616,727,00002,273,280
5Jun 9, 2024 14:425,23149,060,72716,740,00002,277,376
6Jun 9, 2024 14:425,26439,202,75914,864,0001,981,0002,285,568
7Jun 9, 2024 14:425,26941,806,67815,869,000991,0002,531,328
8Jun 9, 2024 14:425,27241,806,23014,886,0001,984,0002,281,472
9Jun 9, 2024 14:425,27544,757,48615,888,000993,0002,289,664
10Jun 9, 2024 14:425,48069,958,09317,537,51502,179,072
11Jun 9, 2024 14:425,55196,925,05817,761,69502,297,856
12Jun 9, 2024 14:425,56772,466,50317,813,62402,297,856