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 17, 2024 18:05Joad NacerJoad NacerScore: 4,956Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 17, 2024 18:054,88432,667,20314,587,0001,041,0002,289,664
2Apr 17, 2024 18:054,89131,054,17814,607,0001,043,0002,289,664
3Apr 17, 2024 18:054,90736,405,92415,702,00002,289,664
4Apr 17, 2024 18:054,90745,626,66114,655,0001,046,0002,289,664
5Apr 17, 2024 18:054,90835,267,40214,659,0001,047,0002,289,664
6Apr 17, 2024 18:054,90934,666,62214,661,0001,047,0002,289,664
7Apr 17, 2024 18:054,91032,716,12715,712,00002,285,568
8Apr 17, 2024 18:054,91142,587,66214,669,0001,047,0002,289,664
9Apr 17, 2024 18:054,91431,915,13614,677,0001,048,0002,281,472
10Apr 17, 2024 18:054,91433,729,06214,676,0001,048,0002,523,136
11Apr 17, 2024 18:054,91533,738,05914,679,0001,048,0002,273,280
12Apr 17, 2024 18:054,95446,726,08715,853,00002,527,232
13Apr 17, 2024 18:054,95635,002,79813,877,0001,982,0002,273,280
14Apr 17, 2024 18:054,95840,579,17613,883,0001,983,0002,527,232
15Apr 17, 2024 18:054,95947,829,34013,887,0001,983,0002,289,664
16Apr 17, 2024 18:054,96132,996,57714,884,000992,0002,269,184
17Apr 17, 2024 18:054,96344,683,81113,897,0001,985,0002,289,664
18Apr 17, 2024 18:054,97139,639,36713,919,0001,988,0002,289,664
19Apr 17, 2024 18:055,16283,399,84116,518,96102,174,976
20Apr 17, 2024 18:055,16977,335,59616,541,15102,301,952
21Apr 17, 2024 18:055,17961,474,15316,573,50702,174,976
22Apr 17, 2024 18:055,18294,207,22516,581,46102,174,976
23Apr 17, 2024 18:055,19086,102,21716,607,04002,293,760
24Apr 17, 2024 18:055,21377,457,50516,682,43402,289,664