If you assume, as you appear to in your solution, that the dragons are intensely interested in this, you could argue they all turn into sparrows at midnight on the first night. It requires a further assumption, that they are able to simultaneously observe each other all at the same time and can determine the objects…