Do you have a library? Yes, we do. No, we didn't.
The sentence on the second floor is not a question, but a statement with a question mark. The auxiliary verbs in the sentences answered on the first floor should be consistent with those in the questions. . . My answer is: Do you have a library? Yes, we do. No, we didn't.