A. HEX … Just a simple comparison of two characters.
B. ISU … Subtract the edge width from the seat length, and just need to divide the remaining length divided by the width of the person and the required gap.
C. HSI … Calculate the duration of a trial. Respective trial has the chance of 1/2^m to get all test cases passed. So it’s just a one-liner to get the correct answer.