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:47Jack FrigaardJack FrigaardScore: 4,907Success
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:474,85035,058,99914,486,0001,034,0002,285,568
2Jan 2, 2023 16:474,85432,072,84314,497,0001,035,0002,285,568
3Jan 2, 2023 16:474,85942,406,84414,514,0001,036,0002,285,568
4Jan 2, 2023 16:474,86332,418,31414,525,0001,037,0002,285,568
5Jan 2, 2023 16:474,88833,613,71415,640,00002,285,568
6Jan 2, 2023 16:474,89133,848,84414,609,0001,043,0002,367,488
7Jan 2, 2023 16:474,90745,929,49014,720,000981,0002,277,376
8Jan 2, 2023 16:474,91447,450,05314,678,0001,048,0002,285,568
9Jan 2, 2023 16:474,91633,248,42914,683,0001,048,0002,273,280
10Jan 2, 2023 16:475,11479,012,36416,364,05302,301,952
11Jan 2, 2023 16:475,12982,188,74416,414,14902,306,048
12Jan 2, 2023 16:475,16581,898,92416,528,59802,179,072