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 16, 2024 11:05Joad NacerJoad NacerScore: 5,894Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 16, 2024 11:055,83348,440,10117,628,0001,036,0002,273,280
2Apr 16, 2024 11:055,84143,458,91118,692,00002,289,664
3Apr 16, 2024 11:055,84346,477,94217,661,0001,038,0002,273,280
4Apr 16, 2024 11:055,84544,315,05917,666,0001,039,0002,523,136
5Apr 16, 2024 11:055,85243,857,10017,686,0001,040,0002,387,968
6Apr 16, 2024 11:055,85242,733,85717,686,0001,040,0002,519,040
7Apr 16, 2024 11:055,88347,779,68217,834,000990,0002,289,664
8Apr 16, 2024 11:055,88543,535,58017,841,000991,0002,523,136
9Apr 16, 2024 11:055,89146,207,14116,867,0001,984,0002,289,664
10Apr 16, 2024 11:055,89246,447,57016,869,0001,984,0002,289,664
11Apr 16, 2024 11:055,89249,046,22016,871,0001,984,0002,289,664
12Apr 16, 2024 11:055,89447,248,15916,876,0001,985,0002,265,088
13Apr 16, 2024 11:055,89439,378,20516,876,0001,985,0002,289,664
14Apr 16, 2024 11:055,89646,628,26817,874,000993,0002,289,664
15Apr 16, 2024 11:055,89845,016,77217,882,000993,0002,289,664
16Apr 16, 2024 11:055,90146,768,56017,891,000993,0002,269,184
17Apr 16, 2024 11:055,90148,674,23616,896,0001,987,0002,289,664
18Apr 16, 2024 11:055,90342,585,80816,903,0001,988,0002,289,664
19Apr 16, 2024 11:056,07488,419,93119,437,55502,174,976
20Apr 16, 2024 11:056,07694,881,21619,442,62602,179,072
21Apr 16, 2024 11:056,07993,145,29619,451,60902,306,048
22Apr 16, 2024 11:056,08693,192,92519,474,92202,179,072
23Apr 16, 2024 11:056,08789,265,09219,478,13602,293,760
24Apr 16, 2024 11:056,11280,678,42819,558,39302,301,952