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 listJun 10, 2024 08:51Joad NacerJoad NacerScore: 5,013Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 10, 2024 08:514,97437,656,46114,924,000994,0002,269,184
2Jun 10, 2024 08:514,98339,138,98714,951,000996,0002,289,664
3Jun 10, 2024 08:514,98833,793,08714,963,000997,0002,289,664
4Jun 10, 2024 08:515,00140,514,88514,002,0002,000,0002,289,664
5Jun 10, 2024 08:515,00240,027,65714,006,0002,000,0002,289,664
6Jun 10, 2024 08:515,00836,054,52014,024,0002,003,0002,273,280
7Jun 10, 2024 08:515,01339,235,05814,038,0002,005,0002,265,088
8Jun 10, 2024 08:515,02333,620,99915,071,0001,004,0002,289,664
9Jun 10, 2024 08:515,02435,760,68914,068,0002,009,0002,285,568
10Jun 10, 2024 08:515,24072,787,96816,767,84302,301,952
11Jun 10, 2024 08:515,26077,712,16116,833,03602,183,168
12Jun 10, 2024 08:515,26962,778,62616,862,20702,174,976