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 listJan 2, 2023 22:23Jack FrigaardJack FrigaardScore: 5,275Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2023 22:235,22433,474,77816,717,00002,273,280
2Jan 2, 2023 22:235,26544,253,10016,848,00002,265,088
3Jan 2, 2023 22:235,26942,820,38415,869,000991,0002,269,184
4Jan 2, 2023 22:235,27135,260,47615,875,000992,0002,289,664
5Jan 2, 2023 22:235,27246,147,97015,878,000992,0002,285,568
6Jan 2, 2023 22:235,27442,399,23014,893,0001,985,0002,281,472
7Jan 2, 2023 22:235,27542,114,60815,888,000993,0002,265,088
8Jan 2, 2023 22:235,27845,427,56714,902,0001,986,0002,519,040
9Jan 2, 2023 22:235,28042,796,71815,902,000993,0002,289,664
10Jan 2, 2023 22:235,47584,582,75417,518,52602,256,896
11Jan 2, 2023 22:235,483101,897,80517,546,06502,301,952
12Jan 2, 2023 22:235,54980,281,54517,756,69702,297,856