N=int(input())ls=[]n=0#共n个数字for i in range(1,N+1): n+=ifor i in range(1,N+1): a=[] for j in range(i*(i-1)//2+1,i*(i-1)//2+1+i): a.append(j) ls.append(a) ls_2=[]for i in range(1,N+1): b=[] ...