Stefan Mastering Chess (chess3)

173 teams scored 10674 points on this task, for a maximum score of 100, an average score of 62 and a median score of 52.

Highlights

  1. Pascal - Comandini, Cesena is the institute with the most points (500).
  2. Lombardia is the region with the most points (2891).

Statement

After having prepared two previous IIOT problems about chess, Stefan has really picked up his chess skills, and he is now ready to give you another chess related challenge! Today, you are trying to teach your newbie friend about how pieces move and one of your first lessons was about how the queen is the most important piece you want to defend on the board. Given how fast your friend has progressed after having watched videos featuring top grandmasters, you are now ready to give them another challenge! Now you have given your friend a homework: You gave them several chess positions without kings and the goal is very simple. Find out if the black queen is under threat from any of the white pieces. After some thinking, the homework was solved fast, but now Stefan gave you a new challenge: Can you emulate your friend's achievement through writing a program which does this for you fast enough to solve several such challenges quickly and correctly? Here are the rules on how chess pieces...