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 8, 2023 10:26Andrew MoonAndrew MoonScore: 5,498Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 8, 2023 10:265,46842,813,43416,470,0001,029,0002,265,088
2Jul 8, 2023 10:265,47241,150,01817,511,00002,375,680
3Jul 8, 2023 10:265,47841,008,71416,497,0001,031,0002,400,256
4Jul 8, 2023 10:265,47838,363,46117,528,00002,265,088
5Jul 8, 2023 10:265,48033,163,83016,506,0001,031,0002,387,968
6Jul 8, 2023 10:265,49334,322,16117,578,00002,265,088
7Jul 8, 2023 10:265,49840,119,04317,592,00002,502,656
8Jul 8, 2023 10:265,50843,636,70417,626,00002,392,064
9Jul 8, 2023 10:265,51046,009,09116,594,0001,037,0002,392,064
10Jul 8, 2023 10:265,68261,033,79218,183,69902,281,472
11Jul 8, 2023 10:265,69383,295,42618,218,38102,285,568
12Jul 8, 2023 10:265,69796,802,96418,230,45202,281,472