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:21Jack FrigaardJack FrigaardScore: 5,162Success
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:215,10338,044,94314,288,0002,041,0002,289,664
2Jan 2, 2023 22:215,11939,120,33915,357,0001,023,0002,281,472
3Jan 2, 2023 22:215,12442,413,97915,372,0001,024,0002,531,328
4Jan 2, 2023 22:215,15242,919,95614,426,0002,060,0002,273,280
5Jan 2, 2023 22:215,15441,703,67215,464,0001,030,0002,289,664
6Jan 2, 2023 22:215,16234,679,36815,487,0001,032,0002,289,664
7Jan 2, 2023 22:215,16239,833,78415,487,0001,032,0002,289,664
8Jan 2, 2023 22:215,17142,079,89015,514,0001,034,0002,289,664
9Jan 2, 2023 22:215,22144,242,37015,663,0001,044,0002,289,664
10Jan 2, 2023 22:215,35573,377,08717,137,34002,297,856
11Jan 2, 2023 22:215,35786,844,05317,142,04502,301,952
12Jan 2, 2023 22:215,35895,814,07817,146,88402,256,896