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 17, 2024 15:42Joad NacerJoad NacerScore: 5,321Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 17, 2024 15:425,27143,338,00315,876,000992,0002,273,280
2Apr 17, 2024 15:425,28341,878,38616,905,00002,289,664
3Apr 17, 2024 15:425,28342,779,50814,917,0001,988,0002,289,664
4Apr 17, 2024 15:425,29235,823,71714,943,0001,992,0002,277,376
5Apr 17, 2024 15:425,30940,025,66214,992,0001,998,0002,269,184
6Apr 17, 2024 15:425,31536,093,54416,009,0001,000,0002,523,136
7Apr 17, 2024 15:425,32140,469,31216,025,0001,001,0002,273,280
8Apr 17, 2024 15:425,32336,903,48515,030,0002,004,0002,281,472
9Apr 17, 2024 15:425,36441,111,76615,147,0002,019,0002,273,280
10Apr 17, 2024 15:425,50776,787,05617,622,79302,306,048
11Apr 17, 2024 15:425,55086,150,88217,758,79902,179,072
12Apr 17, 2024 15:425,58296,891,79217,862,39502,179,072