Problem D

Statement
Copy Copied
Description:
You are given n points on the plane. You need to delete exactly k of them (k < n) so that the diameter of the set of the remaining n - k points were as small as possible. The diameter of a set of points is the maximum pairwise distance between the points of the set. The diameter of a one point set equals zero.

Input Format:
The first input line contains a pair of integers n, k (2 ≤ n ≤ 1000, 1 ≤ k ≤ 30, k < n) — the numbers of points on the plane and the number of points to delete, correspondingly.

Next n lines describe the points, one per line. Each description consists of a pair of integers xi, yi (0 ≤ xi, yi ≤ 32000) — the coordinates of the i-th point. The given points can coincide.

Output Format:
Print k different space-separated integers from 1 to n — the numbers of points to delete. The points are numbered in the order, in which they are given in the input from 1 to n. You can print the numbers in any order. If there are multiple solutions, print any of them.

Note:
None

Submissions

IDLanguageExit CodeTimestampCodeStdoutStderrRetry
5734 go 0 2026-03-20T04:15:45.451326Z View View View Retry
5688 go 1 2026-03-20T04:03:35.668333Z View View View Retry

Evaluations

Eval IDRun IDProviderModelLangSuccessTimestampPromptResponseStdoutStderrRetry
3093 20260319-230006 gemini gemini-3-pro-preview go false 2026-03-20T00:35:42.585944Z View View View View Retry