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 19, 2024 09:57Matt StuchlikMatt StuchlikScore: 5,705Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 19, 2024 09:575,66246,085,67018,119,00002,289,664
2Jul 19, 2024 09:575,66741,477,48016,120,0002,015,0002,273,280
3Jul 19, 2024 09:575,67439,335,75017,149,0001,008,0002,289,664
4Jul 19, 2024 09:575,68439,448,26916,168,0002,021,0002,289,664
5Jul 19, 2024 09:575,68445,742,35316,168,0002,021,0002,289,664
6Jul 19, 2024 09:575,69741,223,47716,206,0002,025,0002,273,280
7Jul 19, 2024 09:575,70535,996,13516,229,0002,028,0002,269,184
8Jul 19, 2024 09:575,70941,232,86617,254,0001,014,0002,269,184
9Jul 19, 2024 09:575,71749,942,01616,263,0002,032,0002,265,088
10Jul 19, 2024 09:575,89282,545,62918,854,70402,306,048
11Jul 19, 2024 09:575,90399,604,81118,888,98302,306,048
12Jul 19, 2024 09:575,943104,024,95019,018,64502,301,952