Wizards spell on island
Source: Saint Petersburg olympiad 2024, 11.7
September 22, 2024
combinatorics
Problem Statement
A tourist has arrived on an island where wizards live, each of whom can be a knight or a liar. He knows that at the time of his arrival, one of the hundred wizards is a knight (but does not know who exactly), and the rest are liars. A tourist can choose any two wizards and and ask to spell on with the spell "Whoosh"!, which changes the essence (turns a knight into a liar, and a liar into a knight). Wizards fulfill the tourist's requests, but if at that moment wizard is a knight, then the essence of really changes, and if is a liar, that doesn't change. The tourist wants to know the essence of at least wizards at the same time after several consecutive requests. For which maximum will he be able to achieve his goal?