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 21, 2024 11:05Matt StuchlikMatt StuchlikScore: 4,964Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 21, 2024 11:054,95532,836,62014,866,000991,0002,281,472
2Jul 21, 2024 11:054,95841,388,40814,873,000991,0002,289,664
3Jul 21, 2024 11:054,95843,418,24213,881,0001,983,0002,523,136
4Jul 21, 2024 11:054,95840,511,92014,808,0001,057,0002,289,664
5Jul 21, 2024 11:054,96148,157,53715,875,00002,265,088
6Jul 21, 2024 11:054,96242,466,79613,894,0001,984,0002,289,664
7Jul 21, 2024 11:054,96442,167,55613,899,0001,985,0002,289,664
8Jul 21, 2024 11:054,96642,622,96914,898,000993,0002,269,184
9Jul 21, 2024 11:054,96840,258,30414,906,000993,0002,289,664
10Jul 21, 2024 11:055,18778,374,99016,598,23102,289,664
11Jul 21, 2024 11:055,21485,763,30916,686,11002,289,664
12Jul 21, 2024 11:055,21782,300,90816,692,80902,289,664