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 16:18Jack FrigaardJack FrigaardScore: 5,281Success
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 16:185,22042,965,41216,705,00002,273,280
2Jan 2, 2023 16:185,27333,906,86514,889,0001,985,0002,273,280
3Jan 2, 2023 16:185,27337,157,22315,882,000992,0002,285,568
4Jan 2, 2023 16:185,27434,140,28314,891,0001,985,0002,273,280
5Jan 2, 2023 16:185,27537,892,52414,894,0001,985,0002,285,568
6Jan 2, 2023 16:185,27645,319,58814,898,0001,986,0002,285,568
7Jan 2, 2023 16:185,28151,341,97315,905,000994,0002,285,568
8Jan 2, 2023 16:185,28242,488,57815,908,000994,0002,277,376
9Jan 2, 2023 16:185,28342,046,42915,911,000994,0002,273,280
10Jan 2, 2023 16:185,45055,118,26917,441,45602,293,760
11Jan 2, 2023 16:185,47065,868,64817,502,55902,301,952
12Jan 2, 2023 16:185,472101,630,69517,509,25802,293,760