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 20, 2024 14:54Joad NacerJoad NacerScore: 4,886Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2024 14:544,84144,237,84114,459,0001,032,0002,289,664
2Apr 20, 2024 14:544,85539,060,88114,500,0001,035,0002,519,040
3Apr 20, 2024 14:544,85942,162,41315,549,00002,289,664
4Apr 20, 2024 14:544,86139,160,16614,519,0001,037,0002,289,664
5Apr 20, 2024 14:544,86240,642,83814,521,0001,037,0002,281,472
6Apr 20, 2024 14:544,86532,643,95014,531,0001,037,0002,273,280
7Apr 20, 2024 14:544,88634,115,32514,592,0001,042,0002,285,568
8Apr 20, 2024 14:544,90245,140,15414,640,0001,045,0002,289,664
9Apr 20, 2024 14:544,90834,436,19814,659,0001,047,0002,265,088
10Apr 20, 2024 14:545,12475,395,85816,398,06202,293,760
11Apr 20, 2024 14:545,13786,475,79616,439,38802,174,976
12Apr 20, 2024 14:545,16561,423,57516,527,10102,297,856