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 listJul 9, 2023 00:13Andrew MoonAndrew MoonScore: 5,272Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 9, 2023 00:135,21345,072,85315,639,0001,042,0002,265,088
2Jul 9, 2023 00:135,22546,567,49716,721,00002,392,064
3Jul 9, 2023 00:135,22633,485,58116,724,00002,265,088
4Jul 9, 2023 00:135,25833,798,06615,838,000989,0002,265,088
5Jul 9, 2023 00:135,26047,412,44114,851,0001,980,0002,265,088
6Jul 9, 2023 00:135,27138,066,40715,874,000992,0002,265,088
7Jul 9, 2023 00:135,27237,821,23016,869,00002,527,232
8Jul 9, 2023 00:135,27246,609,30616,870,00002,265,088
9Jul 9, 2023 00:135,27345,269,70415,880,000992,0002,510,848
10Jul 9, 2023 00:135,46266,750,82517,479,87602,277,376
11Jul 9, 2023 00:135,46564,380,44617,489,10902,281,472
12Jul 9, 2023 00:135,51694,718,28917,651,93202,273,280