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 listAug 3, 2022 17:26Sergey StreminSergey StreminScore: 5,294Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 3, 2022 17:265,27445,486,27516,878,00002,265,088
2Aug 3, 2022 17:265,27432,534,33514,892,0001,985,0002,396,160
3Aug 3, 2022 17:265,27546,932,39414,894,0001,985,0002,387,968
4Aug 3, 2022 17:265,27946,914,21015,839,0001,055,0002,383,872
5Aug 3, 2022 17:265,27941,614,50515,899,000993,0002,387,968
6Aug 3, 2022 17:265,28148,928,06714,911,0001,988,0002,387,968
7Aug 3, 2022 17:265,28141,286,30214,912,0001,988,0002,383,872
8Aug 3, 2022 17:265,28547,955,35314,923,0001,989,0002,392,064
9Aug 3, 2022 17:265,28644,920,38116,916,00002,265,088
10Aug 3, 2022 17:265,28633,934,13515,921,000995,0002,383,872
11Aug 3, 2022 17:265,28835,780,47314,931,0001,990,0002,265,088
12Aug 3, 2022 17:265,29344,865,30915,940,000996,0002,265,088
13Aug 3, 2022 17:265,29448,072,71815,944,000996,0002,383,872
14Aug 3, 2022 17:265,29644,171,23915,950,000996,0002,392,064
15Aug 3, 2022 17:265,29838,922,12214,959,0001,994,0002,265,088
16Aug 3, 2022 17:265,30836,187,27414,988,0001,998,0002,265,088
17Aug 3, 2022 17:265,30935,887,75814,990,0001,998,0002,265,088
18Aug 3, 2022 17:265,31040,919,43615,992,000999,0002,506,752
19Aug 3, 2022 17:265,50479,743,36217,611,42302,281,472
20Aug 3, 2022 17:265,50491,470,64717,613,64102,277,376
21Aug 3, 2022 17:265,50688,513,64217,620,37602,285,568
22Aug 3, 2022 17:265,51191,780,07617,635,97702,277,376
23Aug 3, 2022 17:265,51180,155,31717,634,77602,273,280
24Aug 3, 2022 17:265,54476,104,37917,740,62002,285,568