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 19, 2024 10:04Matt StuchlikMatt StuchlikScore: 5,491Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 19, 2024 10:045,42333,088,93416,334,0001,020,0002,285,568
2Jul 19, 2024 10:045,43132,881,28716,358,0001,022,0002,289,664
3Jul 19, 2024 10:045,44340,864,86517,416,00002,269,184
4Jul 19, 2024 10:045,45136,348,83516,416,0001,026,0002,289,664
5Jul 19, 2024 10:045,45333,957,91117,451,00002,289,664
6Jul 19, 2024 10:045,45336,212,15317,451,00002,289,664
7Jul 19, 2024 10:045,49138,367,19016,539,0001,033,0002,273,280
8Jul 19, 2024 10:045,49235,223,69517,574,00002,277,376
9Jul 19, 2024 10:045,50350,350,61616,575,0001,035,0002,289,664
10Jul 19, 2024 10:045,67997,991,80818,172,33002,174,976
11Jul 19, 2024 10:045,69587,646,43518,225,59302,306,048
12Jul 19, 2024 10:045,70789,325,92518,261,67802,183,168