Mutual Indivisibility

  • + 1 comment

    I didn't expect but following program works. -_-b

    #!/bin/python3
    
    import sys
    
    if __name__ == "__main__":
        t = int(input().strip())
        for a0 in range(t):
            a, b, x = input().strip().split(' ')
            a, b, x = [int(a), int(b), int(x)]
            # Write Your Code Here
            if b//(b-x+1) >= 2:
                print('-1')
            else:
                print(' '.join(map(str, range(b-x+1,b+1))))