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 listApr 2, 2024 23:10Drew GarciaDrew GarciaScore: 5,651Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 2, 2024 23:005,59747,673,69215,921,0001,990,0002,281,472
2Apr 2, 2024 23:005,60038,201,37117,919,00002,281,472
3Apr 2, 2024 23:105,60651,602,47715,945,0001,993,0002,281,472
4Apr 2, 2024 23:105,61144,619,05715,960,0001,995,0002,281,472
5Apr 2, 2024 23:005,61548,639,66115,972,0001,996,0002,281,472
6Apr 2, 2024 23:105,61752,315,50215,978,0001,997,0002,281,472
7Apr 2, 2024 23:005,61734,910,68115,978,0001,997,0002,277,376
8Apr 2, 2024 23:105,62145,252,28415,988,0001,998,0002,289,664
9Apr 2, 2024 23:005,62243,776,89016,990,000999,0002,281,472
10Apr 2, 2024 23:005,62441,331,53415,997,0001,999,0002,277,376
11Apr 2, 2024 23:105,64635,695,78616,059,0002,007,0002,281,472
12Apr 2, 2024 23:005,65035,608,52013,057,0005,022,0002,277,376
13Apr 2, 2024 23:005,65149,967,10716,074,0002,009,0002,281,472
14Apr 2, 2024 23:105,65245,513,19414,068,0004,019,0002,281,472
15Apr 2, 2024 23:105,65643,307,83217,094,0001,005,0002,392,064
16Apr 2, 2024 23:105,71636,374,63016,259,0002,032,0002,281,472
17Apr 2, 2024 23:105,72848,155,79017,310,0001,018,0002,281,472
18Apr 2, 2024 23:005,75539,253,56416,370,0002,046,0002,269,184
19Apr 2, 2024 23:005,91284,185,97018,918,15202,179,072
20Apr 2, 2024 23:105,91985,253,47718,942,09202,306,048
21Apr 2, 2024 23:105,92791,274,72618,967,99702,297,856
22Apr 2, 2024 23:005,92779,702,93518,966,21602,179,072
23Apr 2, 2024 23:005,95191,290,09619,042,58302,183,168
24Apr 2, 2024 23:105,97590,774,17619,121,21102,187,264