Wrong answer on test 2 but how to make it? thx~

bingqian edited 2 年,1 月前

m,n,k = 2,4,6

def meeting(m,n,k):
    m0 = list(range(1,m+1)) *k
    n0 = list(range(1,n+1)) *k
    for i in range(k):
        print(str(m0[i]) + ' ' + str(n0[i]))

meeting(m,n,k)

Comments