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 16:34Christopher TarryChristopher TarryScore: 5,777Success
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 16:345,70341,518,99816,222,0002,027,0002,289,664
2Apr 4, 2024 16:345,72245,760,26916,276,0002,034,0002,289,664
3Apr 4, 2024 16:345,74647,014,34318,388,00002,289,664
4Apr 4, 2024 16:345,75036,159,35717,377,0001,022,0002,289,664
5Apr 4, 2024 16:345,76435,865,69117,421,0001,024,0002,289,664
6Apr 4, 2024 16:345,76847,266,72917,434,0001,025,0002,277,376
7Apr 4, 2024 16:345,77734,754,79617,459,0001,027,0002,281,472
8Apr 4, 2024 16:345,79442,125,00617,511,0001,030,0002,519,040
9Apr 4, 2024 16:345,80440,099,63217,541,0001,031,0002,281,472
10Apr 4, 2024 16:345,95583,883,72319,057,45202,174,976
11Apr 4, 2024 16:345,98598,822,12119,152,64302,174,976
12Apr 4, 2024 16:346,00694,166,35919,219,38502,289,664