# Majority Vote of Three Advisers: Solution

*English translation by SOTA – AI Community of the Russian original. Organisers who would like this translation removed can email sota.ai.community@gmail.com.*

*Task 6 of the school stage of the All-Russian School Olympiad (VsOSh) 2025/26 in artificial intelligence (region group II), grades 9–11. Answer and official solution.*

**Answer:** 86

**Solution.**

*Translator's note: the original writes the formulas below for a Russian-language spreadsheet (Russian function names and semicolons between arguments); here they are given with the English function names IF and SUM.*

Suppose the columns are: A: $n_1$, B: $n_2$, C: $n_3$, D: $y$; the data are in rows 2–101.

**Step 1. Restore the cook's prediction (majority rule).** In cell E2:

`=IF(A2+B2+C2>=2, 1, 0)`

Drag down to E101. Here E is the $\hat{y}$ column.

**Step 2. Indicator of agreement with the actual outcome.** In cell F2:

`=IF(E2=D2, 1, 0)`

Drag down to F101.

**Step 3. The answer is the number of matches.** In any free cell, for example H2:

`=SUM(F2:F101)`

This is exactly the number of rows where $\hat{y} = y$.
