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 18, 2024 14:57Matt StuchlikMatt StuchlikScore: 5,335Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 18, 2024 14:575,29834,234,38514,958,0001,994,0002,269,184
2Jul 18, 2024 14:575,30539,756,38915,978,000998,0002,289,664
3Jul 18, 2024 14:575,30843,717,56215,988,000999,0002,265,088
4Jul 18, 2024 14:575,31333,959,92115,002,0002,000,0002,289,664
5Jul 18, 2024 14:575,32043,946,09815,022,0002,002,0002,289,664
6Jul 18, 2024 14:575,33143,907,72515,052,0002,007,0002,289,664
7Jul 18, 2024 14:575,33542,864,96315,063,0002,008,0002,527,232
8Jul 18, 2024 14:575,34540,740,02417,103,00002,519,040
9Jul 18, 2024 14:575,36335,136,48415,143,0002,019,0002,289,664
10Jul 18, 2024 14:575,54297,147,81417,735,81502,252,800
11Jul 18, 2024 14:575,55577,441,66717,776,85002,306,048
12Jul 18, 2024 14:575,59179,820,02317,891,84402,293,760