笨方法来一个 while True: try: I,r=list(map(int,input().split(" "))) for i in range(0,10): for j in range(0,10): for k in range(0,10): ...