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 18, 2024 12:15Matt StuchlikMatt StuchlikScore: 5,472Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 18, 2024 12:155,43843,903,76417,401,00002,289,664
2Jul 18, 2024 12:155,45637,596,79816,432,0001,027,0002,273,280
3Jul 18, 2024 12:155,45741,841,20516,436,0001,027,0002,273,280
4Jul 18, 2024 12:155,45946,572,59716,441,0001,027,0002,289,664
5Jul 18, 2024 12:155,46634,461,66816,462,0001,028,0002,289,664
6Jul 18, 2024 12:155,46639,906,75116,463,0001,028,0002,273,280
7Jul 18, 2024 12:155,47240,238,24115,564,0001,945,0002,289,664
8Jul 18, 2024 12:155,48539,235,67416,520,0001,032,0002,289,664
9Jul 18, 2024 12:155,49237,168,05316,540,0001,033,0002,289,664
10Jul 18, 2024 12:155,69786,635,35218,229,75002,301,952
11Jul 18, 2024 12:155,72680,508,17118,323,42902,306,048
12Jul 18, 2024 12:155,76185,923,59018,435,85402,297,856