Discord

Checklist VsOSh AI 2026 School Stage (Sirius platform, region group 3), grades 9–11 · Task 3

k-NN Point with All Four Predictions

Russian title: Задание 3

Find the unique integer point for which k-NN predictions over k = 1…18 include every one of four classes.

  • k-nearest neighbours (search)
  • Russian original · English translation

The task

Eighteen training points of classes 0–3 are given in a figure. For a query q, the k-NN rule predicts the most frequent class among the k nearest points; ties are broken by the smaller sum of distances, then by the smaller class number.

Among all integer points inside the smallest axis-parallel rectangle containing the data, find the unique point q for which the predictions for k = 1, 2, …, 18 contain each of the classes 0, 1, 2 and 3 at least once.

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.

Read the task statement in English 392 words

k-NN Point with All Four Predictions

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 III), grades 9–11. The official answer and solution are in a separate file.

Points are given on the coordinate plane; each of them belongs to one of four classes numbered 0, 1, 2 or 3. The class of a new point is to be predicted by the kk nearest neighbours rule:

  • for the chosen number kk, take the kk training points closest to the point qq;
  • among the chosen kk points, count which class number occurs most often, and output that number;
  • if several classes occurred equally often, choose the one among them for which the sum of the distances from qq to all points of this class (among the chosen kk) is smaller, and if these sums are also equal, the class with the smaller number.

The training points are given:
Class 0: red.
Class 1: blue.
Class 2: green.
Class 3: yellow.
Denote the total number of training points by NN (here NN=18). Consider all integer points qq inside the smallest rectangle with sides parallel to the coordinate axes that contains all the given points. For each such point qq, we write out the predictions of the kk nearest neighbours rule for k=1,2,...,Nk = 1, 2, ..., N.

[Figure: see the original statement.]

Translator's transcription of the figure (a scatter plot with xx from 0 to 10 and yy from −2 to 5):

Class Marker in the figure Points
0 red circle (8,2)(8, 2), (8,3)(8, 3), (9,2)(9, 2)
1 blue square (2,3)(2, 3), (3,4)(3, 4), (4,3)(4, 3), (5,3)(5, 3)
2 green triangle (5,0)(5, 0), (6,0)(6, 0), (7,0)(7, 0), (7,1)(7, -1), (8,1)(8, -1)
3 orange diamond (1,2)(1, 2), (4,2)(4, 2), (2,1)(2, 1), (4,1)(4, 1), (6,1)(6, 1), (2,0)(2, 0)

Determine the coordinates of the unique integer point qq inside this rectangle for which, as kk runs through 1,2,...,181, 2, ..., 18, the predictions contain each of the four classes 0, 1, 2, 3 at least once.

Scoring criterion: exact match of the answer — 12 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 III, grades 9–11, linked from the olympiad's Sirius page. The scatter plot is transcribed as a table of points. 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
Coordinates of q.
Scoring
Exact answer; 12 points.
Format
School stage on the Sirius.Courses platform, region group 3, 20 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).

Details

Year
2026, Schools in the regions of group 3 (Sirius.Courses online platform)
Round
School Stage (Sirius platform, region group 3), grades 9–11 · Task 3
Language
Russian; English translation by SOTA
License
Not stated by the source