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 listJul 20, 2024 11:57Matt StuchlikMatt StuchlikScore: 4,676Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 20, 2024 11:574,66234,023,89112,930,0001,989,0002,265,088
2Jul 20, 2024 11:574,66433,440,39213,931,000995,0002,519,040
3Jul 20, 2024 11:574,66435,780,72712,936,0001,990,0002,289,664
4Jul 20, 2024 11:574,67131,464,33812,954,0001,993,0002,265,088
5Jul 20, 2024 11:574,67431,768,57512,962,0001,994,0002,289,664
6Jul 20, 2024 11:574,67535,357,69512,967,0001,994,0002,285,568
7Jul 20, 2024 11:574,67635,654,73413,965,000997,0002,289,664
8Jul 20, 2024 11:574,68231,975,67212,985,0001,997,0002,273,280
9Jul 20, 2024 11:574,72538,364,17813,104,0002,016,0002,531,328
10Jul 20, 2024 11:574,93998,171,36815,806,23802,285,568
11Jul 20, 2024 11:574,95958,176,14215,868,93502,293,760
12Jul 20, 2024 11:574,96478,543,07215,883,71702,289,664