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 10, 2024 15:36Drew GarciaDrew GarciaScore: 5,386Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 10, 2024 15:365,33445,045,18915,062,0002,008,0002,273,280
2Apr 10, 2024 15:365,33643,477,23116,071,0001,004,0002,281,472
3Apr 10, 2024 15:365,34134,533,94914,076,0003,016,0002,277,376
4Apr 10, 2024 15:365,34339,485,49016,092,0001,005,0002,379,776
5Apr 10, 2024 15:365,34839,720,65215,099,0002,013,0002,277,376
6Apr 10, 2024 15:365,36240,608,58615,139,0002,018,0002,281,472
7Apr 10, 2024 15:365,38643,560,48316,222,0001,013,0002,281,472
8Apr 10, 2024 15:365,38639,592,44615,209,0002,027,0002,273,280
9Apr 10, 2024 15:365,40342,709,38815,255,0002,034,0002,281,472
10Apr 10, 2024 15:365,58295,567,63017,862,12002,179,072
11Apr 10, 2024 15:365,59299,731,13017,893,11902,174,976
12Apr 10, 2024 15:365,64158,234,60218,052,30402,179,072