Anumber of schools took part in a tennis tournament. No two players from the same school played against each other. Every two players from different schools played exactly one match against each other. A match between two boys or between two girls was called a [i]single[/i] and that between a boy and a girl was called a [i]mixed single[/i]. The total number of boys differed from the total number of girls by at most 1. The total number of singles differed from the total number of mixed singles by at most 1. At most how many schools were represented by an odd number of players?
1. Let there be \( n \) schools. Suppose the \( i^{th} \) school sends \( B_i \) boys and \( G_i \) girls. Let \( B = \sum B_i \) and \( G = \sum G_i \). We are given that \( |B - G| \leq 1 \).

2. The number of same-sex matches (singles) is given by:
   \[
   \frac{1}{2} \sum B_i(B - B_i) + \frac{1}{2} \sum G_i(G - G_i) = \frac{1}{2} \left( B^2 - \sum B_i^2 + G^2 - \sum G_i^2 \right)
   \]

3. The number of opposite-sex matches (mixed singles) is given by:
   \[
   \sum B_i(G - G_i) = BG - \sum B_i G_i
   \]

4. We are given that the total number of singles differs from the total number of mixed singles by at most 1. Therefore:
   \[
   \left( \frac{1}{2} \left( B^2 - \sum B_i^2 + G^2 - \sum G_i^2 \right) \right) - (BG - \sum B_i G_i) = 0 \text{ or } \pm 1
   \]

5. Simplifying the above equation, we get:
   \[
   B^2 - \sum B_i^2 + G^2 - \sum G_i^2 - 2BG + 2 \sum B_i G_i = 0 \text{ or } \pm 2
   \]

6. This can be rewritten as:
   \[
   (B - G)^2 - \sum (B_i - G_i)^2 = 0 \text{ or } \pm 2
   \]

7. Given \( |B - G| \leq 1 \), we have \( (B - G)^2 \leq 1 \). Therefore:
   \[
   \sum (B_i - G_i)^2 = 1 \text{ or } 3
   \]

8. Since \( \sum (B_i - G_i)^2 \) cannot be negative, it must be 1 or 3. This implies that \( B_i = G_i \) for all but 1 or 3 schools, where \( |B_i - G_i| = 1 \).

9. Thus, the largest number of schools that can have \( B_i + G_i \) odd is 3.

The final answer is \( \boxed{ 3 } \)