n = int(input()) whole_visit = [[0 for _ in range(2 ** n)] for _ in range(2 ** n)] # 记录每个队是否与其他队进行过比赛 for i in range(2 ** n - 1): print("<" + str(i + 1) + ">", end='') visit = [0 for _ in range(2 ** n)] # 本日已经有哪些队进行过比赛了 for j in range(2 ** n): for k in range(2 ** n): if j == k: # 两队相同时跳过 continue if whole_visit[j][k] == 0 and visit[j] == 0 and visit[k] == 0: # 两队未进行过比赛,并且两队今日也未进行过比赛 whole_visit[j][k] = 1 whole_visit[k][j] = 1 visit[j] = 1 visit[k] = 1 print(str(j + 1) + "-" + str(k + 1), end=' ') print()
0.0分
1 人评分