#40 illegal, the rest is easy
What's the answer of this position?
But the most interesting thing about #40 is the board layout chess.com shows if you play Qb1 and how did @adam_7000 get the position in there in the first place?
(That the king is not removed from the board is correct according to art. 1.4.1, but in this instance art. 1.4.1 appears to override art. 3.1.1. - Qb1 is not a legitimate move, though legal according to the FIDE definition of "legal move".)
But the most interesting thing about #40 is the board layout chess.com shows if you play Qb1 and how did @adam_7000 get the position in there in the first place?
(That the king is not removed from the board is correct according to art. 1.4.1, but in this instance art. 1.4.1 appears to override art. 3.1.1. - Qb1 is not a legitimate move, though legal according to the FIDE definition of "legal move".)
Since #40 could not have occurred in a game with black on move, it is not and cannot be totally governed by the FIDE game rules but also consults the composition conventions. These don't allow illegal positions! In fact, FIDE rules never govern the play options in isolated diagrams as they require the accessibility of complete game information. That is why composers have even more issues with the "legal move" definitions than the game player who can rely on his game record and the game rules.
there are a billion ways to win
Only 3 are mate in 2. Qb6 is listed as the answer but Qd2 and Qf2 are also mates in two and are not accepted.
dude how's that even legal
white's last move put him into check, which is ILLEGAL