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 02:40Joad NacerJoad NacerScore: 5,523Success
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 02:405,48330,771,12416,512,0001,032,0002,289,664
2Apr 17, 2024 02:405,48538,602,74117,551,00002,289,664
3Apr 17, 2024 02:405,49042,883,03616,536,0001,033,0002,277,376
4Apr 17, 2024 02:405,49938,502,60517,597,00002,281,472
5Apr 17, 2024 02:405,50443,687,67417,614,00002,281,472
6Apr 17, 2024 02:405,52144,091,07616,629,0001,039,0002,289,664
7Apr 17, 2024 02:405,52344,173,29616,634,0001,039,0002,289,664
8Apr 17, 2024 02:405,53546,110,90416,671,0001,041,0002,281,472
9Apr 17, 2024 02:405,58847,601,59115,894,0001,986,0002,289,664
10Apr 17, 2024 02:405,71980,868,41818,300,92602,174,976
11Apr 17, 2024 02:405,73783,338,52318,358,30702,174,976
12Apr 17, 2024 02:405,74187,544,99118,369,84102,301,952