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 listMay 8, 2024 21:58Joad NacerJoad NacerScore: 5,178Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 8, 2024 21:585,14143,857,71715,424,0001,028,0002,277,376
2May 8, 2024 21:585,14832,379,65415,443,0001,029,0002,281,472
3May 8, 2024 21:585,15842,032,21215,475,0001,031,0002,289,664
4May 8, 2024 21:585,17236,861,05916,550,00002,289,664
5May 8, 2024 21:585,17632,085,23615,529,0001,035,0002,383,872
6May 8, 2024 21:585,17743,488,26715,530,0001,035,0002,273,280
7May 8, 2024 21:585,17832,794,35115,536,0001,035,0002,289,664
8May 8, 2024 21:585,18951,089,26316,605,00002,289,664
9May 8, 2024 21:585,26133,862,24215,846,000990,0002,277,376
10May 8, 2024 21:585,33893,078,43717,081,36502,174,976
11May 8, 2024 21:585,38880,525,61117,240,50002,174,976
12May 8, 2024 21:585,40081,007,99917,279,72102,293,760