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 12:26Matt StuchlikMatt StuchlikScore: 4,848Success
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 12:264,80432,523,26513,324,0002,049,0002,277,376
2Jul 20, 2024 12:264,81042,797,24615,393,00002,289,664
3Jul 20, 2024 12:264,81233,724,68014,371,0001,026,0002,269,184
4Jul 20, 2024 12:264,83140,921,49914,428,0001,030,0002,289,664
5Jul 20, 2024 12:264,84236,749,45414,461,0001,032,0002,289,664
6Jul 20, 2024 12:264,84837,326,03414,479,0001,034,0002,273,280
7Jul 20, 2024 12:264,84835,262,77014,480,0001,034,0002,285,568
8Jul 20, 2024 12:264,86932,779,83714,544,0001,038,0002,375,680
9Jul 20, 2024 12:264,87732,073,39314,567,0001,040,0002,289,664
10Jul 20, 2024 12:265,11991,290,48616,379,54602,170,880
11Jul 20, 2024 12:265,11993,243,08716,380,86302,293,760
12Jul 20, 2024 12:265,12289,512,39316,390,41402,293,760