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 4, 2023 07:24Jörn HorstmannJörn HorstmannScore: 5,985Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2023 07:245,90450,128,90717,900,000994,000262,144
2Jul 4, 2023 07:245,92253,326,06816,956,0001,994,000262,144
3Jul 4, 2023 07:245,92341,291,49717,957,000997,000188,416
4Jul 4, 2023 07:245,96677,300,85219,090,13902,256,896
5Jul 4, 2023 07:245,97652,001,64417,110,0002,012,000249,856
6Jul 4, 2023 07:245,978106,776,92219,129,01502,224,128
7Jul 4, 2023 07:245,98535,982,56717,136,0002,016,000253,952
8Jul 4, 2023 07:245,99593,614,55119,185,52002,228,224
9Jul 4, 2023 07:246,00736,390,42718,211,0001,011,000188,416
10Jul 4, 2023 07:246,04244,844,86117,298,0002,035,000188,416
11Jul 4, 2023 07:246,08044,904,46217,408,0002,048,000348,160
12Jul 4, 2023 07:246,08350,404,01417,416,0002,048,0002,289,664