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 listOct 6, 2023 07:10Pavel ZagrebinPavel ZagrebinScore: 5,350Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 6, 2023 07:105,30838,779,73014,986,0001,998,0002,396,160
2Oct 6, 2023 07:105,32746,799,20115,041,0002,005,0002,269,184
3Oct 6, 2023 07:105,32830,593,58815,045,0002,006,0002,265,088
4Oct 6, 2023 07:105,34047,220,23016,084,0001,005,0002,506,752
5Oct 6, 2023 07:105,34540,549,07216,097,0001,006,0002,527,232
6Oct 6, 2023 07:105,34646,692,03816,100,0001,006,0002,265,088
7Oct 6, 2023 07:105,35035,108,60215,105,0002,014,0002,265,088
8Oct 6, 2023 07:105,35634,784,74116,130,0001,008,0002,392,064
9Oct 6, 2023 07:105,35935,302,85515,131,0002,017,0002,392,064
10Oct 6, 2023 07:105,52189,408,93617,668,28202,273,280
11Oct 6, 2023 07:105,57975,696,04017,854,16202,277,376
12Oct 6, 2023 07:105,59581,431,63917,903,58702,277,376