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 3, 2023 22:06Jack FrigaardJack FrigaardScore: 5,275Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 3, 2023 22:065,21433,317,92115,644,0001,042,0002,289,664
2Jan 3, 2023 22:065,21933,955,22416,700,00002,281,472
3Jan 3, 2023 22:065,26736,322,19214,872,0001,982,0002,531,328
4Jan 3, 2023 22:065,26743,355,09714,872,0001,983,0002,273,280
5Jan 3, 2023 22:065,26843,948,64214,873,0001,983,0002,289,664
6Jan 3, 2023 22:065,27040,012,72315,873,000992,0002,289,664
7Jan 3, 2023 22:065,27542,801,20514,894,0001,985,0002,269,184
8Jan 3, 2023 22:065,27543,637,36014,895,0001,986,0002,535,424
9Jan 3, 2023 22:065,27542,357,38814,895,0001,986,0002,383,872
10Jan 3, 2023 22:065,41788,324,07417,333,99702,293,760
11Jan 3, 2023 22:065,45079,050,71317,439,80202,289,664
12Jan 3, 2023 22:065,45671,552,30717,460,52402,293,760