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 listApr 20, 2024 15:06Joad NacerJoad NacerScore: 4,988Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2024 15:064,93346,495,46014,799,000986,0002,293,760
2Apr 20, 2024 15:064,95441,070,93813,871,0001,981,0002,273,280
3Apr 20, 2024 15:064,95430,284,81714,863,000990,0002,289,664
4Apr 20, 2024 15:064,95446,723,44213,873,0001,981,0002,289,664
5Apr 20, 2024 15:064,95847,303,85515,865,00002,273,280
6Apr 20, 2024 15:064,95939,601,26213,886,0001,983,0002,289,664
7Apr 20, 2024 15:064,98838,278,24413,968,0001,995,0002,289,664
8Apr 20, 2024 15:064,99833,906,77913,995,0001,999,0002,289,664
9Apr 20, 2024 15:065,00440,489,72414,011,0002,001,0002,289,664
10Apr 20, 2024 15:065,12783,423,76716,404,84102,301,952
11Apr 20, 2024 15:065,15095,098,11516,478,40502,179,072
12Apr 20, 2024 15:065,15582,814,97616,496,61302,297,856