Herein we propose a hybridization chain reaction based kinetics competition strategy able to recognize the combination/sequence of input signals. Further, a DNA priority encoder and a keypad lock were constructed. This strategy allowed us to develop a one-pot assay that can automatically and smartly respond to multiple inputs.