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 listJan 2, 2023 22:23Jack FrigaardJack FrigaardScore: 5,294Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2023 22:235,23042,749,99515,691,0001,046,0002,273,280
2Jan 2, 2023 22:235,26734,518,59414,872,0001,983,0002,289,664
3Jan 2, 2023 22:235,27038,069,09414,880,0001,984,0002,289,664
4Jan 2, 2023 22:235,27134,300,33815,875,000992,0002,289,664
5Jan 2, 2023 22:235,27345,216,54914,890,0001,985,0002,289,664
6Jan 2, 2023 22:235,27740,692,54214,899,0001,986,0002,265,088
7Jan 2, 2023 22:235,29445,631,65514,947,0001,993,0002,289,664
8Jan 2, 2023 22:235,29739,392,56615,954,000997,0002,375,680
9Jan 2, 2023 22:235,30139,326,96314,967,0001,995,0002,285,568
10Jan 2, 2023 22:235,49494,229,23417,579,92202,293,760
11Jan 2, 2023 22:235,51394,319,65017,640,84702,297,856
12Jan 2, 2023 22:235,55995,932,72517,787,61402,301,952