N, K = map(int, input().split()) place = [list(map(int, input().split())) for _ in range(N)] def distance(x1, y1, x2, y2): return ((x2-x1)**2 + (y2-y1)**2) ** 0.5 dist = [[0]*N for _ in range(N)] for i in range(N): x1, y1 = place[i] for j in range(N): x2, y2 = place[j] dist[i][j] = distance(x1, y1, x2, y2) dist2 = [[0]*N for _ in range(N)] for i in range(N): x1, y1 = place[i] for j in range(N): x2, y2 = place[j] dist2[i][j] = distance(x1, y1, 0, 0)+distance(0, 0, x2, y2) # dp[i][j][k] i:現在地 j:持っているプレゼントの数 k:既に届けた場所の集合 INF = 10**18 dp = [[[INF]*(1<