def gtrr(registers, opcodes):
    """gtrr (greater-than register/register) sets register C to 1 if
    register A is greater than register B. Otherwise, register C is set to 0.
    """
    test_result = int(registers[opcodes[1]] > registers[opcodes[2]])
    return test_result