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 listJul 28, 2024 12:39BenBenScore: 5,031Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 28, 2024 12:394,99039,990,47314,970,000998,0002,514,944
2Jul 28, 2024 12:395,00433,560,47715,014,0001,000,0002,514,944
3Jul 28, 2024 12:395,00633,529,28414,016,0002,002,0002,359,296
4Jul 28, 2024 12:395,01641,361,50014,046,0002,006,0002,502,656
5Jul 28, 2024 12:395,02150,960,85014,059,0002,008,0002,293,760
6Jul 28, 2024 12:395,02340,133,33914,066,0002,009,0002,510,848
7Jul 28, 2024 12:395,03149,684,21014,088,0002,012,0002,293,760
8Jul 28, 2024 12:395,03232,226,25014,090,0002,012,0002,293,760
9Jul 28, 2024 12:395,04236,178,77415,125,0001,008,0002,330,624
10Jul 28, 2024 12:395,25388,154,92716,810,66302,252,800
11Jul 28, 2024 12:395,27577,080,84616,879,90502,252,800
12Jul 28, 2024 12:395,27769,201,74516,887,06002,252,800