結果 : binary code and gray code