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 2, 2024 22:57Drew GarciaDrew GarciaScore: 5,723Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 2, 2024 22:575,61242,162,64815,964,0001,995,0002,277,376
2Apr 2, 2024 22:575,61334,984,00815,967,0001,995,0002,281,472
3Apr 2, 2024 22:575,62743,502,03816,007,0002,000,0002,281,472
4Apr 2, 2024 22:575,63850,891,32316,037,0002,004,0002,281,472
5Apr 2, 2024 22:575,65544,435,60516,085,0002,010,0002,281,472
6Apr 2, 2024 22:575,65548,922,40818,096,00002,281,472
7Apr 2, 2024 22:575,72347,438,93615,263,0003,052,0002,281,472
8Apr 2, 2024 22:575,75747,200,66017,398,0001,023,0002,281,472
9Apr 2, 2024 22:575,77136,587,18315,390,0003,078,0002,277,376
10Apr 2, 2024 22:575,87682,974,69318,802,31702,179,072
11Apr 2, 2024 22:575,91964,461,61118,940,31702,306,048
12Apr 2, 2024 22:575,98566,359,43019,151,66302,174,976