Checklist VsOSh AI 2026 School Stage (Sirius platform, region group 1), grades 9–11 · Task 3
k Nearest Neighbours on Three Points
Russian title: Задание 3
Find the values of k for which a k-NN classifier with specified tie-breaking labels three held-out points correctly.
The task
Eighteen integer points on the plane carry classes 0–3 (red, blue, green, yellow) and are shown in a figure. The k-NN rule takes the k nearest points (among equidistant points, the one with the smaller class number is taken first) and predicts the most frequent class; ties are broken by the smaller sum of distances, then by the smaller class number.
The points (8; 2) of class 0, (3; 4) of class 1 and (5; 0) of class 2 are removed and classified using the remaining 15 points. Select the values of k for which all three are classified correctly.
Abridged and translated by SOTA from the official Russian materials. The official statement has the exact rules, and it wins wherever this summary differs.
In English
This task was published in Russian. SOTA translated its 3 files into English on 16 September 2026.
- Task statement Russian original of Task statement
- Official solution Russian original of Official solution
- Full paper with solutions (all tasks of the tour) Russian original of Full paper with solutions (all tasks of the tour)
Read the task statement in English
k Nearest Neighbours on Three Points
English translation by SOTA – AI Community of the Russian original. Organisers who would like this translation removed can email [email protected].
Task 3 of the school stage of the All-Russian School Olympiad (VsOSh) 2025/26 in artificial intelligence (region group I), grades 9–11. The official answer and solution are in a separate file.
There are 18 points with integer coordinates on the plane. Each point has a class number: 0, 1, 2 or 3.
Class 0: red.
Class 1: blue.
Class 2: green.
Class 3: yellow.
Determine for which the nearest neighbours method correctly guesses the class of the three chosen points. The method works as follows: for a new point, we find the points from the list that are nearest to it. If several points are at the same distance, the one with the smaller class number is considered nearer. We count which class number occurs most often among these points; that number is the one chosen. If the frequencies are equal, the following rules are applied:
- Among these classes, we choose the one whose sum of distances to the new point is smaller.
- If there is a tie again, we take the class with the smaller number.
Let us single out three points: of class 0, of class 1 and of class 2. To make the check fair, these three points are removed from the list in advance, and then the class of each of them is determined from the remaining 15 points.
[Figure: see the original statement.]
Translator's transcription of the figure (a scatter plot with from 0 to 10 and from −2 to 5; the three singled-out points are drawn in a paler shade):
| Class | Marker in the figure | Points |
|---|---|---|
| 0 | red circle | , ; singled out: |
| 1 | blue square | , , ; singled out: |
| 2 | green triangle | , , , ; singled out: |
| 3 | orange diamond | , , , , , |
Choose the number of neighbours for which the method correctly determines the class of all three singled-out points simultaneously:
[The answer options are not listed in the original file.]
Scoring criterion: (Number of correct choices − Number of incorrect choices) × 4, minimum 0 points
Maximum score for the task — 12
Translated by SOTA. The Russian original is the official version and wins wherever the two differ. Statement and official solution come from one PDF, the analysis of the school-stage tasks for region group I, grades 9–11, linked from the olympiad's Sirius page. The scatter plot is transcribed as a table of points, and the answer options were not included in the published file. If you organise this olympiad and would like the translation removed, email [email protected] and we will take it down.
At a glance
- You get
- The 18 points are given in a figure.
- You submit
- A selection of k values (multiple choice).
- Scoring
- (correct selections − incorrect selections) × 4 points, minimum 0 (maximum 12).
- Format
- School stage on the Sirius.Courses platform, region group 1, 23 October 2025; grades 9–11; individual; 150 minutes; maximum 112 points for the paper (tasks 1–6: 12 points each; tasks 7–8: 20 points each).