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 4, 2024 17:15Christopher TarryChristopher TarryScore: 5,532Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 4, 2024 17:155,48438,736,65916,517,0001,032,0002,265,088
2Apr 4, 2024 17:155,49341,548,69216,543,0001,033,0002,265,088
3Apr 4, 2024 17:155,50342,595,29716,573,0001,035,0002,473,984
4Apr 4, 2024 17:155,51433,803,70416,607,0001,037,0002,265,088
5Apr 4, 2024 17:155,52244,235,70117,669,00002,392,064
6Apr 4, 2024 17:155,52453,030,58617,676,00002,527,232
7Apr 4, 2024 17:155,53246,388,95016,660,0001,041,0002,265,088
8Apr 4, 2024 17:155,57734,614,07316,855,000991,0002,265,088
9Apr 4, 2024 17:155,57947,129,56817,853,00002,506,752
10Apr 4, 2024 17:155,94493,096,55619,021,10702,289,664
11Apr 4, 2024 17:155,97285,855,27119,109,26802,273,280
12Apr 4, 2024 17:155,99591,190,26519,185,01902,281,472