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 21, 2023 16:24gchebanovgchebanovScore: 5,607Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 21, 2023 16:245,57935,393,62216,863,000991,0002,265,088
2Jul 21, 2023 16:245,58443,332,00016,876,000992,0002,269,184
3Jul 21, 2023 16:245,58542,650,32516,880,000992,0002,265,088
4Jul 21, 2023 16:245,58652,142,70015,890,0001,986,0002,387,968
5Jul 21, 2023 16:245,58746,716,86215,891,0001,986,0002,387,968
6Jul 21, 2023 16:245,59747,069,00316,858,0001,053,0002,392,064
7Jul 21, 2023 16:245,60734,244,07516,946,000996,0002,265,088
8Jul 21, 2023 16:245,62634,473,62717,003,0001,000,0002,265,088
9Jul 21, 2023 16:245,62936,839,65517,012,0001,000,0002,527,232
10Jul 21, 2023 16:245,76992,701,24318,459,37402,285,568
11Jul 21, 2023 16:245,77592,608,85718,481,44002,269,184
12Jul 21, 2023 16:245,82264,749,73118,630,30502,277,376